Hi list,

i want to achieve that my postfix relay will modify the subject based on
the recipients.
The postfiy relay is receiving email from other internal systems and
forwards all mail to a mail group (testgroup) on another internal mail
system.

I have already configured the following in the header_checks file
if !/^To: email@company$/
/^Subject: (.+)$/i REPLACE Subject: [email@company] $1
endif
For this one case it works fine.

Now i want to modify the subject for more emails in the header_checks like
if !/^To: email@company$/
/^Subject: (.+)$/i REPLACE Subject: [email@company] $1
endif
if !/^To: email@company2$/
/^Subject: (.+)$/i REPLACE Subject: [email@company2] $1
endif

I have read that there is a header_checks limitation for the first line
check, so my example does not work.
Does anybody know if its possible with regex within header_checks?
Or is there another possibility to solve this?

Any hints would be appreciated.

Thank you.
Andreas
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to