When I try to send email via Php mail() function, if the domain I send from is “test.com” and email is “firstname.lastname@example.org”, as return path in header I get:
“email@example.com”, where server1.demo.com is the hostname of my vps.
So gmail put that email in spam folder.
How could I get mail() function sending email via postfix with return path: firstname.lastname@example.org? So gmail and similar doesn’t consider it as spam?
I’m using virtualmin gpl in centos 5.7 & 6.