Block exe files with Sendmail

Len Conrad LConrad at Go2France.com
Mon Jun 9 17:14:52 PDT 2003


>Or, If you fancied trying the excellent postfix, its as simple as:
>
>-- /usr/local/etc/postfix/block
>
>/^(Content-(Type|Disposition):.*|[[:space:]]*(file)?)name=("[^"]*|{^{:sp
>ace:]]*)\.(exe)[[:>:]]/ REJECT
>
>
>-- /usr/local/etc/postfix/main.cf
>
>Body_checks= regexp:/usr/local/etc/postfix/block

tpcre: is 10's of times more efficient than POSIX regexp:

see the postfix PCRE README

Len

_____________________________________________________________________
http://MenAndMice.com/DNS-training: New York; Seattle; Chicago
IMGate.MEIway.com: anti-spam gateway, effective on 1000's of sites, free



More information about the freebsd-isp mailing list