How to install imapsync on Ubuntu 12.04

Imapsync is a really useful script from syncing imap mail boxes.  I used it when migrating from Zimbra to Google Mail.  I wanted to install imapsync from source on my Ubuntu server but found the instructions a little ridiculous.  The start of the instructions are:

Go into the directory imapsync-x.xx and read the INSTALL file.
You’re already reading the INSTALL file.

Here is what I did it:

1) Download the source from github and extract it.

2) Install a few dependences:

aptitude install libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libio-socket-ssl-perl libdigest-hmac-perl makepasswd

3) In the source folder run:

make -n install

make install

You should then have a working imapsync.  To test it try:

imapsync -version

6 thoughts to “How to install imapsync on Ubuntu 12.04”

  1. I was getting errors with the make -n install

    I had to create a folder:
    mkdir dist

    I also installed these other packages:
    rcs perl-doc libio-socket-ssl-perl libnet-ssleay-perl libssl-dev.

    The final thing that solved the error message was:
    cpan
    cpan> install File::Copy::Recursive

    Not exactly sure if I really needed all of those other packages. The cpan command solved the error I was getting.

  2. instead of make install, the clean way is to use “checkinstall”, because it keeps track of the installation via the official packaging system and you can remove it at any time.
    if it is not installed, “sudo apt-get install checkinstall”
    then type “check install”
    you will be asked to confirm that the package details are correct. In that form you should change the “version number” and put a numerical value, of the source you downloaded. In my case that was 1.584

Leave a Reply to Johan Hedberg Cancel reply