Amavis to detect .exe files in zipped attachments

polloxx polloxx at gmail.com
Wed Apr 3 15:23:27 CEST 2013


On Tue, Apr 2, 2013 at 5:43 PM, Michael Dukelsky <amavism at mail.ru> wrote:
> Hi,
>
> On 02.04.2013 17:32, polloxx wrote:
>
>> We'd like to block zipped attachmets which contain a .exe file.
>> What is the easiest (and fasted) way to accomplish this using Amavis?
>
> First check if .exe extension is not commented out in
> $banned_filename_re definition, then check that 'zip' is not commented
> out in @decoders definition in your amavisd.conf. This is enough.
> "Filename banning" is in fact a misnomer because when you switch on
> banning files with .exe extension, the file content is also checked, so
> if an executable has for example a .pdf extension, it will be banned.
>

(accidentally replied personally, sorry)

Thanks for your answer Michael but I have no @decoders definition and
no amavisd.conf.
(running amavisd-new-2.6.4)


More information about the amavis-users mailing list