Copy Email from one cPanel account to another

You may find yourself in the situation where by you need to move an email account from one server to another, and there are a few ways this can be achieved, with varying levels of complexity.

The easiest tool to use is called imapsync. This one will allow you to copy the emails from the command line easily, and can be used as follows:

imapsync --host1=source --user1=user@domain.null --host2=destination --user2=user@domain.null

Replace source, user@domain.null, and destination with their appropriate values.

More details on this software can be found at http://imapsync.lamiral.info/

The second option would be to use Thunderbird. Simply add the destination in Thunderbird, use CTRL+A to select all the messages in a source mailbox, and drag it to the destination's equivalent folder.

The third option you can follow is to create the email account on the target and copy all the files in the folder /home/$cpanelUser/mail/$domain/$mailUser/ to the target server.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

You may be familiar with ClamAV and Maldet (aka Linux Malware Detect). They're widely known as two excellent choices for identifying malware. What you may not realize, however, is that they can be...

Read More ...

On cPanel servers, you may come across the process /usr/local/cpanel/bin/mysqluserstore/usr/local/cpanel/bin/mysqluserstore creates and updates the /var/cpanel/databases/users.db and...

Read More ...

If your server is running cPanel/WHM, simply execute the below commands via SSH (as root):wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.shsh...

Read More ...

If you're like us, you'll want your server's timezone to match your local time to make log management easier. Fortunately, this is easy to do! This guide works perfectly on servers running CentOS...

Read More ...

This nifty command allows you to built up a list of the largest files and directories:FS='/';clear;date;df -h $FS; echo "Largest Directories:"; du -hcx –max-depth=2 $FS 2>/dev/null | grep [0-9]G...

Read More ...