Blocking custom file extension is not working

Denis Beauchemin Denis.Beauchemin at
Thu Feb 4 13:40:09 UTC 2016


The first one should work as long as you separated each field with TABs (not spaces). You also have to reload/restart MailScanner.

The second one looks strange with its “()”. What are you trying to block exactly with that?


De : MailScanner [mailto:mailscanner-bounces at] De la part de Pieter Goris
Envoyé : 4 février 2016 04:02
À : mailscanner at
Objet : Blocking custom file extension is not working


So I want to block .dll and .()bat but mailscanner is not doing it.
I added this to the filename.rules at the bottom:
deny \.dll$ dll-files are not allowed         dll-files are not allowed
deny \.()bat$ Possible malicious batch file script               Batch files are often malicious

Pieter Goris

This message has been scanned for viruses and dangerous content by
Cisa Antispam Service, and is believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list