igfc
IS-IT--Management
- Nov 22, 2011
- 1
Hi
I am running postfix 2.8.2-1ubuntu on Ubuntu 11.04. I am using authSMTP as a mail server where all external mail gets sent. This has a restriction on it that means that the authSMTP account will only accept mail if the Envelope From address is specifically "noreply@mydomain.com"
I have a java app on a server that sends mail from a form that a user fills in.
The user enters their email address and the recipients email address and the app generates the mail for delivery and passes it to postfix.
What I want to do is simply rewrite the Envelope From to the noreply@mydomain.com and leave all other fields the same (esp the From: header)
The problemI seem to be up against is the original envelope From from the app can have any old email address in it so I need to not care about the original and just make every mail have the same envelope From.
I have tried the sender_canonical_maps and sender_canonical_classes in main.cf but no joy.
Anyone help?
Iain
I am running postfix 2.8.2-1ubuntu on Ubuntu 11.04. I am using authSMTP as a mail server where all external mail gets sent. This has a restriction on it that means that the authSMTP account will only accept mail if the Envelope From address is specifically "noreply@mydomain.com"
I have a java app on a server that sends mail from a form that a user fills in.
The user enters their email address and the recipients email address and the app generates the mail for delivery and passes it to postfix.
What I want to do is simply rewrite the Envelope From to the noreply@mydomain.com and leave all other fields the same (esp the From: header)
The problemI seem to be up against is the original envelope From from the app can have any old email address in it so I need to not care about the original and just make every mail have the same envelope From.
I have tried the sender_canonical_maps and sender_canonical_classes in main.cf but no joy.
Anyone help?
Iain