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.

Mail On cPanel / Website On Another Server

Discussion in 'E-mail Discussions' started by greetingsc, Jan 10, 2007.

  1. greetingsc

    greetingsc Active Member

    Joined:
    May 18, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I have a client on a cPanel server who is moving their hosting of the website only to another server. They would like email to remain on cpanel, the the cpanel server will continue to be there dns server.

    What entries in the dns editor should be changed / made to point everything to the new server but leave mail on cpanel? As a side complication they want to be able to continue using /webmail to access cpanel webmail.

    Any help would be great, thanks!

    Michael
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should add an A entry for your server to their zone and point their MX record to it. Then change all the other IP address assignments to their new server. That should be all you need to do. They'll need to login to your server using the http://yourhostname/webmail
     
  3. greetingsc

    greetingsc Active Member

    Joined:
    May 18, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Chirpy - that had been what I was thinking. Does changing the mail cname to a mail.domain.com A record with the local server's IP address make sense (plus pointing the mx record to mail.domain.com)?
     
  4. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    That would work fine, although you don't need to add ".domain.com" to the A record if its contained in the same zone file as the parent domain.

    You may also want to create a wildcard "*" with the A record pointing to the new server - this will save you from having to setup subdomain DNS entries for subdomains created on the other non-cpanel server.
     
  5. greetingsc

    greetingsc Active Member

    Joined:
    May 18, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, one final question (sorry - programming expert not dns expert), if the A record is just 'maill' what should the MX record point to: 'mail' (does it need any periods?) or mail.domain.com.? Thanks again.

    Michael
     
  6. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    mail.domain.com.

    As a side note, mx records shouldn't use cnames.
     
  7. brettcave

    brettcave Member

    Joined:
    Nov 13, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Wouldn't that make a great feature for cpanel / whm - clustering with allocating services to specific servers.

    I.e. have 3 servers in a cluster that you can configure 1 for web / mysql, 1 for mail and another for dns & backup (as an example).
     
Loading...

Share This Page