Disable scanning outgoing mailing list mail
Peter H. Lemieux
mailscanner at replies.cyways.com
Thu Feb 11 05:09:13 UTC 2016
It depends on how the list messages are addressed. If there's a common address in the To field, like list at example.com, you can add whitelist entries for mail To: that address. E.g, in MailScanner.conf, use this directive:
Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules
and create the spam.whitelist.rules file to include the line:
To: list at example.com yes
FromOrTo: default no
Now all mail to list at example.com will be sent unscanned, but all other messages will still be scanned.
If you want to exempt list traffic from virus scanning as well, create a parallel virus.whitelist.rules file in that same directory, and use the directive
Virus Scanning = %rules-dir%/virus.whitelist.rules
in MailScanner.conf. One quirk of MailScanner is that you need to use "no" to exempt from virus scanning, so the rules file would read:
To: list at example.com no
FromOrTo: default yes
My %rules-dir% is /etc/MailScanner/rules/.
You could also key on things like "From: owner-listname" or some similar characteristic depending on how the list is configured.
You do, I presume, scan inbound messages from the list subscribers, yes? I only screen them for malware and exempt list traffic from spam scanning. Since the lists I manage are all closed, I rely on the listserver software (majordomo2 in my case) to reject spams sent to the list. Of course, I can't do anything about bogus messages sent from hijacked accounts belonging to legitimate subscribers.
On 2/10/2016 11:31 PM, John Price wrote:
> I run a mailing list (mailman) with some lists having thousands of
> subscribers, and I don't want to scan all those outgoing emails. How
> should I disable scanning those?
More information about the MailScanner