Filename & Filetype rules not working

Martin Hepworth maxsec at gmail.com
Tue Jun 25 20:31:38 IST 2013


Have a look at the overloading rules section in the wiki for how best to do
this at the dmsun level

On Tuesday, 25 June 2013, Mail Admin wrote:

> 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 


More information about the MailScanner mailing list