Devhour

Taking time to write about development

Migrating email to google apps

After months of servicing an email account which kept requiring me to delete emails to free up space I finally decided to make the switch to Google Apps and take advantage of GMail and apps for businesses.

The setup process of Google Apps was very straight forward however the process of migrating email from one account to the other proved frustrating at best. Google Apps has a built in migration tool but because it was unable to verify the ssl certificate on the other server it wouldn’t continue the process.

Step 2 was to try an app on the Google Apps marketplace called Carbo. This was happy enough to connect to the other server and even started bringing in the emails, but after importing email 90/2878 I got an email saying it was complete. Trying to restart the process to try again proved useless as I had used my 1 and only free migration.

Back to the drawing board and I found a perl script which has been recommended called imapsync. While this was a little more manual than I would have liked, it actually worked beautifully and all mail was imported successfully. Below I’ll outline exactly what needed to be done…

Running it on Debian 7 was apparently ‘not easy’ according to the install notes. But in reality there were only a few commands that were needed to be run.

This will install all the perl dependencies that are needed.

We manually need to install this perl dependency because debian doesn’t have a package available for it yet.

Next either clone or download the imapsync zip from its github site.

And finally run the sync with the following (making sure you change the bits in <>):

It’s as easy as that!

, , ,

Leave a Reply

Your email address will not be published. Required fields are marked *