---
title: How to Migrate Email Accounts Between cPanel Servers
description: "Emails can be migrated between cPanels, in different ways. You can use the cpanel interface, you can use the command prompt or you can use migrations tools like [**imapsync**](https://imapsync.lamiral.info/X/). This article will guide on how to move email data in…"
url: "https://truehost.com/support/knowledge-base/how-to-migrate-email-accounts-between-cpanel-servers/"
updated: "2025-04-09"
category: Cloud servers in Kenya
---

# How to Migrate Email Accounts Between cPanel Servers

Emails can be migrated between cPanels, in different ways. You can use the cpanel interface, you can use the command prompt or you can use migrations tools like [**imapsync**](https://imapsync.lamiral.info/X/).

This article will guide on how to move email data in very simple steps.

### Prerequisites

- You will need access to both the source and the destination cpanels
- If you are moving emails to an addon domain on the new server, then you need to[create the addon](https://truehost.com/support/knowledge-base/how-to-add-an-addon-domain-on-jupiter-theme-cpanel/)there

### Step by Step on How to Migrate Email Accounts Between cPanel Servers

**Backup Email files on the current server**

- Log in to the source cpanel. This is usually done using any of the URLs below;

```
https://yourdomaain_name:2083

https://yourServer_name:2083

https://cpanel.your_domain_name
```

![](https://truehost.com/support/wp-content/uploads/2024/12/image-13.png)

- Navigate to **Files >> File Manager**

![](https://truehost.com/support/wp-content/uploads/2024/12/image-14.png)

- In file manager, locate a directory called **mail**. That is what stores email data
  **Step A.**If you want to move all emails, then right click on the **mails** directory, and click on **Compress**. If you want to move just one domain's email, then jump to ****S**tep B** below.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-15.png)

- Choose a compression type. You cab use **.zip** or **.tar.gz** then click on **Compress Files**

![](https://truehost.com/support/wp-content/uploads/2024/12/image-18.png)

- Let the process happen to completion, the right click on the compressed file and download it to your local computer. Note that download speed will vary depending on the size of the file and your internet speed.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-20.png)

****S**tep B.** If you have addons domains on the cpanel, and you want to move emails for just one domain, then enter the mail folder and instead compress the folder for the domain whose emails, you want to move.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-17-1024x757.png)

- Next we will backup the email password and configuration file. Other than than compressing the **mail** directory.

**Step C**: Proceed and compress the **etc** directory, also found in **File Manager.** Do this, if you compressed the entire mail folder in the above step. If you are moving emails for one domain, jump to **Step D**

![](https://truehost.com/support/wp-content/uploads/2024/12/image-19-1024x210.png)

- Once done, right click the file and download it to your local computer.

**Step D**: If you compressed a particular domain's folder in the mail folder, then similarly here, enter the etc directory and compress the folder for that domain, then download it to your computer.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-21.png)

**Upload Email files to the new server**

At this point, having gone through the above steps, I expect that you have you email and etc compressed files downloaded to your local computer. You need to uplaod the files, to same locations, on the new server

- Log in to the cpanel of the destination server

![](https://truehost.com/support/wp-content/uploads/2024/12/image-22.png)

- Navigate to **Files >> File Manager**

![](https://truehost.com/support/wp-content/uploads/2024/12/image-23.png)

- Note here, you will uplaod the files that you downloaded to the same locations that they were, but now on the new server.

**Part 1:** If you compressed **mail** and **etc** directories in the source server's file manager, then upload their compressed files to same location, on the new server, otherwise jump to **Part 2**below. Note that upload speed will vary depending on the size of the file and your internet speed.

**Part 2**: Same case, if you had compressed a particular domain's folder in **mail** and in **etc** of the source server then uplaod them in same locations on the new server. This is what I did, and so I will access etc folder of the destination server and uplaod there, a file that I compressed from etc of the source server.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-25-1024x308.png)

- Once uploaded, extract the file there.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-26-1024x363.png)

![](https://truehost.com/support/wp-content/uploads/2024/12/image-27.png)

I will also access **mail** of the new server and upload there a file that I downloaded from mail of the source server, then extract it

![](https://truehost.com/support/wp-content/uploads/2024/12/image-24-1024x411.png)

![](https://truehost.com/support/wp-content/uploads/2024/12/image-28-1024x394.png)

![](https://truehost.com/support/wp-content/uploads/2024/12/image-29.png)

- That way, without any other configurations or manual creation of mailboxes, your emails should be moved and should now appear in your List of emails
- Navigate to cPanel's **Home >> Emails >> Email Accounts** to see the migrated mailboxes.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-30.png)

- I had one email, an I can now see it in the new cPanel without creating it manually

![](https://truehost.com/support/wp-content/uploads/2024/12/image-31-1024x390.png)

- You now need to [update email DNS of the domain](https://truehost.com/support/knowledge-base/manage-and-reset-dns-records-using-zone-editor-in-cpanel/) to point to the new server to avoid adding email data on the old server.

Dear readers, this is a life-hack. A short, simple, and thus fast method of moving email accounts between cpanel servers, and I hope it has helped you and schooled you too.

Cheers!
