banned_filename_re not working
Gabriele Bulfon
gabriele.bulfon at sonicle.com
Tue Aug 30 11:40:45 CEST 2016
Hi,
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'^application/x-msdos-program$'i,
qr'^application/hta$'i,
qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,
qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com|wsf|js)$'i, # banned extension - basic+cmd
);
Thanks for any help
Gabriele
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160830/94ce063d/attachment.html>
More information about the amavis-users
mailing list