Imapsync software is a command line tool that allows incremental and recursive IMAP transfers from one mailbox to another, both anywhere on the internet or on your local network. IMAPsync is used to synchronize mail boxes between two servers using IMAP protocol. This is very useful when it comes to manual email migration from one server to another, especially when there aren’t any control panels involved.IMAPsync runs on Linux, Windows, and MAC OS, Let us look at how the IMAPsync install on a CentOS server can be done.
Installing prerequisites
perl -MCPAN -e “install Test::Inter”
perl -MCPAN -e “install Parse::RecDescent”
perl -MCPAN -e “install Getopt::Long”
perl -MCPAN -e “CPAN::Shell->force(qw(install Date::Manip));”
perl -MCPAN -e “CPAN::Shell->force(qw(install Mail::IMAPClient));”
perl -MCPAN -e “CPAN::Shell->force(qw(install Term::ReadKey));”
Installing Authen::NTLM
wget http://search.cpan.org/CPAN/authors/id/N/NB/NBEBOUT/NTLM-1.09.tar.gz
tar -xzvf NTLM-1.09.tar.gz
cd NTLM-1.09
perl Makefile.PL
make
make test
make install
Installing Mail::IMAPClient
tar -xzvf Mail-IMAPClient-2.2.9.tar.gz
cd Mail-IMAPClient-2.2.9
perl Makefile.PL
make
make test
make install
wget http://packages.sw.be/imapsync/imapsync-1.350-1.el5.rf.noarch.rpm rpm -i --nodeps imapsync-1.350-1.el5.rf.noarch.rpm
imapsync --host1 xx.xx.xx.xx [Source Host Name] --user1 user@sourcedomain.com [User Name on Source Server] --password1 xxxxx [Password on Source Server] --host2 xx.xx.xx.xx [Destination Host Name] --user2 user@destidomain.com [User Name on Destination Serer] --password2 xxxx [password on Destination Server]