SpamAssassin negative score for HEADER_FROM_DIFFERENT_DOMAINS

AndyW picture AndyW · Feb 26, 2019 · Viewed 11k times · Source

Some emails sent by our sever go to spam for certain recipients. E.g when sent to @outlook.com email addresses.

I have been testing our emails using https://www.mail-tester.com

SpamAssassin gives a score of -0.1 for the issue of 'HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different'

This is the only issue reported. Everything else, such as SPF and DKIM, passes. There is no documentation on their website for this issue and I don't understand what it means or how to fix it.

The email is sent using PHPMailer via AWS SES.

Answer

AndyW picture AndyW · Mar 13, 2019

I solved this by completing the setup of 'MAIL FROM' in AWS SES. This set the mail from header in emails to be my domain name.

"HEADER_FROM_DIFFERENT_DOMAINS" and mail-tester.com now gives me a score of 10/10.

Note that for some email providers it took a few weeks before we were trusted and emails stopped going to spam.