Pages

Tuesday, March 25, 2014

Migrate the Emails using imapsync


To migrate an email account sales@example.com from server1.example.com to server2.example.com, please do the following.
server1.example.com (source)
server2.example.com (target)
First create the corresponding email account (sales@example.com) at the destination.
Install "imapsync" utility on your Linux machine.
Save the passwords of your email accounts in the corresponding files and change the permission to 600 as given below.
/etc/secret1 contains the password of the source email account.
/etc/secret2 contains the password of the destination email account.
Changing permission.
chmod 600 /etc/secret1
chmod 600 /etc/secret2
Initiate the following command and wait for the process to complete.
imapsync --host1 server1.example.com --user1 sales@example.com --passfile1 /etc/secret1 --host2 server2.example.com --user2 sales@example.com --passfile2 /etc/secret2

0 comments:

Post a Comment