how tom allow attachments with 2 fullstops

Questions and answers about how to do stuff
Post Reply
bas60
Posts: 57
Joined: 04 Feb 2014 13:58

how tom allow attachments with 2 fullstops

Post by bas60 »

We are getting more and more attachments with 2 full stops in the name
ie. annualreport.aspx.pdf these files are blocked

These are generally PDF's

is there any way to allow them?

What are the security issues
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: how tom allow attachments with 2 fullstops

Post by darky83 »

By default E.F.A. blocks the file as it might be that an executable is named as a zip file (myfile.zip.exe) which could be an virus.
If this is the case, the best thing to do in my opinion is to instruct the user to not use dots in filenames, if that is not possible then you can allow this.

Edit the file: /etc/MailScanner/filename.rules.conf
at the bottom you will see the following:

Code: Select all

# Deny all other double file extensions. This catches any hidden filenames.
deny    \.[a-z][a-z0-9]{2,3}\s*\.[a-z0-9]{3}$   Found possible filename hiding                          Attempt to hide real filename extension
Replace deny with allow and reload mailscanner.
Version eFa 4.x now available!
Post Reply