May 25, 2017

How To Migrate or Backup IMAP Accounts With imapsync on CentOS

CentOS Logo

imapsync allows incremental and recursive IMAP transfers from one mailbox to another over the internet or in your local network.
As imapsync is incremental you can stop the transfer at any time and restart it later. The complete folder hierarchy will be copied recursively. Feel free to use this tool for your next IMAP migration or backup.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Install imapsync

Install imapsync via yum.

yum install imapsync

Migrate or backup an IMAP account

The migration or backup of an IMAP account is very simple. Just modify the --host1 line with the IMAP sender host, user and password and the --host2 line with ther IMAP receiver host, user and password.

/usr/bin/imapsync \
   --host1 123.123.123.1 --user1 mailuser1 --password1 mailuserpassword1 \
   --host2 123.123.123.2 --user2 mailuser2 --password2 mailuserpassword2

Comments

  1. Key problem, there is no package called imapsync – perhaps you want to add the sources you added to enable that?

Speak Your Mind