<div dir="ltr">Hi All,<br><br>I have tried the below command to migrate the data from the old server(dovecot version: 2.0.9) to new servers(dovecot version: 2.2.36 (1f10bfa63)). But it's throwing an error.<br><br>old server name: production1<br>new server1 name: production2 (for HA/Replication)<br>new server2 name: production3
(for HA/Replication)
<br><br>I have configured replication between production2 and production3, which is working fine. <br><br>The issue is, the below command I am trying is from production2 server and trying to take the data from production1 server.<br><br>-------------<br>[root@production2 log]# doveadm backup -a All -R -u <a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a> imapc:<br>dsync(<a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a>): Info: imapc(<a href="http://production1.testorg.com:143">production1.testorg.com:143</a>): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)<br>dsync(<a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a>): Warning: imapc(<a href="http://production1.testorg.com:143">production1.testorg.com:143</a>): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting (delay 0 ms)<br>dsync(<a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a>): Info: imapc(<a href="http://production1.testorg.com:143">production1.testorg.com:143</a>): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)<br>dsync(<a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a>): Error: imapc(<a href="http://production1.testorg.com:143">production1.testorg.com:143</a>): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting<br>dsync(<a href="mailto:kishore@test.testorg.com">kishore@test.testorg.com</a>): Error: User initialization failed: imapc: Login to <a href="http://production1.testorg.com">production1.testorg.com</a> failed: Disconnected from server<br>[root@production2 log]#<br>--------------<br><br>I looked into the production1 (old server) logs. I see the below error.<br><br>===============<br>Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are no passdbs<br>Jul 28 11:14:23 master: Error: service(auth): command startup failed, throttling<br>===============<br><br>after the above error, I have commented "pass=yes" in production1 (old server) server, then I see the below error.<br><br>================<br>Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file. PLAIN mechanism needs one<br>Jul 28 11:17:10 master: Error: service(auth): command startup failed, throttling<br>===============<br><br>Please suggest me on fixing the issue. <br><br>Adding the dovecot.conf configuration from old and new servers:<br><br>=========================================<br>My old server dovecot.conf (production1):<br>=========================================<br><br>disable_plaintext_auth = no<br><br>listen = *<br>log_path = /var/log/dovecot.log<br>mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/<br>passdb {<br> args = /etc/dovecot/passwd<br> driver = passwd-file<br> master = yes<br> pass = yes<br> }<br>pop3_uidl_format = %g<br>protocols = pop3 imap<br>ssl = yes<br>ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>ssl_key = </etc/pki/dovecot/private/dovecot.pem<br><br>userdb {<br> args = uid=vmail gid=vmail home=/z1dev/mail/virtual/%d/%n<br> driver = static<br> }<br>mail_debug = no<br>verbose_ssl = no<br><br>=========================================<br>My New server dovecot.conf(production2):<br>=========================================<br><br>disable_plaintext_auth = no<br><br>listen = *<br>log_path = /var/log/dovecot.log<br><br>mail_location = maildir:/z1devenv/mail/virtual/%d/%n/Maildir/<br><br>passdb {<br> args = /etc/dovecot/passwd<br> driver = passwd-file<br> }<br><br>pop3_uidl_format = %g<br>protocols = pop3 imap<br><br>ssl = yes<br>ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>ssl_key = </etc/pki/dovecot/private/dovecot.pem<br><br>userdb {<br> args = uid=vmail gid=vmail home=/z1devenv/mail/virtual/%d/%n<br> driver = static<br> }<br><br>mail_debug = yes<br>verbose_ssl = no<br><br><br># Enable the replication plugin globally<br>mail_plugins = $mail_plugins notify replication<br><br>service replicator {<br> process_min_avail = 1<br>}<br><br>dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u<br>plugin {<br> mail_replica = <a href="mailto:remote%3Avmail@production3.testorg.com">remote:vmail@production3.testorg.com</a><br>}<br><br>service aggregator {<br> fifo_listener replication-notify-fifo {<br> user = vmail<br> }<br> unix_listener replication-notify {<br> user = vmail<br> }<br>}<br><br>service replicator {<br> unix_listener replicator-doveadm {<br> mode = 0600<br> user = vmail<br> }<br>}<br><br>replication_max_conns = 10<br><br>imapc_host = <a href="http://production1.testorg.com">production1.testorg.com</a><br>imapc_password = vmail<br>imapc_master_user = vmail<br>imapc_user = %u<br><br>===================================<br><div><br></div><div>Please let me know if you need any other details.</div><div><br></div><div>Thanks,</div><div>Kishore Potnuru</div></div>