Filetype rules - blocking exes not working

Martin.Hepworth martinh at
Fri Aug 15 18:41:37 IST 2008

What does "file" say about these files?


-----Original Message-----
From: Chris Yuzik <itdept at>
Sent: Friday, August 15, 2008 6:21 PM
To: mailscanner at
Subject: Filetype rules - blocking exes not working

Hi everyone,


We've noticed a bit of an oddity here. Files that are .exe are getting
through our mail system, and I'm not quite sure why.


In MailScanner.conf, we have:


                Filetype Rules = %rules-dir%/filetype.rules


In filetype.rules.conf, we have:


                deny      executable         No executables
No programs allowed


We also have:


                Maximum Archive Depth = %rules-dir%/max.archive.depth.rules


And the contents of max.archive.depth.rules are:


                FromOrTo:          default 0


I've checked and made sure that fields are separated by tabs.


I'm not sure what else I must be missing. Any ideas?



Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 
Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom

More information about the MailScanner mailing list