Ever needed to move a email account from one server to another and all you have is the login name and password for the mail account. Whether it be cPanel to Zimbra, cPanel to cPanel, Plesk to cPanel or just to backup your Gmail account this great program has saved me a few times now.
imapsync created by Gilles LAMIRAL which allows syncing from IMAP to IMAP accounts. It will run any where a Perl interpreter can run. I have noticed that it is good idea to run on a server that is nether source nor destination although this is just for speed.
Install
This was pretty straight forward for me.
Centos
Ubuntu
or check out Gilles page for manual instructions and a paid support which he offers.
MDaemon Email Migration into Exchange Office 365 Use imapsync. We have found imapsync to be an excellent product for email migrations. It is inexpensive, efficient, and effective. Please see our blog postings MDaemon Mail to Exchange via imapsync and imapsync vs PST: Tonnage and Speed as well as any other recent email migration postings on our. SOLVED Massive migration using imapsync, don't know users passwords Post by Rich Graves » Mon Nov 05, 2007 2:43 pm I did 2500 users in 36 hours last July with essentially no user-visible downtime, though the total volume of mail was only 500GB. All imapsync logs are stored at /root/LOGimapsync/ and you can get lot of information about when the email migration process started, when finished, how much time it took, the size of the email box, and total number of emails migrated. Using more you can explore the imapsync logs to find out how your migration is going. Parent Directory - Back to Imapsync main page.: FAQ.APPENDerrors.txt: 2021-05-29 09:58: 6.2K: Authenticate via an admin account.: FAQ.AdminAuthentication.txt: 2021.
Howto Use for a Single Account
Source
– mail.domain.com
– username1
– password1
Destination
– mail2.domain.com (can be an Ip if no DNS is set or using as a backup method)
– username2 (can be the same as username1)
– password2 (can be the same as password1)
You can run this multiple times to make sure the email is in sync right up to when the DNS is changed.
Imapsync Massive Migration Download
Running a Batch for Multiple Accounts
Imapsync Massive Migration Tool
Now doing a batch of account at with a single script (this is for linux based systems only).
This is the script I use, it is a mix of scripts and from different sources including my own way of doing things like lockfiles. Use at own risk.
This is made up of 2 files;
- imapsync-accounts.txt is in the format of user;pass each on a new line.
- imapsync-batch.sh is the script below.
And all that is left is to run it.
Once again if you need to re sync, all you need to do is re run the script and it will sync it again.
Notes / Reference:
It is a one way sync, to go back you will need to flip the servers.
http://freshmeat.net/projects/imapsync/
Imapsync Massive Migration Update
http://wiki.zimbra.com/wiki/User_Migration/