imapsync – Migrating to Google Apps or Google Mail

Written by James McDonald

๎‚Œ
๎ฅ
๎€ฅ

August 27, 2009

Get the imapsync utility atย https://fedorahosted.org/imapsync/

This was a successful attempt to copy all my email from my old dovecot powered server up to gmail using imapsync

imapsync --host1 10.11.12.13 \
--authmech1 LOGIN \
--port1 993 \
--ssl1 \
--user1 fromusername \
--password1 fromimapmailpassword \
--ssl2 \
--host2 imap.gmail.com \
--authmech2 LOGIN \
--port2 993 \
--user2 [email protected] \
--noauthmd5 \
--password2  toimapmailpassword \
--prefix2 jmcd. \
--syncinternaldates

Where host1 and other *1 options are your source IMAP server and host2* and other *2 options are your GMAIL target.

–prefix2 allows you to copy the mail into a folder in gmail so you don’t have dozens of messy folders littering the top level of your gmail mail account.

1 Comment

  1. vojtam

    Thanks, thanks much, only this commant is functional for me ๐Ÿ™‚

    Reply

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...