Has anyone ever set amavisd to block 2 extension ?

Noel Jones via amavis-users amavis-users at amavis.org
Thu Aug 15 14:25:14 CEST 2013

On 8/15/2013 3:07 AM, Watthanachai Kekhua via amavis-users wrote:
> Dear Amavisd-ML,
>                 I would like to block 2 extensions when email come
> to me with attach file like “aaa.jpeg.exe.zip”
>                 And for normal zip file will allow to receive normally.

Add this in the $banned_filename_re = new_RE( section.

qr'.\.(exe|vbs|pif|scr|cpl)\.zip$'i,   # block zip double extension

adjust the (exe|vbs|pif|scr|cpl) section as necessary for your needs.

  -- Noel Jones

More information about the amavis-users mailing list