Discussion:
Filename & Filetype rules not working
Mail Admin
2013-06-25 12:20:28 UTC
Permalink
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
Martin Hepworth
2013-06-25 19:31:38 UTC
Permalink
Have a look at the overloading rules section in the wiki for how best to do
this at the dmsun level
Post by Mail Admin
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
--
--
Martin Hepworth, CISSP
Oxford, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130625/bc368588/attachment.html
Continue reading on narkive:
Loading...