block a particular double extension files in amavisd.conf

Indunil Jayasooriya indunil75 at
Thu Mar 17 06:09:39 CET 2016


I want to block files having double extensions. while users surf internet,
some files such as* e7ea.tmp.exe* will be automatically downloaded.

e7ea.tmp.exe is a ransomware. Attackers can send mails with files of these
types as well.

Now, I want to block files having double extension such as filenames
*.tmp.exe* format.

I think below regex is OK to insert in to amavisd.conf file.

*qr'.\.(tmp)\.exe$'i,  * # block this double extension

any comment?

cat /etc/motd

Thank you
Indunil Jayasooriya   -  Download Sinhala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list