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 at production2 log]# doveadm backup -a All -R -u kishore at test.testorg.com imapc: dsync(kishore at test.testorg.com): Info: imapc(production1.testorg.com:143): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992) dsync(kishore at 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 at test.testorg.com): Info: imapc(production1.testorg.com:143): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014) dsync(kishore at test.testorg.com): Error: imapc(production1.testorg.com:143): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting dsync(kishore at test.testorg.com): Error: User initialization failed: imapc: Login to production1.testorg.com failed: Disconnected from server [root at 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200803/7216bfc4/attachment.html>
Hi Kishore, On 03.08.20 15:33, Kishore Potnuru wrote:> Please let me know if you need any other details.please provide the following outputs/answers: 1) Are users able to login and access their mailboxes on production1 with an IMAP client? On your old server (production1): 2) ps aux | grep dovecot 3) netstat -lntp 4) ls -la /etc/dovecot On your new server (production2): 5) telnet production1.testorg.com 143 Thanks and regards Markus
Hi Markus, Please find the details below and please let me know if you need any other information. 1) Are users able to login and access their mailboxes on production1 with an IMAP client? Ans: Yes. 2) [root at production1 ~]# ps -ef | grep dovecot dovecot 800 1 0 Jul07 ? 00:00:07 dovecot/anvil root 801 1 0 Jul07 ? 00:00:09 dovecot/log root 804 1 0 Jul07 ? 00:00:31 dovecot/config vmail 1310 1 0 Jul08 ? 00:00:00 dovecot/imap dovecot 1440 1 0 Jul09 ? 00:00:07 dovecot/anvil root 1441 1 0 Jul09 ? 00:00:08 dovecot/log vmail 1473 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 2095 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 2354 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 2584 1 0 Jul09 ? 00:00:00 dovecot/imap dovecot 3001 1 0 Jul08 ? 00:00:09 dovecot/anvil root 3002 1 0 Jul08 ? 00:00:11 dovecot/log vmail 4004 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 4535 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 4546 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 4649 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 4677 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 4913 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 5208 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 5353 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 5799 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 6280 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 6774 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 6975 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 7035 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 9108 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 9741 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 10022 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 10900 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 11522 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 11579 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 13190 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 13837 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 15689 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 16089 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 17919 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 18377 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 18404 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 20279 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 20639 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 20658 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 21397 1 0 Jul07 ? 00:00:00 dovecot/imap dovenull 21624 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21627 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21628 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21633 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21636 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21641 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21644 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21645 1 0 20:18 ? 00:00:00 dovecot/pop3-login dovenull 21789 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21873 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21875 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21878 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21880 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21882 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21884 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21888 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21889 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21891 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21893 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21896 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21897 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21904 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21907 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21920 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21921 1 0 20:19 ? 00:00:00 dovecot/pop3-login dovenull 21927 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21929 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21932 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21933 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21935 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21938 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21942 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21943 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21945 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21947 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21950 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21951 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21953 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21958 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21961 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21962 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21964 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21966 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21970 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21971 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21973 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21976 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21979 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 21980 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovecot 22008 1 0 20:20 ? 00:00:00 dovecot/anvil root 22009 1 0 20:20 ? 00:00:00 dovecot/log root 22011 1 0 20:20 ? 00:00:00 dovecot/config dovenull 22027 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22030 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22031 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22038 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22041 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22044 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22045 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22047 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22049 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22052 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22053 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22055 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22058 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22061 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22062 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22064 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22066 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22069 1 0 20:20 ? 00:00:00 dovecot/pop3-login dovenull 22070 1 0 20:20 ? 00:00:00 dovecot/pop3-login root 22118 21483 0 20:20 pts/0 00:00:00 grep dovecot dovecot 22302 1 0 Jul07 ? 00:00:00 dovecot/anvil root 22303 1 0 Jul07 ? 00:00:00 dovecot/log vmail 22372 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 22807 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 22877 1 0 Jul07 ? 00:00:09 dovecot/imap vmail 23064 1 0 Jul07 ? 00:00:09 dovecot/imap vmail 23537 1 0 Jul07 ? 00:00:09 dovecot/imap vmail 23538 1 0 Jul07 ? 00:00:09 dovecot/imap vmail 23823 1 0 Jul07 ? 00:00:08 dovecot/imap vmail 23991 1 0 Jul07 ? 00:00:08 dovecot/imap dovecot 24921 1 0 Jul07 ? 00:00:00 dovecot/anvil root 24922 1 0 Jul07 ? 00:00:00 dovecot/log vmail 25204 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 26624 1 0 Jul07 ? 00:00:00 dovecot/pop3 dovecot 26638 1 0 Jul28 ? 00:01:02 dovecot/anvil root 26639 1 0 Jul28 ? 00:01:39 dovecot/log root 26641 1 0 Jul28 ? 00:03:57 dovecot/config vmail 27994 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 28036 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 28439 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 28551 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 28581 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 29014 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 29709 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 31832 1 0 Jul07 ? 00:00:00 dovecot/imap vmail 31986 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 32423 1 0 Jul08 ? 00:00:00 dovecot/imap vmail 32483 1 0 Jul09 ? 00:00:00 dovecot/imap vmail 32662 1 0 Jul07 ? 00:00:00 dovecot/imap [root at production1 ~]# 3) [root at production1 ~]# netstat -lntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:44115 0.0.0.0:* LISTEN 1661/rpc.statd tcp 0 0 0.0.0.0:1556 0.0.0.0:* LISTEN 1736/pbx_exchange tcp 0 0 127.0.0.1:1557 0.0.0.0:* LISTEN 1736/pbx_exchange tcp 0 0 0.0.0.0:13782 0.0.0.0:* LISTEN 2147/bpcd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2105/sshd tcp 0 0 127.0.0.1:44438 0.0.0.0:* LISTEN 1736/pbx_exchange tcp 0 0 0.0.0.0:8089 0.0.0.0:* LISTEN 2363/splunkd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2260/master tcp 0 0 0.0.0.0:13724 0.0.0.0:* LISTEN 2143/vnetd tcp 0 0 0.0.0.0:42397 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 3499/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 3499/dovecot tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 3499/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 3499/dovecot tcp 0 0 0.0.0.0:35375 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1620/rpcbind tcp 0 0 :::1556 :::* LISTEN 1736/pbx_exchange tcp 0 0 :::33941 :::* LISTEN - tcp 0 0 :::22 :::* LISTEN 2105/sshd tcp 0 0 :::25 :::* LISTEN 2260/master tcp 0 0 :::60414 :::* LISTEN 1661/rpc.statd tcp 0 0 :::41186 :::* LISTEN - tcp 0 0 :::3181 :::* LISTEN 3162/PatrolAgent tcp 0 0 :::111 :::* LISTEN 1620/rpcbind 4) [root at production1 ~]# ls -la /etc/dovecot total 32 drwxr-xr-x 3 root root 4096 Jul 28 15:24 . drwxr-xr-x. 94 root root 12288 Aug 3 20:23 .. drwxr-xr-x 2 root root 4096 Jan 13 2020 conf.d -rw-r--r-- 1 root root 615 Jul 28 11:43 dovecot.conf -rw-r--r-- 1 root root 3455 Dec 30 2010 dovecot.conf.orig -rw-r--r-- 1 root root 75 Jan 20 2020 passwd 5) [root at production2 ~]# telnet production1.testorg.com 143 Trying xxx.xxx.xxx.xxx... Connected to production1.testorg.com. Escape character is '^]'. * OK Waiting for authentication process to respond.. * BYE Disconnected for inactivity. Connection closed by foreign host. [root at production2 ~]# [vmail at production2 ~]$ telnet production1.testorg.com 143 Trying xxx.xxx.xxx.xxx... Connected to production1.testorg.com. Escape character is '^]'. * OK Waiting for authentication process to respond.. * BYE Disconnected for inactivity. Connection closed by foreign host. [root at production2 ~]# Thanks & Regards, Kishore Potnuru On Mon, Aug 3, 2020 at 7:52 PM Markus Winkler <ml at irmawi.de> wrote:> Hi Kishore, > > On 03.08.20 15:33, Kishore Potnuru wrote: > > Please let me know if you need any other details. > > please provide the following outputs/answers: > > 1) Are users able to login and access their mailboxes on production1 with > an IMAP client? > > On your old server (production1): > > 2) ps aux | grep dovecot > > 3) netstat -lntp > > 4) ls -la /etc/dovecot > > On your new server (production2): > > 5) telnet production1.testorg.com 143 > > > Thanks and regards > Markus > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200803/8c278c04/attachment-0001.html>
On Mon, 3 Aug 2020, Kishore Potnuru wrote:> ==============> 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 > ==============> > ========================================> My old server dovecot.conf (production1): > ========================================> > passdb { > args = /etc/dovecot/passwd > driver = passwd-file > master = yes > pass = yes > }My interpretation of your error messages is you need 2 sets of credentials: regular users and master users. You've only supplied master passwords. You'll need # Contains master users credentials passdb { args = /etc/dovecot/master-passwd driver = passwd-file master = yes pass = yes } # Contains regular user credentials passdb { args = /etc/dovecot/passwd driver = passwd-file } Joseph Tam <jtam.home at gmail.com>
Thank you for the response. So, both password files (master and regular user credentials) have the same contents in this scenario, correct? -Kishore On Mon, Aug 3, 2020 at 11:42 PM Joseph Tam <jtam.home at gmail.com> wrote:> On Mon, 3 Aug 2020, Kishore Potnuru wrote: > > > ==============> > 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 > > ==============> > > > ========================================> > My old server dovecot.conf (production1): > > ========================================> > > > passdb { > > args = /etc/dovecot/passwd > > driver = passwd-file > > master = yes > > pass = yes > > } > > My interpretation of your error messages is you need 2 sets of credentials: > regular users and master users. You've only supplied master passwords. > You'll need > > # Contains master users credentials > passdb { > args = /etc/dovecot/master-passwd > driver = passwd-file > master = yes > pass = yes > } > > # Contains regular user credentials > passdb { > args = /etc/dovecot/passwd > driver = passwd-file > } > > Joseph Tam <jtam.home at gmail.com> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200804/3251028d/attachment.html>