I cannot sync my mail accounts anymore, imapsync reports the following error: SSL_verify_mode must be a number and not a string at /usr/lib64/perl5/vendor_perl/5.20.2/IO/Socket/SSL.pm line 2166. I have tried different versions of dev-perl/Net-SSLeay (1.650.0-r1 and 1.720.0). But these give me the same results. It is unclear for me when the problems started. It seems there is a fix available as well, see https://github.com/imapsync/imapsync/issues/43 Reproducible: Always Steps to Reproduce: 1. Start imapsync and use a SSL enabled IMAP server 2. 3. Actual Results: imapsync reports an error: "SSL_verify_mode must be a number and not a string at /usr/lib64/perl5/vendor_perl/5.20.2/IO/Socket/SSL.pm line 2166" Expected Results: imap accounts are being synced
Same problem, see the log: Log file is LOG_imapsync/2016_04_07_18_05_45_informatico@promopublic.es.txt ( to change it, use --logfile filepath ; or use --nolog to turn off logging ) $RCSfile: imapsync,v $ $Revision: 1.644 $ $Date: 2015/07/17 01:22:52 $ Here is a [linux] system (Linux centauri 3.14.14-gentoo #9 SMP Sat Apr 4 10:55:04 CEST 2015 x86_64) With perl 5.20.2 Mail::IMAPClient 3.37 Command line used: /usr/bin/imapsync --host1 imap.gmail.com --user1 xxxxxxxxxxxxxxxxxxxx --password1 MASKED --host2 localhost --user2 xxxxxxxxxxxxxxxxxxxx --password2 MASKED --syncinternaldates --split1 100 --split2 100 --allowsizemismatch --useheader Message-ID --ssl1 --ssl2 --authmech1 LOGIN Temp directory is /tmp ( to change it use --tmpdir dirpath ) PID file is /tmp/imapsync.pid ( to change it use --pidfile filepath ; to avoid it use --pidfile "" ) /tmp/imapsync.pid already exists, overwriting it ( use --pidfilelocking to avoid concurrent runs ) Modules version list: Mail::IMAPClient 3.37 IO::Socket 1.38 IO::Socket::IP 0.36 IO::Socket::INET 1.35 IO::Socket::SSL 2.024 Net::SSLeay 1.65 Compress::Zlib 2.064 Digest::MD5 2.53 Digest::HMAC_MD5 1.01 Digest::HMAC_SHA1 1.03 Term::ReadKey 2.30.02 File::Spec 3.48_01 Time::HiRes 1.9726 Unicode::String 2.09 IO::Tee 0.64 File::Copy::Recursive 0.38 Authen::NTLM ? URI::Escape 3.31 Data::Uniqid ? JSON::WebToken ? ( use --no-modules_version to turn off printing this Perl modules list ) Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. Info: will try to use LOGIN authentication on host1 Info: will try to use LOGIN authentication on host2 Info: imap connexions timeout is 120 seconds Host1: IMAP server [imap.gmail.com] port [993] user [xxxxxxxxxxxxxxxxxx] Host2: IMAP server [localhost] port [993] user [xxxxxxxxxxxxxxxxxxxxxx] SSL_verify_mode must be a number and not a string at /usr/lib64/perl5/vendor_perl/5.20.2/IO/Socket/SSL.pm line 2166. after upgrade to 1.678 solve this problem
We can work around this by editing / patching /usr/bin/imapsync. On lines 2328 and 2337, change 'SSL_VERIFY_PEER' to 1 and 'SSL_VERIFY_NONE' to 0. (constants looked up from /usr/include/openssl/ssl.h .
Update imapsync to newer version see bugs 574482 and 588736
Should be fixed by 1.684 now in the tree.