How to move mails with imapsync from Linux Server to other server or Exchange Mail server.

We have an old Linux mail server and want to upgrade or move mails to other server or new server. How to move easy?  Answer: imapsync.

Example: Move mails from old Linux mail server to new Linux Server:

[root@Linux673]# imapsync –host1 192.168.1.22 –user1 cristian –password1 PASS07432 –host2 192.168.1.1 –user2 cristian@ceae.info –password2 PASS-new87

Example: Move mails from old Linux mail server to new MS Exchange with TLS2

[root@Linux673]# imapsync –host1 mail.old-linux-dm.com –user1 vuser@old-linux-dm.com –password1 PassWORD –tls2 –host2 email.Exchange-Mail.com –user2 new-user@domain.local –password2 PassWORD

Example: Move mails from old Linux mail server to new MS Exchange with  SSL2

[root@Linux673]# imapsync –host1 mail.old-linux-dm.com –user1 vuser@old-linux-dm.com –password1 PassWORD –ssl2 –host2 email.Exchange-Mail.com –user2 new-user@domain.local –password2 PassWORD

You have to change email.Exchange-Mail.com, new-user@domain.local and PassWORD with your local setup.