Darryl, > Now I am confused;
> qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta| > inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst| > ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs| > wmf|wsc|wsf|wsh)$'ix, # banned ext - long ... > # Allow if it is or contains any undecipherable components: > [ qr'^UNDECIPHERABLE$'=> 0 ], > qr'^\.(zip|rar)$', # Block zip and rar (unless password protected) > But when I password protect a file using Winzip that contains a > filename.exe, it fails with the following; > > Our content checker found > banned name: multipart/mixed | application/zip,.zip,amdcon.zip | > amdcon.exe,UNDECIPHERABLE > All I want to achieve is to allow ANY file through if the archive is > protected/passworded, deny if not within an archive and a malicious > filetype.. So, move the rule which allows undecipherable files [qr'^UNDECIPHERABLE$'=>0] to above the rule which blocks .exe in a filename (the ...# banned ext). Mark ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
