Solved DKIM signing is broken

This topic has been solved
K

Kirby

Guest
XenForo currently generates the DKIM signature in \XF\Mail\Mail::setFinalHeaders().

This was fine in XenForo 2.2, but in XenForo 2.3 the email is basically rebuild in \XF\Mail\Mailer::send():

PHP:

$email = MessageConverter::toEmail($email);

This modifies the body as new MIME boundaries are generated which obviosuly invalidates the previously generated body hash.

Suggested Fix
Generate the DKIM signature immediately before actually sending the email, this ensures...

Read more

Continue reading...