Php – imapsync or PHP to migrate email

emailimapsyncmigrationPHP

I'm writing a simple web app with which people can migrate their email from one server to another. I've read about imapsync and tried it out. So far it works very good and seems to be a good solution. At the end of the migration it tells me it had used ~ 350 MB of memory.

Another possible solution is the imap-move PHP script. It has its own GitHub page here: https://github.com/edoceo/imap-move. I can't seem to find out how much memory it uses.

I want ~ 30 users to be able to use the web app at the same time, without running out of memory. I want to test which solution is the fastest and/or uses the least memory, but don't know how. Any suggestions?

Best Answer

Nothing I've ever seen beats the quality and reliability of imapsync. What it does appears to be an easy problem but it's really not and Gilles has worked out countless small problems over the years that plague other solutions. The solution you linked has only one commit over four years ago and I wouldn't waste a single second on this because it almost certainly will not work as well as imapsync - most likely it will only work in the specific setup the author tested it on anyway.

Related Topic