Mail On cPanel / Website On Another Server

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.

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

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)?

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)?

Click to expand...

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.

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.