> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mochahost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating emails via CPanel Webmail (Horde/RoundCube)

If you want to migrate your emails and have a cPanel mail service for your domain, it is possible to backup (export) your emails using both web interfaces - Roundcube or Horde.

## Access cPanel webmail

You can use one of the following links to access cPanel webmail: 

* [https://yourdomain.com/webmail](https://yourdomain.com/webmail)
* [https://serverXX.mochahost.com/webmail](https://serverXX.mochahost.com/webmail) (replace serverXX with the actual servername).

### Roundcube

1. In order to **backup (export)** emails to your local computer, select the required email(s) and click on the **More icon** in the bar above.

![](https://tutorials.my-virtual-panel.com/articles/5bJP0XX.png)

2. In the dropdown list select **Download (.eml)** option and specify the location to save the email(s) to.

![](https://tutorials.my-virtual-panel.com/articles/2CQa2PI.png)

NOTE: .eml files are supported by most of the email services, so you can easily restore them later on different servers.

NOTE: Unfortunately, Roundcube does not provide convenient functionality to download many emails at once, so if you want to backup the whole folder or account, we recommend using Horde instead.

3. In order to **import** the emails using Roundcube webmail, click on **Gear icon > choose Import messages**.

![](https://tutorials.my-virtual-panel.com/articles/t7Yvgld.png)

4. After this, choose the backup file you wish to be imported and click **Upload**.

![](https://tutorials.my-virtual-panel.com/articles/y3PdbBX.png)

5. Once done, you will get a notification the messages have been successfully imported.

![](https://tutorials.my-virtual-panel.com/articles/RR0PiBj.png)

### Horde

1. The process of **backing up** a single email in Horde is just the same as that in Roundcube - **checkmark the email** you want to backup and select **Save option** in dropdown menu. Email will be also saved in **.eml format** in this case.

![](https://tutorials.my-virtual-panel.com/articles/R9TOXbQ.png)

2. In order to **save all emails in the folder** (Inbox, Sent, etc.) right-click on this folder and select **Export option**.

![](https://tutorials.my-virtual-panel.com/articles/4VxSiEf.png)

3. Then you will be prompted to select the format of the backup file - **MBOX** or **zipped MBOX**.

If you just want to store emails, zipped option is more preferable as it will be smaller in size.

![](https://tutorials.my-virtual-panel.com/articles/d5xAsgh.png)

NOTE: This mbox file can be used for emails transfer to another cPanel account with Horde available (via Import option), imported to Thunderbird using corresponding extension, converted to .eml or other email formats via third party software. 

4. For **importing emails** in Horde right-click on the folder you wish to upload the emails to and choose **Import**.

![](https://tutorials.my-virtual-panel.com/articles/LcF2Vov.png)

5. Then select the **backup file in Mbox or .eml formats and click OK**.

![](https://tutorials.my-virtual-panel.com/articles/sNCvuom.png)

6. Now your emails are imported to the email account. You should get a pop-up notification the emails have been uploaded from the backup file to the account.

![](https://tutorials.my-virtual-panel.com/articles/ZSnwFgT.png)
