From: Wietse Venema (no email)
Date: Sat Dec 01 2001 - 23:26:57 EST
Your regexp library routine is broken. The pattern below works fine
with a correctly implemented POSIX regexp implementation.
Wietse
Michael Ellery:
> I need to block attachments - so I searched the archives and found an
> expression (from Wietse) that would suit me, but it isn't working. I ran
> postmap -q - regexp:/etc/postfix/body_checks <testmail and it returned:
> postmap: warning: body_checks, line 0: error in regexp: Invalid character
> class name.
>
> In /etc/postfix/main.cf I have:
> body_checks = regexp:/etc/postfix/body_checks
>
> /etc/postfix/body_checks contains only the following (as one line):
> /^(Content-(Type|Disposition):.*|[[:space:]]*(file)?)name=("[^"]*|[^[:space:
> ]]*)\.(exe|com|scr|pif|bat|lnk|dll|vbs|js)[[:>:]]/ REJECT
>
> Something isn't quite right, but what is it?
>
> Thanks in Advance,
> Michael
>
> -
> To unsubscribe, send mail to with content
> (not subject): unsubscribe postfix-users
>
>
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|