If your domain is using external an mail server like Google mail for its pop and smtp activities, you need to make the following changes in your cpanel server.
Go into WHM / DNS Functions / Edit a DNS Zone and select the domain >
where it says;
mail | 14400 | cname | domainname.com
mail | 14400 | A | 126.96.36.199 ( which is the IP of your customers preferred mail server)
This will point the system to the new mail server. Now, log into your server as root using SSH and
REMOVE the domain from /etc/localdomains and then ADD the domain to /etc/remotedomains.
and then restart exim. Check your configuration via the following command to send a test email.
sendmail -v “[email protected]”
sendmail should connect to google via the mx records. You can also use the following command to find an MX record :
dig domainname.com MX