For those of you who are changing their IMAP email account to a different server, there is a very nice utility called imapsync.
The utility is actually written in PERL so it can run on any number of hosts that support PERL scripting, and while it has many config options, here is the actual command we used to transfer an email account from our server to Google Apps Mail account(GMail is the same) from a Linux box:
The command
imapsync \
–host1 thinkovi.com –user1 email@thinkovi.com –password1 mypass1 \
–host2 imap.gmail.com –user2 new@gmail.com –password2 pass2 \
–ssl2 –ssl1 –authmech1 PLAIN –authmech2 LOGIN
- bear in mind that this utility will work only for email servers supporting IMAP protocol.
- also, in the above code notice we have used SSL for both connections, and PLAIN authentication for the original server and LOGIN for the imap server at google


