Good morning,
I would like to synchronize my email.domain in mailcow. My former provider is df.de. I have created a sync job for this unfortunately the import of the old mails does not work. Is it because it is the same domain?
I get the error message Cannot connect to the target server.
My log
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 21d13be5f0e4, a linux system with 3.8/7.8 free GiB of RAM
with Perl 5.32.1 and Mail::IMAPClient 3.42
Transfer started at Saturday 10 December 2022-12-10 06:10:46 +0100 CET
PID is 20138 my PPID is 20114
No log file because of option --nolog
Load is 0.18 0.13 0.07 1/882 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 --subfolder2 external --delete2duplicates --subscribeall --automap --ssl1 --host1 imap.imsocial.de --user1 name@imsocial.de --passfile1 /tmp/imapsync.bONdjOn --port1 143 --host2 localhost --user2 name@domain.de*3wzkxumcv2n8z7sb@mailcow.local --passfile2 /tmp/imapsync.wbaCQkF --no-modulesversion --noreleasecheck
Temp directory is /tmp ( to change it use --tmpdir dirpath )
Under docker context so installing only signals to exit
kill -INT 20138 # special behavior: call to sub catch_exit
kill -QUIT 20138 # special behavior: call to sub catch_exit
kill -TERM 20138 # 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)
Host1: SSL default mode is like --sslargs1 "SSL_verify_mode=0", meaning for host1 SSL_VERIFY_NONE, ie, do not check the certificate server.
Host1: Use --sslargs1 SSL_verify_mode=1 to have SSL_VERIFY_PEER, ie, check the certificate server of host1
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: will act as --uidexpunge2
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.name.de] port [143] user [name@domain.de]
Host2: IMAP server [localhost] port [993] user [name@domain.de*3wzkxumcv2n8z7sb@mailcow.local]
Host1: connecting and login on host1 [imap.name.de] port [143] with user [name@domain.de]
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:900: local error: SSL connect attempt failed error:1408F10B:SSL routines:ssl3_get_record:wrong version number
DEBUG: .../IO/Socket/SSL.pm:903: fatal SSL error: SSL connect attempt failed error:1408F10B:SSL routines:ssl3_get_record:wrong version number
DEBUG: ...base/IO/Socket.pm:47: ignoring less severe local error 'IO::Socket::IP configuration failed', keep 'SSL connect attempt failed error:1408F10B:SSL routines:ssl3_get_record:wrong version number'
Host1 failure: can not open imap connection on host1 [imap.name.de] with user [name@domain.de]: Unable to connect to imap.name.de: SSL connect attempt failed error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Host2: connecting and login on host2 [localhost] port [993] with user [name@domain.de*3wzkxumcv2n8z7sb@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 [name@domain.de*3wzkxumcv2n8z7sb@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.domain.de] with user [name@domain.de]: Unable to connect to imap.name.de: SSL connect attempt failed error:1408F10B:SSL routines:ssl3_get_record:wrong version number
The most frequent error is ERR_CONNECTION_FAILURE_HOST1. Check that host1 imap.name.de on port 143 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 20138
Disconnecting from host2 localhost user2 name@domain.de*3wzkxumcv2n8z7sb@mailcow.local
No log file because of option --nolog