for testing purpose, I have to modify my postfix configuration to make the follow behaviour:
I have an email like this:
From: sender@foo.barTo: recipient@foo.barSubject: Test email N.1
I want that postfix modify the headers in this way:
From: sender@foo.bar To: myemail@foo.barSubject: [Test from sender@foo.bar to recepient@foo.bar] - Test email N.1
Hi have tried to manipulate the Subject with this text:
/^[sS]ubject:(.*)/ REPLACE Subject: From: $1
in the file:/etc/postfix/header_checks
and enabling the header check in main.cf:
header_checks = regexp:/etc/postfix/header_checks
The Subject is correctly modified but only with a static test.If I want to insert a variable (like From: and To:), I don't know how to do that.
Someone could help me please?
Thanks in advance