Filename & Filetype rules not working

Mail Admin pinemail11 at gmail.com
Tue Jun 25 13:20:28 IST 2013


Hi All,

We are trying to restrict attachment for per user and made changes as
follows

*mailscanner.conf*

Allow Filenames =
Deny Filenames =
Filename Rules = %rules-dir%/filename.rules
Allow Filetypes =
Allow File MIME Types =
Deny Filetypes =
Deny File MIME Types =
Filetype Rules = %rules-dir%/filetype.rules


*Filename.rules*

From:   /\* <at> domain\.com/
/etc/MailScanner/attachmentrestriction.rules.conf
From:   127.0.0.1       /etc/MailScanner/filename.rules.allowall.conf
FromOrTo:       default /etc/MailScanner/filename.rules.conf

*filetype.rules*

From:   /\* <at> domain\.com/
/etc/MailScanner/attachmentfiletype.rules.conf
From:   127.0.0.1       /etc/MailScanner/filetype.rules.allowall.conf
FromOrTo:       default /etc/MailScanner/filetype.rules.conf


*attachmentrestriction.rules.conf*

deny    \.avi$         Test for restriction

*attachmentfiletype.rules.conf*
*
*
deny    AVI             No AVI movies           No AVI movies allowed

Still mails are delivering with .avi attachment!!.

Your help is appreciated!

Regards,

Pine Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130625/9f896434/attachment.html 


More information about the MailScanner mailing list