File Attachment Blocking

Jon Miller jlmiller at
Sat Feb 18 13:48:13 GMT 2006

Hey Andrew, 
Have you tried a separate rule for allowed.user2 at, and change the * to be more specific.  As it is * addresses everyone at
If you can apply rules based on groups (e.g names in a listing) then this may be a better way having allowed.user2 as a exception in a group that is allowed while * would handle everyone else.


Jon L. Miller,  ASE, CNS, CLS, MCNE, CCNA
Director/Sr Systems Consultant
MMT Networks Pty Ltd
Resellers for: Novell Gold Partner, Cisco Partner, Peopletelecom, Westnet, Sophos Anti-Virus, CA Products

"I don't know the key to success, but the key to failure
 is trying to please everybody." -Bill Cosby

>>> Andrew at 1:24:42 pm 10/02/2006 >>>

We have a system at several sites where we have a the default list of attachments that are blocked and a list of email addresses that are allowed to send and receive the blocked attachments.
This works well except when you want to play with multiple domains on the one server.
Relevant config files...
%rules-dir% = /etc/MailScanner/rules
Filetype Rules = %rules-dir%/filetype.rules
Filename Rules = %rules-dir%/filename.rules
##Group 1 has not media attachments Group 2 is allowed PICS
ToOrFrom:       allowed.user at              /etc/MailScanner/filename.rules.conf
ToOrFrom:       allowed.user2 at            /etc/MailScanner/filename.rules.conf
ToOrFrom:       *                       /etc/MailScanner/filename.rules.2.conf
ToOrFrom:       default         /etc/MailScanner/filename.rules.group1.conf
Same in /etc/MailScanner/rules/filetype.rules but for filename.rules.conf
In this setup the allowed.user2 at is being overrided by * * is there a way to overcome this?
Other than putting every email address in the file!!!
Andrew Barbara
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list