Em 16/09/13 08:41, Rowland Onobrauche escreveu:

cat mime_header_checks
/name=[^>]*\.(scr|pif|bat|exe|dll|vbs)/ REJECT



rules catches what they were written to catch which is not the same thing as you expect them to catch. If it's not catching what you want it to, that's because the rule is not correct/incomplete.

as already stated by others, there are rules much more complete that matches other kinds of file attachments and are much more effective than yours.

i have strugled for quite a long time trying to reach the 'perfect' PCRE expression for that until i gave up and let amavis do that. It's simply easier and much more reliable/effective to do that on some piece of software that 'understands' the MIME complication instead of doing on postfix which doesnt.




--


        Atenciosamente / Sincerily,
        Leonardo Rodrigues
        Solutti Tecnologia
        http://www.solutti.com.br

        Minha armadilha de SPAM, NÃO mandem email
        [email protected]
        My SPAMTRAP, do not email it



Reply via email to