banned_filename_re not working

Gabriele Bulfon gabriele.bulfon at
Tue Aug 30 11:40:45 CEST 2016

I have some running amavisd-new-2.7.0-pre8 (20101028), with configured banned_filename_re.
Though, I can send exe files or any other extension specified, as if it is not considered at all.
I also have final_banned_destiny as D_BOUNCE.
I also tried one of them upgraded to amavisd-new-2.11, no way, same result.
Anyone has any idea why it is not filtering attachments by filename as expected?
Here is the
banned_filename_re definition:
$banned_filename_re = new_RE(
qr'^\.(exe-ms|dll)$',                   # banned file(1) types, rudimentary
qr'^\.(exe|lha|cab|dll)$',              # banned file(1) types
[ qr'^\.(rpm|cpio|tar)$'       =0 ],  # allow any in Unix-type archives
qr'.\.(pif|scr)$'i,                     # banned extensions - rudimentary
qr'^application/x-msdownload$'i,        # block these MIME types
qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com|wsf|js)$'i, # banned extension - basic+cmd
Thanks for any help
Sonicle S.r.l.
Quantum Mechanics :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list