On Thu, Apr 4, 2013 at 10:33 AM, Michael Dukelsky <[email protected]> wrote: > 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 >
On Debian amavisd.conf is spread over several files. It works now. Thanks for your help.
