Search code examples
emaildnsvpnwhm

No Such User Here VPN/WHM with Mail Routed through Separate Server


Ok, I am using a VPN on GoDaddy for webhosting. But on one of the websites that I am hosting, the email is handled on a separate VPN.

So I have an A record for domain.com set to the GoDaddy VPN and an A record for mail.domain.com set to the IP of the other domain and several CNAMES pointed to that A record. It's all working beautifully except for one thing....

Email from other domains on the GoDaddy VPN cannot send to this domain. So [email protected] cannot send to [email protected]

I get error "No Such User Here" from my server.

I understand that the GoDaddy VPN is checking for that user locally and not finding it, but I don't know how to make it NOT check for this domain.

I am using WHM/cPanel with Exim and SpamAsassin. Thanks!


Solution

  • Not sure what the deal is with the downvotes, but here was my solution (probably obvious).

    From Linux Terminal:

    sudo su                     (for admin rights)
    nano /etc/localdomains      (erase domain from local domains)
    nano /etc/remotedomains     (add domain to remote domains)
    

    Now it doesn't check that domain for users locally before it sends it out to the remote server.