0

in my mail server I have a mailbox [email protected] and an alias [email protected] which send all to [email protected].

Now when I send from [email protected] an email to [email protected], I receive the mail in [email protected]. Now I would like to rewrite mail header in forwarded messagge with From field set to [email protected] and Reply-To field set to original sender.

My header_check file:

if /^To:.*([email protected]|[email protected])/
/^From:(.+@.+).*$/ PREPEND Reply-To:$1
/^From:(.+@.+).*$/ REPLACE From: [email protected]
endif

Where am I wrong? Nothing of this works

1 Answers1