I have a Postfix mail server set up. I have one account credentials entered in. The mail server is sending mail through the Google Apps mail servers. So in a postfix config file I have my gmail credentials as:
In my PHP application I use the mail() function to send mail.
Everything works, except no matter what I set the 'from' header address to, it ALWAYS says it is coming from firstname.lastname@example.org.
I have used other setups where the email's 'from' header could be altered, so that I could have email@example.com, firstname.lastname@example.org, etc..
Any help would be greatly appreciated in how to set this up.