How to Install and use imapsync on Ubuntu 16.04

What is imapsync?

Imapsync is an IMAP transfers tool. The purpose of imapsync is to migrate IMAP accounts or to backup IMAP accounts. IMAP is one of the three current standard protocols to access mailboxes, the two other are POP3 and HTTP with webmails, webmails are often tied to an IMAP server. If you want to know more about imapsync follow the link

Now that you know what it is let’s start installing it.

first need to install all the dependencies before stating to install imapsync.

sudo apt-get install makepasswd rcs perl-doc libio-tee-perl git libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libfile-copy-recursive-perl build-essential make automake libunicode-string-perl libauthen-ntlm-perl libcrypt-ssleay-perl libdigest-hmac-perl libfile-copy-recursive-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmodule-scandeps-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libterm-readkey-perl libtest-pod-perl libtest-simple-perl libunicode-string-perl liburi-perl libdata-uniqid-perl libtest-mockobject-perl cpanminus

Next we need to install modules in to CPAN

sudo cpanm JSON::WebToken Test::MockObject Unicode::String Data::Uniqid

Let’s hope all those went well.Next step we need to clone the git repository.

git clone git://github.com/imapsync/imapsync.git

Next is to build and Install it.

cd imapsync
mkdir dist
sudo make install

Hope that everything has been installed and there was no errors. Next would be to find out if it is working. Next command will show the version if imapsync is working.

imapsync -v

Now to sync between the servers. Can use the following command.

imapsync --host1 server1 -user1 user@server1 --password1 user1password --ssl1 --host2 server2 --user2 user@server2 --password2 user2password --ssl2

Happy syncing!!!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *