It is common practice to change hosting service providers when you are not happy with the service of your present provider. A major deterrent in doing so is the problem of moving email accounts, especially when you have plenty of them stored on the server and you cannot afford to give them away. So, when you move your hosting account from one server to another, the issue that would bother you most is how you can move all emails stored in the old server to the corresponding email accounts on the new server.
If your hosting cpanel provides for taking full backup of your root directory, an easier method would be to download a full backup from the old server and restore it on the new server. This will automatically create all your email accounts on the new server with same passwords and copy all the old email files. This article becomes relevant when you do not have such a facility or for some reason you do not want to do a full backup-restore (not wanting to disturb your website files on the new server).
In this article I will demonstrate how to move emails from one hosting server to another. This is actually quite a simple task if your source and destination accounts are both on cPanel.
If you have a situation where your source and destination hosting accounts use different types of control panels, check this other article on How to move your Email accounts from one hosting provider to another without losing any mails.
As a first step, create all your email accounts on the new server, as they exist on the old server. This can be done from your cPanel control panel on the new server. To do this, the iconized link you need to click in your new cpanel is - Email Accounts.
Next, connect to your old hosting account via FTP and download all your email related directories and files.
After establishing FTP connection (using any standard ftp client), navigate to the root directory of your hosting account. You will see a directory structure somewhat like shown below.
All your emails are under the mail directory. When you drill down to the mail directory, you will see a directory structure somewhat like shown below. You need to download everything under the mail directory.
Drill down to the directory yourdomainname.com. In our example, it is how2lab.com. You will see a directory structure as shown below. Here each listed directory corresponds to an email account that you have on your old server.
Drill down further to any one of the listed sub-directories. You will see a structure as below. These are your email folders and some or all of them will be containing your email files, which are essentially required to be moved to the new server.
Instead of moving emails directory by directory, it would be much easier to simply download the entire set of directories and folders under mail directory. So, download everything under the mail directory into your local computer.
Now, disconnect from the old server and connect to the new server via FTP. Navigate to the mail directory on the new server. Upload everything that you downloaded from the old mail directory on to the new mail directory. This will copy everything on the new server. If you already had some emails on the new server (in case you decided to move emails from old server after having operated the new one for some time), you do not have to worry. They will remain intact and your old mails will simply get added on to the corresponding directories on the new server.
Once all files are uploaded, you are DONE. You can verify that old mails have indeed moved into your newly created email accounts, by logging into your new email accounts using a webmail interface.
How to access your emails in the smarter Microsoft Outlook using IMAP?
How to move your Email accounts from one hosting provider to another without losing any mails?
Microsoft Exchange ActiveSync for Android
OX App Suite - a must-have for people on the move
Communicating with your customers and business associates via mailing lists
How to move your Email accounts from one hosting provider to another without losing any mails?
How to resolve the issue of receiving same email message multiple times when using Outlook?
Self Referential Data Structure in C - create a singly linked list
Mosquito Demystified - interesting facts about mosquitoes
Elements of the C Language - Identifiers, Keywords, Data types and Data objects
How to pass Structure as a parameter to a function in C?
Rajeev Kumar is the primary author of How2Lab. He is a B.Tech. from IIT Kanpur with several years of experience in IT education and Software development. He has taught a wide spectrum of people including fresh young talents, students of premier engineering colleges & management institutes, and IT professionals.
Rajeev has founded Computer Solutions & Web Services Worldwide. He has hands-on experience of building variety of websites and business applications, that include - SaaS based erp & e-commerce systems, and cloud deployed operations management software for health-care, manufacturing and other industries.