Allowing specific executable files

Matt Kettler mkettler at EVI-INC.COM
Mon Sep 27 21:13:20 IST 2004

At 03:40 PM 9/27/2004, Renata D. Vieira wrote:
>I configured MailScanner in my server to deny all the executable files.
>However, there are 2 specific executable files those are send and received
>between our client and us.
>My question is: Is it possible in MailScanner to allow only these 2 specific
>executable files and to continue denying all the others?

Yes. Add an allow rule near the top of filename.rules.conf, before the deny
rule for all .exe files.

allow   file1\.exe$     -       -
allow   file2\.exe$     -       -

deny   \.exe$          Windows/DOS
Executable DOS/Windows programs are dangerous in email

Note: make sure to use tabs not spaces between fields.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list