Executables within docx files?

Patrik Båt via amavis-users amavis-users at amavis.org
Thu Sep 5 13:44:06 CEST 2013


On 2013-09-05 01:15, Mark Martinec via amavis-users wrote:
> Alex,
>
>> Does anyone know if my suggestion to modify the $banned_filename_re
>> will work? Mark? :-)
>>
>> $banned_filename_re = new_RE(
>>   [ qr'^\[trash\]/0001\.dat$'       => 0 ],
>> ....
>> );
> Yes, I think it would work,
> but I'd have to try it on your document to make sure.
>
> Better just get the file utility fixed (i.e. its magic database).
>
>
> Alexander Wirt wrote:
>> See http://bugs.gw.com/view.php?id=277
> Great, thanks for bring it to the right forum.
>
>   Mark

Running latest file, will not return ARCHIVE and amavis will not 
extract it and .dat or .dat (catche-all) will not trigger, so update 
file and your magics.

thats how i solved it.

eg:
file ./test1.docx
./test1.docx: Microsoft Word 2007+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20130905/a6139c17/attachment.sig>


More information about the amavis-users mailing list