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)/ FILTER smtp:[mailrobby.test.com]
/^From:.*robbyc\.be/ FILTER smtp:[mailrobby2.test.com]
endif

This works but throws a warning :

/cleanup[64212]: warning: pcre map /etc/xxx/mime_header_checks, line 1:
error in regex at offset 16: nothing to repeat
/cleanup[64212]: warning: pcre map /etc/xxx/mime_header_checks, line 4:
ignoring ENDIF without matching IF

If i change the s**$ to what a coleague tells me :-) --> s*$ then no
warning, but both lines are not triggered. If i check for REGEXP it should
be indeed s*$ I guess. But then it fails to trigger...

Any idea ?




--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Header-Checks-empty-Return-Path-expression-tp90685.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to