On 6 June 2017 at 07:49, rolelael <robby.vanmieg...@gmail.com> wrote:

> Hello
>
> It's me again and the header_checks is driving me crazy
>
> Mail comming from other mail system comes into postfix were header_checks
> is
> enabled
>
> The mail system adds a header :
>
> route_gcgw: BE
>
> This header is visible when the mail is received
>
> I have a header_checks file where 'again' the if statement is not triggered
> :
>
> if /^route_gcgw: BE/
> /^Received:.*test\.be/ WARN warningOOOtestdomainT
> /^Received:.*testf\.be/ WARN warningOOOtestdomainF
> endif
>
> I also tried
>
> if /^route_gcgw:.*BE/
>
> &
>
> if /^route_gcgw:.*BE.*/
>
> Nothing seems to be working.
>
> What I'm a doing wrong here ?
>
>
​You can't perform a multi-line test like this. Please look at
http://www.postfix.org/header_checks.5.html especially the 'BUGS' section:
'These rules operate on one logical message header or one body line at a
time. A decision made for one line is not carried over to the next line.'​

Reply via email to