These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Postfix and return path, spam problem on the new forum.
When I try to send email via Php mail() function, if the domain I send from is "test.com" and email is "info@test.con", as return path in header I get: "test@server1.demo.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: info@test.com? So gmail and similar doesn't consider it as spam? I'm using virtualmin gpl in centos 5.7 & 6. Thanks
Neorf
http://php.net/manual/en/function.mail.php
-f user@example.org = your solution, try it and let us know,