Double extension files

General eFa discussion
Post Reply
udaythapa
Posts: 2
Joined: 27 Nov 2013 07:49

Double extension files

Post by udaythapa »

Hi,

How to allow dual extension file from mails scanner for single domain
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Double extension files

Post by darky83 »

Globally
This can be changed globally (for all domains)

Login to the box

Code: Select all

vi /etc/MailScanner/filename.rules.conf
Scroll all the way down to the end and remove the check for double file extensions.
then restart mailscanner.

Code: Select all

service mailscanner restart

Per domain
Per domain should be possible (untested this so use at your own risk :!: ).

Copy the filename rules file to an new file

Code: Select all

cp /etc/MailScanner/filename.rules.conf /etc/MailScanner/filename.MYDOMAINNAME.rules.conf
Then edit /etc/MailScanner/filename.MYDOMAINNAME.rules.conf and allow the double extensions (all the way at the end of the file)

now create /etc/MailScanner/rules/scan.messages.rules and add the following line:

Code: Select all

FromOrTo: MYDOMAINNAME /etc/mailscanner/etc/filename.MYDOMAINNAME.rules.conf
FromOrTo: default           yes
Restart mailscanner

Code: Select all

service mailscanner restart

Note that I have never tested per domain so might be that this is not working correctly so test first!.
Version eFa 4.x now available!
udaythapa
Posts: 2
Joined: 27 Nov 2013 07:49

Re: Double extension files

Post by udaythapa »

Thanks,

I will , and let you know.

regards
uday
Post Reply