dsync connection issue
I'm trying to move from my exising server to a new site. In preparation for this I've set up the new server as per the first attachment.
I've added additional (temporary) setting to the new site as per these instructions
https://wiki2.dovecot.org/Migration/Dsync
but when I try to do a backup with the following command from the old to the new site
sudo doveadm -D -o imapc_user=user1@oldserver -o imapc_password=pw-oldserver backup -R -u user1@newserver imapc:
I get
Error: User initialization failed: imapc: Login to 'oldserver' failed: Disconnected from server
I can connect to both sites without any issues
openssl s_client -crlf -connect newserver:993
openssl s_client -crlf -connect oldserver:993
Not sure what I'm missing.
Have also included the config for the old site
Thanks,
Leo
On 27 December 2018 at 19:13 Subscription leo1subscr@zudiewiener.com wrote:
I'm trying to move from my exising server to a new site. In preparation for this I've set up the new server as per the first attachment.
I've added additional (temporary) setting to the new site as per these instructions
https://wiki2.dovecot.org/Migration/Dsync
but when I try to do a backup with the following command from the old to the new site
sudo doveadm -D -o imapc_user=user1@oldserver -o imapc_password=pw-oldserver backup -R -u user1@newserver imapc:
I get
Error: User initialization failed: imapc: Login to 'oldserver' failed: Disconnected from server
I can connect to both sites without any issues
openssl s_client -crlf -connect newserver:993
openssl s_client -crlf -connect oldserver:993
Not sure what I'm missing.
Have also included the config for the old site
Thanks,
Leo
Did you check logs on the old server?
Aki
The logs on the old server are as follows
Dec 28 19:05:29 imap-login: Info: Disconnected (no auth attempts in 30 secs): user=<>, rip=207.180.228.225, lip=103.4.235.252, TLS handshaking: SSL_accept() syscall failed: Success Dec 28 19:05:29 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:05:29 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:05:29 auth: Debug: auth client connected (pid=5531) Dec 28 19:05:29 imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:05:29 imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:05:29 imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization [207.180.228.225] Dec 28 19:05:59 imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization [207.180.228.225] Dec 28 19:05:59 imap-login: Debug: SSL error: SSL_accept() syscall failed: Success Dec 28 19:05:59 imap-login: Info: Disconnected (no auth attempts in 30 secs): user=<>, rip=207.180.228.225, lip=103.4.235.252, TLS handshaking: SSL_accept() syscall failed: Success Dec 28 19:08:00 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:08:00 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:08:00 imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:08:00 imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:08:00 imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization [207.180.228.225] Dec 28 19:08:00 auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth Dec 28 19:08:00 auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/lib20_auth_var_expand_crypt.so Dec 28 19:08:00 auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat Dec 28 19:08:00 auth: Debug: passwd-file /etc/dovecot/passwd: Read 10 users in 0 secs Dec 28 19:08:00 auth: Debug: passwd-file /etc/dovecot/users: Read 10 users in 0 secs Dec 28 19:08:00 auth: Debug: auth client connected (pid=5625) Dec 28 19:08:30 imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization [207.180.228.225] Dec 28 19:08:30 imap-login: Debug: SSL error: SSL_accept() syscall failed: Success Dec 28 19:08:30 imap-login: Info: Disconnected (no auth attempts in 30 secs): user=<>, rip=207.180.228.225, lip=103.4.235.252, TLS handshaking: SSL_accept() syscall failed: Success Dec 28 19:08:30 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:08:30 imap-login: Debug: SSL: elliptic curve secp384r1 will be used for ECDH and ECDHE key exchanges Dec 28 19:08:30 auth: Debug: auth client connected (pid=5644) Dec 28 19:08:30 imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:08:30 imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization [207.180.228.225] Dec 28 19:08:30 imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization [207.180.228.225]
On 27/12/18 6:28 pm, Aki Tuomi wrote:
On 27 December 2018 at 19:13 Subscription leo1subscr@zudiewiener.com wrote:
I'm trying to move from my exising server to a new site. In preparation for this I've set up the new server as per the first attachment.
I've added additional (temporary) setting to the new site as per these instructions
https://wiki2.dovecot.org/Migration/Dsync
but when I try to do a backup with the following command from the old to the new site
sudo doveadm -D -o imapc_user=user1@oldserver -o imapc_password=pw-oldserver backup -R -u user1@newserver imapc:
I get
Error: User initialization failed: imapc: Login to 'oldserver' failed: Disconnected from server
I can connect to both sites without any issues
openssl s_client -crlf -connect newserver:993
openssl s_client -crlf -connect oldserver:993
Not sure what I'm missing.
Have also included the config for the old site
Thanks,
Leo
Did you check logs on the old server?
Aki
On 27 Dec 2018, at 19.13, Subscription leo1subscr@zudiewiener.com wrote:
but when I try to do a backup with the following command from the old to the new site
sudo doveadm -D -o imapc_user=user1@oldserver -o imapc_password=pw-oldserver backup -R -u user1@newserver imapc:
Since both of your servers are running dovecot it would be probably better to use native doveadm protocol (over ssh pipe if required) to do the migration instead of using imapc.
something like:
doveadm backup -u user1@newserver -R ssh oldserver sudo /usr/bin/doveadm dsync-server -u user1@oldserver
allowing sudo and ssh login with keys.
Sami
Thanks for you suggestion, but I couldn't quite get it to work.
I ended up rsyncing the mail folders (there were only a few email accounts) a temporary folder on the new server and then used dsync to restore the mailfolders.
Thanks again for your help
Leo
On 28/12/18 10:07 am, Sami Ketola wrote:
On 27 Dec 2018, at 19.13, Subscription leo1subscr@zudiewiener.com wrote:
but when I try to do a backup with the following command from the old to the new site
sudo doveadm -D -o imapc_user=user1@oldserver -o imapc_password=pw-oldserver backup -R -u user1@newserver imapc:
Since both of your servers are running dovecot it would be probably better to use native doveadm protocol (over ssh pipe if required) to do the migration instead of using imapc.
something like:
doveadm backup -u user1@newserver -R ssh oldserver sudo /usr/bin/doveadm dsync-server -u user1@oldserver
allowing sudo and ssh login with keys.
Sami
participants (4)
-
Aki Tuomi
-
Sami Ketola
-
Subscription
-
subscription1