Block exe files with Sendmail

Jamie Heckford jamie at tridentmicrosystems.co.uk
Mon Jun 9 01:50:32 PDT 2003


 
> James Godwin wrote:
>  Can anyone point me in the direction of a solution, scripts or 
>  documentation detailing the removal of exe files using sendmail.
> 

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

Cheers,

Jamie



More information about the freebsd-isp mailing list