Website on new server. Email on old - DNS settings?

alex11

Registered
Jan 26, 2017
1
0
1
Brisbane
cPanel Access Level
Website Owner
I have hosting that currently hosts our website and IMAP email. I need to host the website elsewhere but keep the email as is.

I have changed the main domain A record to point to the new host's IP. This now shows the new, migrated website on the new server BUT the email no-longer works.

Currently the email DNS setting is as follows:
NAME: mail.[mydomain]
TTL: 1440
CLASS: IN
TYPE: CNAME
RECORD: [mydomain]

What should I change to keep the mail on the existing server?

My assumption is that as I pointed the domain A record to the new IP, the mail DNS setting is pointing to the domain, not an IP. As a result, I should point mail.[mydomain] to the existing host's IP.... Does that sound right? if not, what else could I check?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

You should setup an "A" record for "mail.yourdomain.tld" pointing to the IP address of the server that hosts the email. Then, ensure the MX records for the domain name point to "mail.yourdomain.tld".

Thank you.