How to *not* scan outgoing messages?

Spicer, Kevin Kevin.Spicer at BMRB.CO.UK
Tue Jan 28 09:00:43 GMT 2003

> Reading the MailScanner FAQ, I notice Julian talking about 
> scanning email
> leaving one's site (question 7, "There seem to be long 
> delays". My question
> is, can I disable scanning (for spam and virii) of messages that are
> leaving our site?
> I couldn't find anything in mailscanner.conf that strictly 
> forbids scanning
> in either direction (i.e. incoming or outgoing), so if y'all 
> could help me
> out that would be great!

Virus Scanning = /etc/MailScanner/rules/virusscan.rules

in MailScanner.conf, then create /etc/MailScanner/rules/virusscan.rules with the following entries

From:  default  yes
From:  *@yourdomain.tld no

(You can add multiple domains as extra lines)


From:  default  yes
From:  no

Where is the IP of an internal machine sending mail out through the mailscanner (IMHO this is better because you risk letting in mail with a spoofed sender in the first option)

To: *@yourdomain.tld   yes
To:  default            no

Which you choose largely depends on your sites setup and which is best for you - take your pick  (see the README and EXAMPLES files in /etc/MailScanner/rules for more info)

BMRB International
+44 (0)20 8566 5000
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance on it is prohibited.  BMRB International Limited 
accepts no liability in relation to any personal emails, or 
content of any email which does not directly relate to our 

More information about the MailScanner mailing list