Thank you in advance for your assistance.
I have a simple problem that I am having trouble fixing.
I have a web app that sends mail through a postfix server as domain1.com, however the actual Postifix server is domain2.com.
When the app sends the email that appears to come from domain1.com to the real domain1.com it is seen as spoofing and is rejected.
Whitelisting is on domain1.com is not an option so my thought was I could use Header_Checks to replace *.domain1.com with email@example.com
I have tried several examples seen around the internet but none are working:
/From: *@domain1.com$/ REPLACE From: firstname.lastname@example.org
Would this be a viable solution? This server is used ONLY to send email to domain1.com and for internal alerting on server health (which I control those servers).
Any help or suggestions are greatly appreciated.