This is an old revision of the document!
http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html
IMAPcopy is a small utility that will help you migrate from one IMAP e-mail message store to a another one. I generally try to use this utility from the command line of one of the servers involved in the transfer in order to minimize traffic and time. You can copy many users at once, if you wish.
IMAPCopy doesn't really require any installation.
wget http://home.arcor.de/armin.diehl/imapcopy/imapcopy.tar.gz tar -xzvf imapcopy.tar.gz cd imapcopy
Edit the configuration file for each job:
vi ImapCopy.cfg
Make it look like:
SourceServer mail.source-server.com SourcePort 143 DestServer mail.sonoracomm.com DestPort 143 # CreateEmptyFolders skipfolder INBOX.Trash skipfolder INBOX.Sent skipfolder "INBOX.Deleted Items" skipfolder "INBOX.Sent Items" skipfolder "INBOX.Junk E-Mail" skipfolder Trash skipfolder Sent skipfolder "Sent Items" skipfolder "Junk E-Mail" skipfolder "Deleted Items" DenyFlags "\Recent" # SrcUser SrcPasswd DestUser DestPasswd # ========== ============= ============= ============== #Copy "bar" "barsrcpw" "bar" "bardestpw" Copy "username" "password" "newuser" "newpassword"
Now verify that all users and passwords are correct:
./imapcopy -t
Then transfer the messages if all is well:
./imapcopy
http://wiki.zimbra.com/wiki/Guide_to_imapsync
http://wiki.contribs.org/Imapsync
http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync
http://www.linux-france.org/prj/imapsync/
Imapsync is another tool for migrating IMAP message stores from one server to another.
yum install imapsync --enablerepo=epel
imapsync is also available from the RPMForge repository if you already have that configured.
man imapsync imapsync --help
Migrate from 'host1' to 'host2':
imapsync --noauthmd5 --host1 old.mail.server --user1 olduser --password1 oldpassword --host2 localhost --user2 newuser --password2 newpassword