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 =
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 =
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
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:
- Are users able to login and access their mailboxes on production1 with an IMAP client?
On your old server (production1):
ps aux | grep dovecot
netstat -lntp
ls -la /etc/dovecot
On your new server (production2):
- 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.
- Are users able to login and access their mailboxes on production1 with an IMAP client?
Ans: Yes.
[root@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@production1 ~]#
[root@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
[root@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
[root@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@production2 ~]#
[vmail@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@production2 ~]#
Thanks & Regards, Kishore Potnuru
On Mon, Aug 3, 2020 at 7:52 PM Markus Winkler ml@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:
- Are users able to login and access their mailboxes on production1 with an IMAP client?
On your old server (production1):
ps aux | grep dovecot
netstat -lntp
ls -la /etc/dovecot
On your new server (production2):
- telnet production1.testorg.com 143
Thanks and regards Markus
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@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@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@gmail.com
Hi Kishore,
On 04.08.20 09:50, Kishore Potnuru wrote:
So, both password files (master and regular user credentials) have the same contents in this scenario, correct?
first of all: thanks for collecting the information.
As Joseph wrote: I too think that in your config of 'production1' a passdb with the credentials of regular users is missing.
On one of my servers I'm using this:
passdb { driver = passwd-file master = yes args = /etc/dovecot/master-users #pass = yes }
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/users }
Something similar should work in your case.
Regards, Markus
Thank you for the reply.
In old server (production1), I have changed like this for passdb. rest all i kept the same.
passdb { args = /etc/dovecot/master-users driver = passwd-file master = yes #pass = yes }
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd }
Now I am getting the below Authentication error from production2. Seems I have made some mistake.
[root@production2 dovecot]# doveadm backup -a All -R -u kishore@test.testorg.com imapc: dsync(kishore@test.testorg.com): Info: imapc(production1.testorg.com:143): Connected to 161.2.11.119:143 (local xxx.xxx.xxx.xxx:39200) dsync(kishore@test.testorg.com): Error: imapc(production1.testorg.com:143): Authentication failed: [AUTHENTICATIONFAILED] Authentication failed. dsync(kishore@test.testorg.com): Error: User initialization failed: imapc: Login to production1.testorg.com failed: Authentication failed: [AUTHENTICATIONFAILED] Authentication failed.
In production1, I see this error:
Aug 04 16:42:43 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<vmail>, method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx
The content on the password file:
[root@production1 log]# cat /etc/dovecot/passwd karan@test.testorg.com:{PLAIN}Password123 kishore@test.testorg.com:{PLAIN}Password123
[root@production1 log]# cat /etc/dovecot/master-users karan@test.testorg.com:{PLAIN}Password123 kishore@test.testorg.com:{PLAIN}Password123
I have copied the same content of the "passwd" file to "master-users" file. Actually, it should be having same content? if different, what will be the data and which format?
Please advise me, what am I making mistakes? As told you before, the dovecot versions are production1(2.0.9) and production2(2.2.36 (1f10bfa63))
On Tue, Aug 4, 2020 at 11:21 AM Markus Winkler ml@irmawi.de wrote:
Hi Kishore,
On 04.08.20 09:50, Kishore Potnuru wrote:
So, both password files (master and regular user credentials) have the same contents in this scenario, correct?
first of all: thanks for collecting the information.
As Joseph wrote: I too think that in your config of 'production1' a passdb with the credentials of regular users is missing.
On one of my servers I'm using this:
passdb { driver = passwd-file master = yes args = /etc/dovecot/master-users #pass = yes }
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/users }
Something similar should work in your case.
Regards, Markus
Hi Kishore,
On 04.08.20 17:48, Kishore Potnuru wrote:
passdb { args = /etc/dovecot/master-users driver = passwd-file master = yes #pass = yes -----------^^^^^^^^^^^ IMHO not important for this case , but in your environment it could be better to enable 'pass = yes'
passdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd }
Now I am getting the below Authentication error from production2.
According to your password file, could you please try to change it this way:
passdb { driver = passwd-file args = scheme=PLAIN username_format=%u /etc/dovecot/passwd }
AFAIK the default scheme is CRYPT, so I think it's necessary to change it with this parameter.
I have copied the same content of the "passwd" file to "master-users" file. Actually, it should be having same content? if different, what will be the data and which format?
imapc_password = vmail imapc_master_user = vmail
To be honest: I'm not sure.
If you want to use a master user then the credentials for imapc_master_user/imapc_password have to be in /etc/dovecot/master-users of 'production1'.
But AFAIK the migration should also work without using a master user (as long as you have the credentials of all the users of the old server). I hope I'm not wrong. It's been a while since I've done such a migration from an old server and cannot remember the details.
HTH and regards, Markus
On Tue, 4 Aug 2020, Kishore Potnuru wrote:
So, both password files (master and regular user credentials) have the same contents in this scenario, correct?
No.
Master users are administrative users you allow to authenticate as another account without having to know their password. If the master account is "master", and the user account is "xyz", then an administrator can access xyz's mail by authenticating as
username: xyz*master
password: password for master
This would allow, for example, to migrate all users via the IMAPC mechanism without having to know all their passwords.
By making both master and passdb's the same, you allow anyone to access anybody else's account e.g. "xyz" can access account for "abc" by using their password with user "abc*xyz".
Joseph Tam jtam.home@gmail.com
participants (3)
-
Joseph Tam
-
Kishore Potnuru
-
Markus Winkler