How to Mail Migration Using Imapsync

From PheonixSolutions
Jump to navigation Jump to search

Mail Migration Using Imapsync

1) Install imapsync :

To install imapsync on CentOS you will need to follow the below-given steps.

 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
 rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
 yum install imapsync

2) Migration :

First you need to arrange the email accounts for following order

 “oldusername” “oldpassword” “newusername” “newpassword”
 /usr/bin/imapsync –host1 old.mailserver.com –user1 test@domain.com –password1 mypasswd –host2 new.mailserver.com –user2 test@domain.com –password2 mypasswd

For example

  imapsync --host1 imap.everyone.net --user1 contabilidad@premper.net --passfile1 /etc/secret1 --ssl1 -port1 993 --host2 95.217.195.81 --user2 contabilidad@premper.net --passfile2 /etc/secret2
 Host1 --- IP address or host name of the old account
 User1 ---old email address
 Passfile1 -- old account password
 Host2 -- IP address or host name of the new account
 User2 -- New email address
 Passfile2 -- New account password