On Sep 16, 2013, at 13:41, Rowland Onobrauche <[email protected]> wrote:

> Postfix config
> 
> postconf -n

[snip]

> mime_header_checks = regexp:/etc/postfix/mime_header_checks

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

http://www.postfix.org/header_checks.5.html

The manpage gives a perfectly good example of how to do this, using a 
PCRE pattern. Have you tried that example? Has worked fine for us for 
years.

Mvg,
Joni

Reply via email to