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 email@example.com.
I have used other setups where the email's 'from' header could be altered, so that I could have firstname.lastname@example.org, email@example.com, etc..
Any help would be greatly appreciated in how to set this up.