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