I've finally fixed the email issue, sorry it's taken me literally months to get the time to take a look, work out what was wrong, and get a fix in place.
I think I've fixed it, at least to the point XenForo's email tester works now, but the real test is whether activity triggers and sends emails properly. I'll keep an eye on it.