Mail On cPanel / Website On Another Server

greetingsc

Well-Known Member
May 18, 2004
45
0
156
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
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
 

greetingsc

Well-Known Member
May 18, 2004
45
0
156
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)?
 

adept2003

Well-Known Member
Aug 11, 2003
281
0
166
~ "/(extra|special)/data"
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)?
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.
 

greetingsc

Well-Known Member
May 18, 2004
45
0
156
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
 

brettcave

Member
Nov 13, 2006
9
0
151
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).