A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
Changed your mind?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
postfix multiple domains send emails only
Posted May 10, 20142.8k views
I am setting up a Postfix MTA that will be only sending mail for different virtual domains. We have other servers that will be receiving the mail for the domains so I only need to set up for sending on Postfix.
What my issue is I am trying to configure Postfix so that when it sends mail the header shows what domain the mail came from and not the domain the Postfix server is set to. For example....
Postfix server domain: domain1.com
Mail domain: domain2.com
Mail domain: domain3.com
When I send mail from domain2.com I want it to show in the header it was sent from domain2.com and not from domain1.com. What do I need to set in postfix so that this happens? Right now no matter what domain the mail is from the header always shows the server domain and I can't have that. Any help is greatly appreciated.
I'm not sure that this is possible. I guess the question is why do you need this, and what are you trying to accomplish? Most users are not going to be looking at the headers. Are you having issues with mail being rejected or filtered as spam?