mailscanner headers

Discuss our MailScanner install script and MailScanner itself
2 posts Page 1 of 1
dzamanakos
Junior Member
Posts: 4
Joined: 07 Jun 2017, 12:51


Hi, i'm planning to deploy mailscanner and i have a question.

In my current setup I've enabled, along with spamassassin, "Enable Sender Rewriting Scheme (SRS) Support" in exim basic editor, in order, emails that are being forwarded to external providers like gmail, yahoo etc, to pass spf checks.

That leads to a risk, that the external mailserver will blacklist my ip, assuming that the spam emails are being generated by my server (based on the setting in exim above).

But spamassassin, if a spam delivered to a local account and is spam, headers will be added indicating that it is spam.
When this email will be forwarded to gmail for example, gmail will check the headers and not mark my server as spam, as headers already indicate the email as spam.

Does mailscanner adds headers indicating that the email is spam in order to help the server not be listed as spam?
Sarah
Moderator
Posts: 810
Joined: 09 Dec 2006, 22:49


Yes, MailScanner adds headers indicating the email is spam. Example:
Code: Select all
X-[orgname]-MailScanner-SpamCheck: spam, SpamAssassin (score=1005.483, required 4, BAYES_50 0.80, DCC_CHECK 1.10, DIGEST_MULTIPLE 0.29, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, GTUBE 1000.00, KAM_NUMSUBJECT 0.50, PYZOR_CHECK 1.39, RCVD_IN_SORBS_WEB 1.50, SPF_HELO_PASS -0.00, SPF_PASS -0.00)
X-[orgname]-MailScanner-SpamScore: ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
(By default the SpamScore will use an 's' for each unit of the spam score, apparently up to a limit of 60. So an email that gets a spamassassin score of 15 will have 15 s'es.)

I don't know if external mail servers will interpret these headers correctly. Allowing users to forward all their email including spam to external mail servers such as yahoo or gmail does carry risks.

Regards,
Sarah
2 posts Page 1 of 1