LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Having Trouble Emailing to Same Domain on Different Server (https://www.linuxquestions.org/questions/linux-server-73/having-trouble-emailing-to-same-domain-on-different-server-4175483928/)

iamchairs 11-08-2013 03:18 PM

Having Trouble Emailing to Same Domain on Different Server
 
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?


All times are GMT -5. The time now is 11:45 AM.