CATEGORIES

TAGS

SSL

PostgreSQL

cPanel

email

Error

WHM

Linux

Bash

Debian

Ubuntu

How to move mails from a cpanel to the other

27th June
cPanel
How to move mails  from a cpanel to the other

When you want to move your hosting in other server you can have problems with moving mails from old cPanel to new. For example you can lost some mails or worse all information. But it easy moving all mails without lost anything. To do this you need have access to both, old and new servers and cPanel access to the new server. Now let’s start moving mails:

Step 1


First of all you need create new email account on your new server but it must have the same address and password as the old one. To do this go into cPanel on new server and click “Email Accounts”.

Step 2


Then download all files of old server. You must connect to your old server, use FTP programs like CuteFTP, filezila or FireFTP to do this. From the root directory go into “mail/domain.com/emailAccount”. There can be a lot of files but we are interested in two folders there are the “new” and “cur” download this folders on your local machine.

Step 3


If all it’s well upload this folders to your new server go into the same directory on new server, from where we have downloaded the folders “mail/domain.com/emailAccount”. Upload new and cur folders here by overwriting the existing ones. If the size of your mails is big it can take some time.

Step 4


Now we only need to update mail quota on new server because without this your mail would still show you 0MB/xxxMB or something same. That happen because you are just created your account, and new cPanel never had any records of the mails coming in. In the same directory “mail/domain.com/emailAccount” are “maildirsize” file, that have the both of servers. You just need copy the contents from “mialdirsize” file on old server to your new one.

We are done it.


SUBSCRIBE by email and never miss a post!