The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'E-mail Discussions' started by alex11, Jan 26, 2017.

Tags:
  1. alex11

    alex11 Registered

    Joined:
    Jan 26, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page