Blocking custom file extention is not working

Questions and answers about how to do stuff
Post Reply
GoPiTM
Posts: 3
Joined: 03 Feb 2016 13:12

Blocking custom file extention is not working

Post by GoPiTM »

Hi,

So I stumbled accross this site: http://www.emailsecuritycheck.net/index.html and had it sent it's test mails.
3 where blocked 4 came thru. :shock:
So to test I added this to the filename.rules at the bottem:
deny \.dll$ dll-files are not allowed dll-files are not allowed
deny \.()bat$ Possible malicious batch file script Batch files are often malicious

But it did not work.
Does anyone know what I did wrong?

Thx
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Blocking custom file extention is not working

Post by shawniverson »

Saw you post on MailScanner list, did you get it to work?
GoPiTM
Posts: 3
Joined: 03 Feb 2016 13:12

Re: Blocking custom file extention is not working

Post by GoPiTM »

Strange enough the .dll gets blocked when I send it from gmail or any other email system, but from the site it gets thru.
The .()bat is not yet working
GoPiTM
Posts: 3
Joined: 03 Feb 2016 13:12

Re: Blocking custom file extention is not working

Post by GoPiTM »

I found the solution.

This will stop all attachments starting with .()

Code: Select all

deny	\.[(][)][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]	Possible malicious file	Files hiding behind () are often malicious
z3us
Posts: 8
Joined: 22 Jul 2016 17:10

Re: Blocking custom file extention is not working

Post by z3us »

I've got the same problems in EFA when using the tests from: http://www.emailsecuritycheck.net/index.html
Strange thing is that my tests from a Gmail accounts were just fine. Those mails we're blocked with message "Bad Content".
Mails from the website are getting through.
The sending address from the website isn't whitelisted.

What is the best way to troubleshoot this issue?
Post Reply