Solution: Bypass mailscanner for authenticated smtp users.

Markus Nilsson markus at markusoft.se
Thu May 3 18:40:57 IST 2012


Hi

To me that looks like you are bypassing your filter for all incoming emails with "Authenticated user" in any of the received headers.

If it is the spam score you want to make sure never gets above the threshold you can give a very low score to ALL_TRUSTED, even if that doesn't bypass MailScanner.

/Markus
-- 
Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

Aaron Greengrass <archive at greenbtn.com> skrev:

I spent a day or so thinking on this one, and have come up with a method that works for me.  I always appreciate seeing solutions to problems I'm having posted, so I am posting this one in turn.

One of the email requirements in my environment is that authenticated users not be subject to spam checks. (i.e. I know all of the users, so policy violation isn't an issue).

The postfix config i'm using puts everything into HOLD, which guarantees mailscanner will check it. My solution follows:

in /etc/postfix/main.cf
header_checks = regexp:/etc/postfix/header_checks
smtpd_sasl_authenticated_header = yes

in /etc/postfix/header_checks
/^Received: .*\(Authenticated sender:.*/ OK
/^Received:/ HOLD

There may be a more elegant way to do this, but this was the first method I came up with, and it passes all of my initial testing.

Regards,

Aaron.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20120503/4843975c/attachment.html


More information about the MailScanner mailing list