Re: regexp header_check over two fields?

From: Michael Tokarev (no email)
Date: Tue Oct 01 2002 - 07:13:50 EDT


Christian Hammers wrote:
> Hello
>
> This is not working:
>
> header_checks = regexp:/etc/postfix/my_access.regexp
>
> /etc/postfix/my_access.regexp:
> /^To: sms/!/^From: ch/ REJECT You are not allowed to send sms.
>
> It should deny every mail with a header containing "To: sms" except those
> that contain a header like "From: ch". But it denies everything to "sms".
> What am I doing wrong?

Because header_checks sees ONE LINE AT A TIME. Since To: and From:
are in different lines, this will not work.

/mjt

-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD