Yesterday I moved my domain bornageek.com to a new Strato server. But since I hosted different mail accounts for different purposes, like one general account, one for friends and one for ebay etc., I had to migrate them to the new server. Fortunately I found imapsync, a very easy to use software that allows the user to move all emails from one account to another using the imap protocol.
To get started you have to install some packages needed by imapsync
and some packages needed to install the latest version of imapsync from the github project:
After that you could download the source code of the latest version from the github project into the /tmp directory:
Finally you could switch into the downloaded directory and install imapsync:
You should see something like this:
You are now able to move your emails from the source host to the target host using the following command:
But before you actually migrate your mail accounts, you should simulate a transfere using the –dry option like this:
If this passes without any errors you are ready to start, but wait there are some more options you might be interested in. If you for example need to specify another port than the standard one, you could use the –port1 respectively –port2 option. Or if your servers support ssl you could enable ssl using the –ssl1 option for the source host and accordingly –ssl2 for the target host. Furthermore imapsync would ask you for the source host and target host passwords if you execute the code above, to specify the passwords directly, imapsync offers the –password1 and –password2 option. To understand how this different options work have a look at the example below.
Hope this helps you! Until next time, happy syncing!