Cpanel Tips: MX to non-hosted site
We are in the development stage of a site at domain.com. To host this site we created an account in Cpanel for domain.com and started our testing. After a couple of days we get a report that email that is being sent from domain1.com is not reaching the recipients at domain.com.
After poking around for a couple minutes, it’s obvious that since both domain1.com and the (non-active) domain.com are on the same box the mail is being delivered locally.
After a quick chat with the nice people at #cpanel, I got the following solution.
1. create a A record for external.domain.com and point that to the IP address of the live MX server for domain.com
2. create an MX record on the local domain.com Zone and point that to external.domain.com
And people say I waste time when I’m on IRC.
The other option I had was to add the domain to /etc/remotedomains and remove it from /etc/localdomains but since this is a managed server I’m working on, I don’t have that option.