IMAPSync is a great tool for migrating email data via IMAP. There so many ways to migrate from/to this platform with , however i still chose using it because this tools directly transfer all mail data from/to new mail server. You can read the wiki for more detail explanation.
Okay first, all you need to know (and all i known :D) this app only run under Linux System.
Step 1 – Install Imapsync
Install epel repo on your system if it wasn’t installed, by running this command
sudo yum install epel-release
after epel repo successfully installed on your server, next step is to install imapsync using this command
sudo yum install imapsync
After imapsync successfully installed on you system, now you can start the migration process you need using this tool.
Step 2 – Migration
|Note : If you migrating from Google Account whether from business or free platform, just don’t forget to enable “Less secure app access” before the migration process start.
Note : If migrating your mail data to zimbra FOSS , make sure to use non-SSL IMAP Port incase you don’t have valid certificate.
Follow the command syntax below.
imapsync --host1 imap.source.example.com --user1 email@example.com --password1 <S0urcePassw0rd> --ssl1 --host2 imap.dest.example.com --user2 firstname.lastname@example.org --password2 Dest1nat10NPassw0rd --ssl2 --syncinternaldates --noauthmd5 --port1 <port number> --port2 <port number> --exclude "All Mail|Spam|Trash" --allowsizemismatch
and wait until it finish and show something like this
Done, all you inbox email data is completely copied to new platform.