My setup :
Our current server 90.0.0.50 [example] which is containing domain testdom.com.
testdom.com's MX
record points to Google mail. Due to some issues we need to host our domain on some other server 90.0.0.60 [example], so I'm setting up environment for testdom.com on 90.0.0.60. Once I complete my setup, I can point our A
record from the current server to the new one.
I've created domain with plesk testdom.com on 90.0.0.60, all is working fine, My issue with sending mail by php function. I can send mail to all domains, but my own domain!
eg from: [email protected]
to [email protected]
When I googled all said about mydestination. In mycase it's
mydestination = localhost.$mydomain, localhost, localhost.localdomain
Please help me solve this issue, as I need this to switch to my new server.
Versions :
Operating System : CentOS 6.4
Send Mail : Postfix-2.8.4
PHP : PHP 5.3.3
Plesk : 10.4.4
domain : testdom.com // example
example.com
instead. also consider using one of the IP-addresses reserved for testing purposes (as outlined in RFC5737) – umläute Oct 22 '13 at 9:37echo "foo" | mail -s testmail [email protected]
) do you get any errors? what do the postfix logs say? – umläute Oct 22 '13 at 9:44