Bug DKIM signing is broken

There is a bug in this version
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 ensured...

Read more

Continue reading...