Hi All,

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.

old server name: production1
new server1 name: production2 (for HA/Replication)
new server2 name: production3  (for HA/Replication)

I have configured replication between production2 and production3, which is working fine.  

The issue is, the below command I am trying is from production2 server and trying to take the data from production1 server.

-------------
[root@production2 log]# doveadm backup -a All -R -u kishore@test.testorg.com imapc:
dsync(kishore@test.testorg.com): Info: imapc(production1.testorg.com:143): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)
dsync(kishore@test.testorg.com): Warning: imapc(production1.testorg.com:143): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - reconnecting (delay 0 ms)
dsync(kishore@test.testorg.com): Info: imapc(production1.testorg.com:143): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)
dsync(kishore@test.testorg.com): Error: imapc(production1.testorg.com:143): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting
dsync(kishore@test.testorg.com): Error: User initialization failed: imapc: Login to production1.testorg.com failed: Disconnected from server
[root@production2 log]#
--------------

I looked into the production1 (old server) logs. I see the below error.

===============
Jul 28 11:14:23 auth: Fatal: Master passdb can't have pass=yes if there are no passdbs
Jul 28 11:14:23 master: Error: service(auth): command startup failed, throttling
===============

after the above error, I have commented "pass=yes" in production1 (old server) server, then I see the below error.

================
Jul 28 11:17:10 auth: Fatal: No passdbs specified in configuration file. PLAIN mechanism needs one
Jul 28 11:17:10 master: Error: service(auth): command startup failed, throttling
===============

Please suggest me on fixing the issue.  

Adding the dovecot.conf configuration from old and new servers:

=========================================
My old server dovecot.conf (production1):
=========================================

disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log
mail_location = maildir:/z1dev/mail/virtual/%d/%n/Maildir/
passdb {
        args = /etc/dovecot/passwd
        driver = passwd-file
        master = yes
        pass = yes
        }
pop3_uidl_format = %g
protocols = pop3 imap
ssl = yes
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem

userdb {
        args = uid=vmail gid=vmail home=/z1dev/mail/virtual/%d/%n
        driver = static
        }
mail_debug = no
verbose_ssl = no

=========================================
My New server dovecot.conf(production2):
=========================================

disable_plaintext_auth = no

listen = *
log_path = /var/log/dovecot.log

mail_location = maildir:/z1devenv/mail/virtual/%d/%n/Maildir/

passdb {
        args = /etc/dovecot/passwd
        driver = passwd-file
        }

pop3_uidl_format = %g
protocols = pop3 imap

ssl = yes
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem

userdb {
        args = uid=vmail gid=vmail home=/z1devenv/mail/virtual/%d/%n
        driver = static
        }

mail_debug = yes
verbose_ssl = no


# Enable the replication plugin globally
mail_plugins = $mail_plugins notify replication

service replicator {
  process_min_avail = 1
}

dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
plugin {
  mail_replica = remote:vmail@production3.testorg.com
}

service aggregator {
  fifo_listener replication-notify-fifo {
    user = vmail
  }
  unix_listener replication-notify {
    user = vmail
  }
}

service replicator {
  unix_listener replicator-doveadm {
    mode = 0600
    user = vmail
  }
}

replication_max_conns = 10

imapc_host = production1.testorg.com
imapc_password = vmail
imapc_master_user = vmail
imapc_user = %u

===================================

Please let me know if you need any other details.

Thanks,
Kishore Potnuru