Here is imapsync 2.229 on host ns4.telme.net.br, a netbsd system with 8.0/31.9 free GiB of RAM, 0.00% used by processes. with Perl 5.38.2 and Mail::IMAPClient 3.43 Transfer started at sexta-feira 28 março 2025-03-28 22:45:03 -0300 -03 PID is 2816 my PPID is 20057 Log file is LOG_imapsync/2025_03_28_22_45_03_065_adm@bientizeli.com.br_adm@bientizeli.com.br.txt ( to change it, use --logfile path ; or use --nolog to turn off logging ) Load is unknown on 1 cores Current directory is /home/marlon Real user id is marlon (uid 1094) Effective user id is marlon (euid 1094) $RCSfile: imapsync,v $ $Revision: 2.229 $ $Date: 2022/09/14 18:08:24 $ Command line used, run by /usr/pkg/bin/perl: /usr/pkg/bin/imapsync --host1 imap-vip.uni5.net --user1 adm@bientizeli.com.br --password1 MASKED --host2 localhost --user2 adm@bientizeli.com.br --password2 MASKED --ssl1 --ssl2 --automap --syncinternaldates --subfolder2 --useuid --noexpunge Temp directory is /tmp ( to change it use --tmpdir dirpath ) kill -QUIT 2816 # special behavior: call to sub catch_exit kill -TERM 2816 # special behavior: call to sub catch_exit kill -INT 2816 # special behavior: call to sub catch_reconnect kill -HUP 2816 # special behavior: call to sub catch_print kill -USR1 2816 # special behavior: call to sub toggle_sleep File /tmp/imapsync.pid does not exist PID file is /tmp/imapsync.pid ( to change it, use --pidfile filepath ; to avoid it use --pidfile "" ) Writing my PID 2816 in /tmp/imapsync.pid Writing also my logfile name in /tmp/imapsync.pid : LOG_imapsync/2025_03_28_22_45_03_065_adm@bientizeli.com.br_adm@bientizeli.com.br.txt Modules version list ( use --no-modulesversion to turn off printing this Perl modules list ): Authen::NTLM Not installed CGI Not installed Compress::Zlib 2.204 Crypt::OpenSSL::RSA 0.33 Data::Uniqid Not installed Digest::HMAC_MD5 1.04 Digest::HMAC_SHA1 1.04 Digest::MD5 2.58_01 Encode 3.19 Encode::IMAPUTF7 1.05 File::Copy::Recursive 0.45 File::Spec 3.88 Getopt::Long 2.54 HTML::Entities 3.82 IO::Socket 1.52 IO::Socket::INET 1.52 IO::Socket::INET6 2.73 IO::Socket::IP 0.4101 IO::Socket::SSL 2.085 IO::Tee 0.65 JSON 4.10 JSON::WebToken Not installed LWP 6.77 MIME::Base64 3.16_01 Mail::IMAPClient 3.43 Net::Ping 2.76 Net::SSLeay 1.94 Term::ReadKey 2.38 Test::MockObject Not installed Time::HiRes 1.9775 URI::Escape 5.27 Unicode::String 2.10 Info: will resync flags for already transferred messages. Use --noresyncflags to not resync flags. SSL debug mode level is --debugssl 1 (can be set from 0 meaning no debug to 4 meaning max debug) Host1: SSL default mode is like --sslargs1 "SSL_verify_mode=0", meaning for host1 SSL_VERIFY_NONE, ie, do not check the server certificate. Host1: Use --sslargs1 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the server certificate. of host1 Host2: SSL default mode is like --sslargs2 "SSL_verify_mode=0", meaning for host2 SSL_VERIFY_NONE, ie, do not check the server certificate. Host2: Use --sslargs2 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the server certificate. of host2 Info: turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1. Host1: will try to use LOGIN authentication on host1 Host2: will try to use LOGIN authentication on host2 Host1: imap connection timeout is 120 seconds Host2: imap connection timeout is 120 seconds Host1: imap connection keepalive is on on host1. Use --nokeepalive1 to disable it. Host2: imap connection keepalive is on on host2. Use --nokeepalive2 to disable it. Host1: IMAP server [imap-vip.uni5.net] port [993] user [adm@bientizeli.com.br] Host2: IMAP server [localhost] port [993] user [adm@bientizeli.com.br] Host1: connecting and login on host1 [imap-vip.uni5.net] port [993] with user [adm@bientizeli.com.br] Host1 IP address: 191.6.220.6 Local IP address: 181.233.83.58 Host1 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Host1 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH Host1: imap-vip.uni5.net says it has CAPABILITY for AUTHENTICATE LOGIN Host1 info: authmech [LOGIN] user [adm@bientizeli.com.br] authuser [] IsUnconnected [] Host1 failure: Error login on [imap-vip.uni5.net] with user [adm@bientizeli.com.br] auth [LOGIN]: 2 NO [AUTHENTICATIONFAILED] Authentication failed. Host1: failed login on [imap-vip.uni5.net] with user [adm@bientizeli.com.br] auth [LOGIN] Host2: connecting and login on host2 [localhost] port [993] with user [adm@bientizeli.com.br] Host2 IP address: 127.0.0.1 Local IP address: 127.0.0.1 Host2 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Host2 capability before authentication: IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN AUTH Host2: localhost says it has CAPABILITY for AUTHENTICATE LOGIN Host2: success login on [localhost] with user [adm@bientizeli.com.br] auth [LOGIN] or [LOGIN] ++++ Listing 1 errors encountered during the sync ( avoid this listing with --noerrorsdump ). Err 1/1: Host1 failure: Error login on [imap-vip.uni5.net] with user [adm@bientizeli.com.br] auth [LOGIN]: 2 NO [AUTHENTICATIONFAILED] Authentication failed. The most frequent error is ERR_AUTHENTICATION_FAILURE_USER1. Check the credentials for adm@bientizeli.com.br. Exiting with return value 161 (EXIT_AUTHENTICATION_FAILURE_USER1) 1/50 nb_errors/max_errors PID 2816 Removing pidfile /tmp/imapsync.pid Disconnecting from host2 localhost user2 adm@bientizeli.com.br Log file is LOG_imapsync/2025_03_28_22_45_03_065_adm@bientizeli.com.br_adm@bientizeli.com.br.txt ( to change it, use --logfile filepath ; or use --nolog to turn off logging )