Fast way of copying IMAP to IMAP on CentOS

I'm trying to copy of IMAP emails from one server to my new server but after Googling for hours and trying several tools, nothing is working. Is there a tool that actually works?

I am copying hundreds of thousands of emails so using a email client is out of the question, I tried it, and at the rate of a email per 2 seconds, it would take a few weeks or months!

www.linux-france.org/prj/imapsync/ is commonly mentioned, however, the tool is no longer available.

I tried www.athensfbc.com/imap_tools/ which just hangs and does nothing.

Any migration tools that work?


Solution 1:

I think I might have gotten it to work [...] used the imapsync.pl tool instead

I see what the problem is. There is a bug in imapcopy.pl that comes into play when the source and destination mailbox hierarchy prefixes are both "Inbox.". I have fixed it and posted the new version at http://www.athensfbc.com/imap-tools.

imapsync.pl does not have that problem.

-Rick

Solution 2:

You can use IMAPSync - http://imapsync.lamiral.info/

It works wonderfully for batch migrations...

Solution 3:

I have heard good things about offline IMAP (http://offlineimap.org/) Not personally used it, but I know someone that has and he was very pleased with it

Solution 4:

I tried www.athensfbc.com/imap_tools/ which just hangs and does nothing.

I'm the author of those tools. I assume you ran imapcopy.pl?

Try running it in debug mode with the -d and -I arguments and please update your original question with the results. That will hopefully give an indication of why it is hanging.

Solution 5:

If you are using Maildir, theres no reason why you cant just scp them.

HTH