Joeri Verdeyen bio photo

Joeri Verdeyen

Web-engineer, cyclist, Nespresso lover, Strava pusher.

Twitter LinkedIn Instagram Github Stackoverflow Last.fm Strava

Install and use imapsync on Ubuntu 14.04 / 16.04

Note

An updated version for Ubuntu 16.04: Install and use imapsync on Ubuntu 16.04

What is imapsync?

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 (often tied to an IMAP server).

Install dependencies

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

Clone git repository

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

Install cpan Unicode

You might get a Can't locate Unicode/String.pm when trying to build. It’s best to install the cpan Unicode package directly.

sudo cpan
cpan> install Unicode::String

Build and install

cd imapsync
mkdir dist
sudo make install

When everything above went ok, you should see something like this when imapsync -v

imapsync -v
1.592

Start syncing

An example syntax on how to sync from server1 on to server2, both using ssl.

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

More information can be found on the official imapsync website.

Thanks for reading

Feel free to leave a comment if you have remarks or like this post