Page 1 of 1

Double extension files

Posted: 27 Nov 2013 07:51
by udaythapa
Hi,

How to allow dual extension file from mails scanner for single domain

Re: Double extension files

Posted: 27 Nov 2013 08:52
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!.

Re: Double extension files

Posted: 27 Nov 2013 09:18
by udaythapa
Thanks,

I will , and let you know.

regards
uday