Archives

Migrating email from Gmail to Office365 using imapsync

To migrate email from Gmail to Office365, start by logging into Gmail, and hiding all the labels that are not to be migrated and enable IMAP access.

Create the Office365 account and obtain the IMAP server address, mine was pod51010.outlook.com,

Install imapsync using either: apt-get install imapsync   or yum install imapsync

Fill in the details below with the appropriate usernames and passwords and execute the command below:

1
2
3
4
5
6
7
imapsync --buffersize 8192000 --nosyncacls --subscribe
--syncinternaldates --host1 imap.gmail.com --user1
USERNAME@gmail.com --password1 GMAILPass --ssl1
--port1 993 --host2 pod51010.outlook.com --user2
OFFICE365User --password2 OFFICE365Pass --ssl2
--port2 993 --noauthmd5 --useheader 'Message-ID'
--skipsize