Exemptions for filename checks

Richard Lynch rich at MAIL.WVNET.EDU
Sun Dec 15 04:26:08 GMT 2002


On Sat, 2002-12-14 at 22:55, Julian Field wrote:
> >Is there a way to exempt a specific site from the filename checks?  I
> >don't won't to make .exe files wide open, I think they should be
> >restricted.  I just want to open it up for this one site.  Any iedas?
>
> You can make the MailScanner.conf entry
> Filename Rules = /etc/MailScanner/filename.rules.conf
> point to a ruleset instead, such as
> Filename Rules = /etc/MailScanner/rules/filenames.rules
>
> And then make /etc/MailScanner/rules/filenames.rules contain
> From:   *@nationalbank.com      /etc/MailScanner/etc/filename.rules.bank.conf
> FromOrTo:       default /etc/MailScanner/etc/filename.rules.conf
>
> That will make the default filename rules come from filename.rules.conf.
> But mail from nationalbank.com will use filename.rules.bank.conf.
> Copy filename.rules.conf into filename.rules.bank.conf, and add an extra
> rule added on the top to explicitly allow .exe files like this
> allow   \.exe$  -       -
>
> Hope you followed that... :-)
>
> P.S. As John Rudd suggested, if you can also match a more specific filename
> than just *.exe then you will be protected from rogue .exe files from
> nationalbank.com too. My description above restricts it to only
> nationalbank.com, his suggestion restricts it to only certain .exe
> filenames. If you use both you will be protected as much as possible.
> --
> Julian Field
> www.MailScanner.info
> MailScanner thanks transtec Computers for their support

Wow!!! Now that is a fancy solution.  That's an incredibly flexible
package you've developed, Julian.  Thank you.

--
Richard Lynch <rich at mail.wvnet.edu>



More information about the MailScanner mailing list