Banned filenames not extensions

Tone Kravanja Tone.Kravanja at
Thu Feb 18 05:37:42 CET 2016


I was trying to find and create the banned name for the filenames as recently exactly one type of files prevails as virus threat that is not yet detected by antivirus.

So as lately the attachments are named as invoice_scan_[random number].doc I was trying to create file filter that would detect words invoice and scan regardless to suffix.

So in $banned_filename_re I was trying to add it like this:


but it was in vain. As you see I have troubles to understand the regular expression here, so some help would be greatly appreciated.

Best Regards,
Tone Kravanja

More information about the amavis-users mailing list