Like this: [qr'.\.(js)$'ix => 1]
Assuming you have a zip extractor installed in your machine it will work inside zip files. > -----Original Message----- > From: amavis-users [mailto:amavis-users- > [email protected]] On Behalf Of @lbutlr > Sent: Wednesday, March 02, 2016 9:10 AM > To: [email protected] > Subject: Re: js in zip attachment of e-mail > > On Mar 1, 2016, at 3:05 PM, Jakob Curdes <[email protected]> wrote: > > Am 01.03.2016 um 22:38 schrieb Thomas Spuhler: > >> There are a lot of e-mails on the lose with subject "Unpaid invoice # xxxx" > >> containing a zipped js (Java Script) I got about 10 of them today. > >> Is there a way to filter them out using amavisd? > > > > We just banned .js as mail attachments everwhere, no sane human would > probably send .js files as a mail attachment over a public mail server!? > > I'm new to amavisd, how exactly would I add .js to the blacklist and will that > work for .js files inside zips? > > > -- > No matter how fast light travels it finds the darkness has always got there > first, and is waiting for it.
