Selectively allow .exe attachments

Julian Field mailscanner at
Sun Oct 12 19:07:55 IST 2003

Rulesets pointing to filename.rules.conf file have recently been discussed
here. Please search the mailing list archive.

         Filename Rules = /etc/MailScanner/filename.rules
And in there put
To: user at     /etc/MailScanner/allow.exe.conf
FromOrTo: default /etc/MailScanner/filename.rules.conf

In allow.exe.conf put
allow   \.exe$  -       -
(separate the fields with tab characters)

At 18:53 12/10/2003, you wrote:
>I have a customer who 'must' receive an .exe attachment periodically from
>there parent company. The parent company said they would not rename the
>attachment ant told their remote branch (my customer) to either have the
>ISP fix it or find another service provider.
>I'm thinking I can add a rule set in place of the .exe rule entry in the
>filename.rules.conf. Is this feasible, and if so may I have a brief example.
>Would it be better to make a rule for .exe which refers to another rule
>file then:
>     1) In that rule file, say if To:
> <mailto:customer at>customer at  'another rule.file'  and
> 'Default deny'
>     2) Then in the another rule.file say From: parent branch accept' and
> deny the rest.
>I know that is not the complete syntx, but just a brief example. Is this
>worth pursuing or should I let it go?
>Thank you in advance.
>Walt Wyndroski
>  This message has been scanned by CityNET's email scanner for viruses and
> dangerous content
>  and is believed to be clean. CityNET is proud to use MailScanner. For
> more information
>  concerning MailScanner, visit

Julian Field
Professional Support Services at
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list