Cpanel Mail but remote host

Keelan

Member
Nov 16, 2013
13
0
1
cPanel Access Level
Root Administrator
I have a server with cPanel that i wish to use the mail for and the domain to go to web host.

So i set my nameservers on my registrar to my cpanel.

Then in my cpanel i set my MX record to mail.domain.com

Then i wasn't sure what to change my A record too as i don't have IP's for the web host only nameservers. It's a 3rd party host that i have no control over.


Simply i would like cpanel to deal with the mail and the domain to go to the 3rd party. However i do not want a redirect as that doesn't show my domain in the address bar.

Any help is appreciated.

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You will need to update the MX records to the hostname of the remote mail server, or it's own custom MX records that it has provided to you. You can update the "A" record for the "mail" entry to the IP address of the remote mail server.

Thank you.
 

Keelan

Member
Nov 16, 2013
13
0
1
cPanel Access Level
Root Administrator
Hello :)

You will need to update the MX records to the hostname of the remote mail server, or it's own custom MX records that it has provided to you. You can update the "A" record for the "mail" entry to the IP address of the remote mail server.

Thank you.
What i ended up doing at my registra was pointing the A record to the IP (i finally got it) to the web host (3rd party) then the name server records for mail.domain.com to my personal cpanel host.

Along with redirecting the subdomains webmail.domain.com & cpanel.domain.com to my cpanel host. Seems to work, site resolves and the emails go through.

Though im not sure if everything on my cpanel host i setup correctly. Would i still need to set the remote ip for the A record on "edit dns zone". I setup the MX record to mail.domain.com.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
If "mail.domain.com" is the only host using name servers associated with your cPanel server, then that's the only host that modifying DNS records on your cPanel server would have an effect on. If the domain name uses name servers associated with your registrar, then the DNS Zone on the cPanel has no bearing on actual DNS resolution.

Thank you.