Google-apps – Migrate from IMAP server to Google Apps

google-appsimapmigration

I am migrating my current self hosted IMAP mail server (hMailServer) to Google Apps.

I managed to move an account's "sent" folder to Gmail using Thunderbird drag and drop, and while it seems to keep most of the data correctly (date etc), I have 2 problems:

  • Some mails do not keep special characters charsets correctly, i.e. ç – they are shown correctly in thunderbird on the source server AND the destination server, but webmail (Gmail) shows them in a different charset, apparently

  • Some of the sent mails are listed as to "me", as if I sent the mail was sent to myself, even if that is not the case, again, this is a problem only when seeing the it in Gmail.

I suppose these problems might be related to incorrectly set headers in the original emails.
What could I try to change to fix these problems?

What application I could use to perform the migration without the above problems?

Best Answer

Use IMAPsync. It's exactly what you're looking for. I successfully used it a few years ago. I don't know for sure about the special characters issue, since I don't have any labels with special characters, but the other issues you brought up work flawlessly. I ran IMAPsync on an underpowered GUI-less virtual server that the company I was leaving was gracious enough to let me borrow for a day or two, and successfully migrated all my mail off the company server. (We parted on very good terms.)

Anyway, I'm not sure exactly which script I used to get the job done (I may have written my own), but both of these seem like promising candidates:

http://blog.otelconsulting.com/2010/01/imapsync-to-gmail-script/ http://www.thamtech.com/blog/2008/03/29/gmail-to-google-apps-email-migration