- Affected version
- 2.3.7
XenForo currently generates the DKIM signature in
This was fine in XenForo 2.2, but in XenForo 2.3 the email is basically rebuild in
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 that DKIM signing is done as the last step before sending.
The attached patch implements this and seems to work fine.
\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 that DKIM signing is done as the last step before sending.
The attached patch implements this and seems to work fine.
Attachments
Last edited: