Allowing .exe files inside .zip files

Jules Field MailScanner at
Fri Jul 31 22:35:25 IST 2009


See these settings in MailScanner.conf and their "non-Archive" equivalents:
Archives: Allow Filenames =
Archives: Deny Filenames =
Archives: Filename Rules = %etc-dir%/archives.filename.rules.conf
Archives: Allow Filetypes =
Archives: Allow File MIME Types =
Archives: Deny Filetypes =
Archives: Deny File MIME Types =
Archives: Filetype Rules = %etc-dir%/archives.filetype.rules.conf

On 31/07/2009 21:28, Michael Masse wrote:
> I believe the most recent versions of MS allow different filetype settings depending on whether the files are in an archive or not, so you could allow .exe's in zip's if you really wish to do so, and yet block plain .exe attachments.
> Mike
> 	>>>  On 7/31/2009 at 3:00 PM, in message<4A734D6D.9050808 at>, Mauricio
> Tavares<raubvogel at>  wrote:
>> What is the best/proper way to allow a .exe file to be sent as an
>> attachment when inside a zip file? I still want to have the zip file
>> opened and checked for nasties, but if the .exe itself is ok, it should
>> be left alone. Thanks to suggestions in the channel,
>> Maximum Archive Depth = 0
>> seems to do the trick, but I wonder what the cost is and whether there
>> is a better way.  Any thoughts?


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list