in my mail server I have a mailbox me@mrtsolutions.it and an alias ciao@mrtsolutions.it which send all to me@gmail.com.

Now when I send from user@gmail.com an email to ciao@mrtsolutions.it, I receive the mail in me@gmail.com. Now I would like to rewrite mail header in forwarded messagge with From field set to forwarded@mrtsolutions.it and Reply-To field set to original sender.

My header_check file:

if /^To:.*(ciao@mrtsolutions.it|contact@mrtsolutions.it)/
/^From:(.+@.+).*$/ PREPEND Reply-To:$1
/^From:(.+@.+).*$/ REPLACE From: forwarded@mrtsolutions.it

Where am I wrong? Nothing of this works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.