Page 1 of 1

how to allow double filename extension

Posted: 27 Feb 2013, 21:54
by xeonex
ineed to allow double file extension like name.xls.pdf or any name.*.pdf

Re: how to allow double filename extension

Posted: 27 Feb 2013, 23:25
by Sergio
xeonex wrote:ineed to allow double file extension like name.xls.pdf or any name.*.pdf
You need to tweak the following file:
/usr/mailscanner/etc/filename.rules.conf

Re: how to allow double filename extension

Posted: 27 Feb 2013, 23:31
by xeonex
yes but i do not find asuitable rule to get it work i have tried like

allow \.[a-z][a-z0-9]{2,3}\s*\.pdf$

Re: how to allow double filename extension

Posted: 27 Feb 2013, 23:53
by Sergio
xeonex wrote:yes but i do not find asuitable rule to get it work i have tried like

allow \.[a-z][a-z0-9]{2,3}\s*\.pdf$
Try to wrote your rule, before the deny rule:
# 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

Re: how to allow double filename extension

Posted: 28 Feb 2013, 02:04
by xeonex
thanx that worked