Synopsis
On CentOS 7 you might get these warnings:
# imapsync --dry --host1 x.y.z.a --user1 [email protected] --password1 'xxxxxx' --nosslcheck --host2 b.c.d.f --user2 [email protected] --password2 'yyyyyy' --tls2 --noemailreport1 --noemailreport2 Unknown option: nosslcheck Unknown option: noemailreport1 Unknown option: noemailreport2
On legacy deprecated CentOS 7 WHM installations that used YUM to install IMAPSYNC you’ve probably got version v1.727. Sequence:
imapsync --version 1.727 which imapsync /usr/bin/imapsync
The solution is to upgrade your IMAPSYNC to the latest version. As of this writing the latest version is v2.231 and the procedure it perfectly outline here. But to make things easier for our cPanel environment, I have copied the instructions verbatim.
Instructions for upgrading (from here):
======================================================================= Centos 7 and latest imapsync ======================================================================= At the time of this writing (March 2020), the epel7 repository still contains imapsync release 1.727, which is not the latest available imapsync release. (1.727 date is 2016/08/19 while 2.174 is 2021/12/14) In order to install the latest imapsync I suggest the following process: Install the epel imapsync 1.727 release via yum like mentioned above. It will install many needed packages, Perl itself and Perl modules for release 1.727. The latest imapsync needs more Perl modules. Then: yum install perl-App-cpanminus \ perl-Dist-CheckConflicts \ perl-HTML-Parser \ perl-libwww-perl \ perl-Module-Implementation \ perl-Module-ScanDeps \ perl-Package-Stash \ perl-Package-Stash-XS \ perl-PAR-Packer \ perl-Regexp-Common \ perl-Sys-MemInfo \ perl-Test-Fatal \ perl-Test-Mock-Guard \ perl-Test-Requires \ perl-Test-Deep \ perl-File-Tail \ perl-Unicode-String \ perl-Test-NoWarnings \ perl-Test-Simple \ perl-Test-Warn \ perl-Sub-Uplevel \ perl-Proc-ProcessTable \ ca-certificates Also, run the following commands: cpanm Encode::IMAPUTF7 wget -N https://imapsync.lamiral.info/imapsync chmod +x imapsync Now you should have the latest imapsync in your current directory. Test it with: ./imapsync --testslive If you want to install it on your system and replace the old one: mv /usr/bin/imapsync /usr/bin/imapsync_old cp ./imapsync /usr/bin/imapsync imapsync --version should give the latest release number instead of 1.727 (It is imapsync release 2.231 at the time of this writing) If you want to install an online imapsync service like /X then you also need a recent decent CGI.pm, add it with cpanm: cpanm CGI
See Also
https://kb.vander.host/email/how-to-install-and-use-imapsync-on-ubuntu/