Dear Community,
Looking for help in troubleshooting Sync jobs in my new server where i am trying to get the old email from Yandex Server via IMAP imap.yandex.com port:993 and STARTTLS protocol. When i am doing sync i am getting this error in the logs:
Docker context detected with the file /.dockerenv
No log by default in Docker context. Use --log to trigger logging to the logfile.
Changing current directory to /var/tmp/uid_65534
Here is imapsync 2.178 on host bf75737814d7, a linux system with 3.7/7.8 free GiB of RAM
with Perl 5.32.1 and Mail::IMAPClient 3.42
Transfer started at Tuesday 28 March 2023-03-28 00:06:16 +0200 CEST
PID is 10468 my PPID is 10358
No log file because of option --nolog
Load is 0.04 0.22 0.23 3/783 on 4 cores
Current directory is /var/tmp/uid_65534
Real user id is nobody (uid 65534)
Effective user id is nobody (euid 65534)
$RCSfile: imapsync,v $ $Revision: 2.178 $ $Date: 2022/01/12 21:28:37 $
Command line used, run by /usr/bin/perl:
/usr/local/bin/imapsync --tmpdir /tmp --nofoldersizes --addheader --exclude (?i)spam|(?i)junk --subscribeall --tls1 --host1 imap.yandex.com --user1 support@imei.network --passfile1 /tmp/imapsync.BOGOpMo --port1 993 --host2 localhost --user2 admin@imei.network*srg8w5jj0o3k87as@mailcow.local --passfile2 /tmp/imapsync.V3KARZ9 --no-modulesversion --noreleasecheck
Temp directory is /tmp ( to change it use --tmpdir dirpath )
Under docker context so installing only signals to exit
kill -INT 10468 # special behavior: call to sub catch_exit
kill -QUIT 10468 # special behavior: call to sub catch_exit
kill -TERM 10468 # special behavior: call to sub catch_exit
No variable pid_filename
PID file is unset ( to set it, use --pidfile filepath ; to avoid it use --pidfile "" )
Info: will resync flags for already transferred messages. Use --noresyncflags to not resync flags.
Host2: probing ssl on port 993 ( use --nosslcheck to avoid this ssl probe )
Host2: sslcheck detected open ssl port 993 so turning ssl on (use --nossl2 --notls2 to turn off SSL and TLS wizardry)
SSL debug mode level is --debugssl 1 (can be set from 0 meaning no debug to 4 meaning max debug)
Host2: SSL default mode is like --sslargs2 "SSL_verify_mode=0", meaning for host2 SSL_VERIFY_NONE, ie, do not check the certificate server.
Host2: Use --sslargs2 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the certificate server 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.yandex.com] port [993] user [support@imei.network]
Host2: IMAP server [localhost] port [993] user [admin@imei.network*srg8w5jj0o3k87as@mailcow.local]
Host1: connecting and login on host1 [imap.yandex.com] port [993] with user [support@imei.network]
Host1 failure: can not open imap connection on host1 [imap.yandex.com] with user [support@imei.network]: timeout waiting 120s for data from server
Host2: connecting and login on host2 [localhost] port [993] with user [admin@imei.network*srg8w5jj0o3k87as@mailcow.local]
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
Host2 IP address: ::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 [admin@imei.network*srg8w5jj0o3k87as@mailcow.local] auth [LOGIN] or [LOGIN]
++++ Listing 1 errors encountered during the sync ( avoid this listing with --noerrorsdump ).
Err 1/1: Host1 failure: can not open imap connection on host1 [imap.yandex.com] with user [support@imei.network]: timeout waiting 120s for data from server
The most frequent error is ERR_CONNECTION_FAILURE_HOST1. Check that host1 imap.yandex.com on port 993 is the right IMAP server to be contacted for your mailbox.
Exiting with return value 101 (EXIT_CONNECTION_FAILURE_HOST1) 1/50 nb_errors/max_errors PID 10468
Disconnecting from host2 localhost user2 admin@imei.network*srg8w5jj0o3k87as@mailcow.local
No log file because of option --nolog
If anyone have met the same issue or problem can point where to look for fixing this issue, and solve this problem will be really appreciated,