{"id":159,"date":"2011-05-06T11:18:02","date_gmt":"2011-05-06T17:18:02","guid":{"rendered":"https:\/\/www.joshualyman.com\/?p=159"},"modified":"2011-05-07T14:01:16","modified_gmt":"2011-05-07T20:01:16","slug":"migrating-from-private-imap-to-google-apps-email","status":"publish","type":"post","link":"https:\/\/www.joshualyman.com\/2011\/05\/migrating-from-private-imap-to-google-apps-email\/","title":{"rendered":"Migrating from private IMAP to Google Apps Email"},"content":{"rendered":"
I have recently been moving several clients off of a basic email server to a Google Apps account (Free or Business, depending on the client), and several have had up to a couple years worth of email. I’ve tried several different techniques, but recently found some great command line kung fu that made the process extremely easy and much more accurate than the past attempts.<\/p>\n
There are several different methods available for migrating email from various servers to Google Apps, including POP transfer<\/a> from within each account’s settings, dragging and dropping via IMAP<\/a> with a mail client like Thunderbird, or using the official email migration API from Google<\/a>. However, each of these methods has its downsides: POP is slow and kludgy, dragging and dropping only works for low volume accounts, and the email migration API requires code be written and using a for-pay Apps account. What’s a geek to do? Turn to free and open source solutions!<\/p>\n A little bit of searching turns up that a command line tool known as imapsync does a fantastic job of, well, syncing IMAP accounts. I was tipped off by a blog post on Marius Ducea’s blog<\/a> (lots of good stuff on that site by the way), which contains a basic introduction to imapsync and how to use it. The author of imapsync, Gilles Lamiral, continues to develop the software and is taking donations for different features, and also charges for the source and for support (visit Gilles’ site here<\/a>). However, thanks to the licensing of imapsync<\/a> (NSWF), it is also available for free from other hosted repositories. I was using CentOS, and got my copy from the following:<\/p>\n