Move Mail server to a new server

Adenoid Hynkel

Expert Member
Joined
Oct 15, 2008
Messages
4,977
How would I go about this.

Domain name is domain.co.za - hosted locally
Dedicated server set up in the states. Some subdomains are already running of that server. For eg. support.domain.co.za is running on the server in the states. A Record points to the ip in the states.

How would I manage to get the mail server working on the server in the states?

In cpanel, the value for mail (mail.domain.co.za - mail server) is domain.co.za under CNAME. So no A record is being used here.

Both servers have cpanel installed.

Reason for this, Need to save on some bandwith. All subdomains and mail server need to run of the server in the states, and just the website on the local server.
 

James

Expert Member
Joined
May 26, 2004
Messages
2,617
This is how I would do it,

First set up a temp MX called x.domain.co.za which points to your new server

Now on the new server make sure all mail accounts have been set up that you need and add the domain aliase you created above so all mail can recieve mail, eg james@x.domain.co.za which is an aliase for the account james@domain.co.za

On you old server set up forwarders on all accounts that will forward all mail to email@x.domain.co.za. You can now change all mail client settings to use the new server.

Now all mail will be delivered to the new server so you can now safely change your primary mx record and you will not miss any mail, all mail, even mail that have stale MX info and send to the old server will be delivered on the new server.

Make sure you have a PTR (reverse DNS) set up on your new mail servers IP and you should be good.
 

Adenoid Hynkel

Expert Member
Joined
Oct 15, 2008
Messages
4,977
Thanks for the help James. Worked.
Also big thanks to JasonH for guiding me through all the steps.
 
Top