Linux – Fast way of copying IMAP to IMAP on CentOS

centosimaplinuxmigration

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?

Best Answer

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