I'm hosting a site- lets call it mysite.com- but I'm not hosting DNS. The people managing the DNS has pointed the A record to mysite.com and pointed the MX records somewhere else.
mysite.com has all DNS turned off.
All their emails are hosted like
jim@mysite.com. I'm using php's mail function to send the email which I think it's using postfix.
I can send emails to my person email like this-
sendmail -v
myemail@gmail.com < test.mail
but if I try to send it to
jim@mysite.com nothing comes through.
All log files at /var/log/maillog* are empty.
All files at /var/mail/* are empty.
All files at /var/spool/* are empty.
In /etc/postfix/main.cf I commented out these line-
#mydestination = localhost.$mydomain, localhost, localhost.localdomain
#virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
In the /etc/hosts file mysite.com was pointed to the server's public ip (the one it's sitting on). I commented this out.
Restarted the postfix service and retried the sendmail command and still nothing. It still can go to my person email though.
What should I do?