Amavis to detect .exe files in zipped attachments

Michael Dukelsky amavism at mail.ru
Thu Apr 4 10:33:13 CEST 2013


On 03.04.2013 17:23, 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.
> 
> Thanks for your answer Michael but I have no @decoders definition and
> no amavisd.conf.
> (running amavisd-new-2.6.4)

Do you run amavisd without a configuration file? Or is it just named
differently? You may take amavisd.conf from the distribution
http://www.ijs.si/software/amavisd/amavisd-new-2.6.4.tar.gz



More information about the amavis-users mailing list