Blocking custom file extension is not working

Richard Mealing richard at fastnet.co.uk
Thu Feb 4 15:09:50 UTC 2016


I would think you need to escape the special characters -

deny \.\(\)bat$ Possible malicious batch file script               Batch files are often malicious


From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Pieter Goris
Sent: 04 February 2016 09:02
To: mailscanner at lists.mailscanner.info
Subject: Blocking custom file extension is not working

Hi,

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

Regards,
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: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20160204/c82cfac9/attachment.html>


More information about the MailScanner mailing list