Another postfix service ? Injection of original message

2017-08-17 Thread rolelael
Hello, I'm using postfix on RHEL and looking to accomplish the following : We have a postfix instance running were traffic from another smtp server ( smtp server A ) is being handled Postfix now does simple header_checks and reroutes to several other smtp servers, via sender based routing. I bel

Re: header_checks and custom header fails to trigger

2017-06-06 Thread rolelael
I understand , but .. /^route_gcgw: BE/ WARN Test is triggered now. And is there any way with header_checks I can accomplish my if .. end if somehow . Or is it really limited and not suitable for what I'm looking to do ? -- View this message in context: http://postfix.1071664.n5.nab

header_checks and custom header fails to trigger

2017-06-05 Thread rolelael
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 s

Re: Header_Checks & empty Return-Path expression

2017-05-31 Thread rolelael
OK but I was playing around now with the regexpr. and still an issue /^From:.*robby.vanmieg...@domain.be.*/ WARN TESTJE This one works /^From:.*from=<>*/ WARN from empty header This one not , but the 'string' is in the header From.. Example of Header From : header From: ROBBY VAN MIEGHEM fr

Re: Header_Checks & empty Return-Path expression

2017-05-30 Thread rolelael
Victor ; what should I accomplish with check_sender_access ? Seems this one is used to block senders ? We do not want to block emails, but reroute all the mails on postfix towards relayhosts ( specified by the sending domain ). In this case thinking in terms of out of office mails comming from O365

Re: Header_Checks & empty Return-Path expression

2017-05-30 Thread rolelael
Yes I tested that. The problems seems to lie in the header Return-Path not being found in the headers of the mail. I tried with the header From: and look for the string from=<> but I cannot accomplish this. Really stuck -- View this message in context: http://postfix.1071664.n5.nabble.com/

Header_Checks & empty Return-Path expression

2017-05-29 Thread rolelael
Hello I'm trying to accomplish the following : If the return-path is <> ( empty ) then do the following ; if domain is robbya.be or robbyb.be route via mailrobby.test.com ; if domain is robbyc.be then route via mailrobby2.test.com if /^Return-Path:\s**$/ /(^From:.*robbya\.be|^From:.*robbyb\.be