Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Jun 2003 19:14:44 -0500
From:      Len Conrad <LConrad@Go2France.com>
To:        freebsd-isp@freebsd.org
Subject:   RE: Block exe files with Sendmail
Message-ID:  <5.2.0.9.2.20030609191237.036d2920@mail.go2france.com>
In-Reply-To: <001801c32e63$edd0a5e0$5264a8c0@jamieheckford>
References:  <3EE21F2A.6010807@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030609191237.036d2920>