<div dir="ltr">Hi,<br><br>I have tried the same way as per your suggestion. But it's throwing an error.<br><br>-------------<br>[root@production2 log]# doveadm backup -a All -R -u <a href="mailto:kishore@test.ba.com">kishore@test.ba.com</a> imapc:<br>dsync(<a href="mailto:kishore@test.ba.com">kishore@test.ba.com</a>): Info: imapc(<a href="http://production1.baplc.com:143">production1.baplc.com:143</a>): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:45992)<br>dsync(<a href="mailto:kishore@test.ba.com">kishore@test.ba.com</a>): Warning: imapc(<a href="http://production1.baplc.com:143">production1.baplc.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.ba.com">kishore@test.ba.com</a>): Info: imapc(<a href="http://production1.baplc.com:143">production1.baplc.com:143</a>): Connected to xxx.xxx.xxx.xxx:143 (local yyy.yyy.yyy.yyy:46014)<br>dsync(<a href="mailto:kishore@test.ba.com">kishore@test.ba.com</a>): Error: imapc(<a href="http://production1.baplc.com:143">production1.baplc.com:143</a>): connect(xxx.xxx.xxx.xxx, 143) timed out after 30 seconds - disconnecting<br>dsync(<a href="mailto:kishore@test.ba.com">kishore@test.ba.com</a>): Error: User initialization failed: imapc: Login to <a href="http://production1.baplc.com">production1.baplc.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></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 28, 2020 at 6:57 AM Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com">aki.tuomi@open-xchange.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Kishore, you got the command wrong..<br>
<br>
`doveadm backup -R -u username-goes-here imapc:`<br>
<br>
for this to work, you need to configure following things:<br>
<br>
imapc_host = old-host-name<br>
imapc_password = master-password<br>
imapc_master_user = master-user-name<br>
<br>
and on the old host you need<br>
<br>
passdb {<br>
   args = /etc/dovecot/passwd.masterusers<br>
   driver = passwd-file<br>
   master = yes<br>
   pass = yes<br>
}<br>
<br>
This should let you pull the mails from the old host to your new host over IMAP. <br>
<br>
You should probably also look at<br>
<br>
<a href="https://wiki.dovecot.org/Migration/Dsync" rel="noreferrer" target="_blank">https://wiki.dovecot.org/Migration/Dsync</a><br>
<br>
Aki<br>
<br>
> On 28/07/2020 03:02 Antonio Leding <<a href="mailto:tech@leding.net" target="_blank">tech@leding.net</a>> wrote:<br>
> <br>
> <br>
> Hey Kishore…<br>
> <br>
> I believe this is the thread I mentioned earlier. It is quite long and spans a monthly barrier (Feb\Mar 2012) so if you use the “Next\Previous message” links, you need to be sure to pick up the thread in each monthly archive. I have provided links to the first post of the thread in each archive here:<br>
> <br>
> <a href="https://dovecot.org/list/dovecot/2012-February/133718.html" rel="noreferrer" target="_blank">https://dovecot.org/list/dovecot/2012-February/133718.html</a><br>
> <a href="https://dovecot.org/list/dovecot/2012-March/134110.html" rel="noreferrer" target="_blank">https://dovecot.org/list/dovecot/2012-March/134110.html</a><br>
> <br>
> Also, mention of a working syntax for the remote side command can be found in this post:<br>
> <br>
> <a href="https://dovecot.org/list/dovecot/2012-February/081425.html" rel="noreferrer" target="_blank">https://dovecot.org/list/dovecot/2012-February/081425.html</a><br>
> <br>
> I’m sure one of the Dovecot devs will chime in at some point but in the meantime, hopefully the above will offer some relief…<br>
> <br>
> <br>
> <br>
> <br>
> > On Jul 27, 2020, at 4:38 PM, Antonio Leding <<a href="mailto:tech@leding.net" target="_blank">tech@leding.net</a>> wrote:<br>
> > <br>
> > <br>
> > I seem to recall a post a while back where, due to the age of the remote end, the remote side command had to be entered in the command executed on the local side.<br>
> > <br>
> > Do you have dsync on the 2.0.9 machine?<br>
> > <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > > On Jul 27, 2020, at 4:16 PM, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br>
> > > <br>
> > > <br>
> > > This is what my understanding. May be I am also wrong here.<br>
> > > <br>
> > > Backup option is there in my new server, production2.<br>
> > > <br>
> > > When I use the command with -R option from new server, it is connecting to old server, Production1 and giving the output of the doveadm backup command in old server to get the data. If you see the command and error I posted, it shows the same.<br>
> > > <br>
> > > Sorry just incase if I am wrong.<br>
> > > <br>
> > > Kishore<br>
> > > <br>
> > > <br>
> > > On Mon, 27 Jul, 2020, 11:32 pm Antonio Leding, <<a href="mailto:tech@leding.net" target="_blank">tech@leding.net</a>> wrote:<br>
> > > > Well that option set still doesn’t look correct…<br>
> > > > <br>
> > > > Here is the doveadm option set from my 2.2.2 server which is several weeks\months before 2.2.36…<br>
> > > > <br>
> > > > <br>
> > > > <br>
> > > > [Jul-27 @ 15:25:09 ] > dovecot --version<br>
> > > > 2.2.2<br>
> > > > <br>
> > > > [Jul-27 @ 15:26:53 ] > ls -l /usr/local/bin/doveadm<br>
> > > > -rwxr-xr-x 1 root root 1379203 May 22 2013 /usr/local/bin/doveadm<br>
> > > > <br>
> > > > [Jul-27 @ 15:25:12 ] > doveadm<br>
> > > > usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]<br>
> > > > <br>
> > > > altmove [-u <user>|-A] [-S <socket_path>] [-r] <search query><br>
> > > > auth cache|test<br>
> > > > backup [-u <user>|-A] [-S <socket_path>] [-dfR] [-l <secs>] [-m <mailbox>] [-n <namespace>] [-s <state>] <dest><br>
> > > > batch [-u <user>|-A] [-S <socket_path>] <sep> <cmd1> [<sep> <cmd2> [..]]<br>
> > > > config [doveconf parameters]<br>
> > > > copy [-u <user>|-A] [-S <socket_path>] <destination> [user <source user>] <search query><br>
> > > > director add|dump|flush|map|move|remove|ring|ring|ring|status<br>
> > > > dump [-t <type>] <path><br>
> > > > exec <binary> [binary parameters]<br>
> > > > expunge [-u <user>|-A] [-S <socket_path>] [-d] <search query><br>
> > > > fetch [-u <user>|-A] [-S <socket_path>] <fields> <search query><br>
> > > > force-resync [-u <user>|-A] [-S <socket_path>] <mailbox mask><br>
> > > > fs copy|delete|get|iter|iter-dirs|put|stat<br>
> > > > help <cmd><br>
> > > > import [-u <user>|-A] [-S <socket_path>] [-s] <source mail location> <dest parent mailbox> <search query><br>
> > > > index [-u <user>|-A] [-S <socket_path>] [-q] [-n <max recent>] <mailbox mask><br>
> > > > instance list|remove<br>
> > > > kick [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits><br>
> > > > log errors|find|reopen|test<br>
> > > > mailbox create|delete|list|mutf7|rename|status|subscribe|unsubscribe<br>
> > > > mount add|list|remove<br>
> > > > move [-u <user>|-A] [-S <socket_path>] <destination> [user <source user>] <search query><br>
> > > > penalty [-a <anvil socket path>] [<ip/bits>]<br>
> > > > proxy kick|list<br>
> > > > purge [-u <user>|-A] [-S <socket_path>]<br>
> > > > pw [-l] [-p plaintext] [-r rounds] [-s scheme] [-t hash] [-u user] [-V]<br>
> > > > reload<br>
> > > > replicator remove|replicate|status<br>
> > > > search [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > sis deduplicate|find<br>
> > > > stats dump|top<br>
> > > > stop<br>
> > > > sync [-u <user>|-A] [-S <socket_path>] [-dfR] [-l <secs>] [-m <mailbox>] [-n <namespace>] [-s <state>] <dest><br>
> > > > user [-a <userdb socket path>] [-x <auth info>] [-f field] [-u] <user mask> [...]<br>
> > > > who [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]<br>
> > > > zlibconnect <host> [<port>]<br>
> > > > <br>
> > > > <br>
> > > > <br>
> > > > <br>
> > > > > On Jul 27, 2020, at 3:28 PM, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br>
> > > > > <br>
> > > > > <br>
> > > > > Oh, I am extremely sorry. I was confused when typing the issue. Please help me in fixing the issue. Production1 is my old server. Production2 is my new server. Typing here correctly. Ignore all previous one's.<br>
> > > > > <br>
> > > > > > The new version is:<br>
> > > > > > ====================<br>
> > > > > > [root@production2 ~]# dovecot --version<br>
> > > > > > 2.2.36 (1f10bfa63)<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > The old version is : <br>
> > > > > > ======================<br>
> > > > > > [root@production1 ~]# dovecot --version<br>
> > > > > > 2.0.9<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > I have executed the command from the new server:<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > =================================<br>
> > > > > > [root@production2 <a href="http://test.org.com" rel="noreferrer" target="_blank">test.org.com</a> (<a href="http://test.org.com/)%5D#" rel="noreferrer" target="_blank">http://test.org.com/)]#</a> doveadm backup -R -u <a href="mailto:kishore@test.org.com" target="_blank">kishore@test.org.com</a> <a href="mailto:remote%3Avmail@production1.baplc.com" target="_blank">remote:vmail@production1.baplc.com</a><br>
> > > > > > <a href="mailto:vmail@production1.baplc.com" target="_blank">vmail@production1.baplc.com</a>'s password:<br>
> > > > > > usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]<br>
> > > > > > <br>
> > > > > >  altmove [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > >  auth [-a <auth socket path>] [-x <auth info>] <user> [<password>]<br>
> > > > > >  config [doveconf parameters]<br>
> > > > > >  director add|flush|map|remove|status<br>
> > > > > >  dump [-t <type>] <path><br>
> > > > > >  expunge [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > >  fetch [-u <user>|-A] [-S <socket_path>] <fields> <search query><br>
> > > > > >  force-resync [-u <user>|-A] [-S <socket_path>] <mailbox><br>
> > > > > >  help <cmd><br>
> > > > > >  import [-u <user>|-A] [-S <socket_path>] <source mail location> <dest parent mailbox> <search query><br>
> > > > > >  kick [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits><br>
> > > > > >  log find|reopen|test<br>
> > > > > >  mailbox create|delete|list|mutf7|rename|status|subscribe|unsubscribe<br>
> > > > > >  penalty [-a <anvil socket path>] [<ip/bits>]<br>
> > > > > >  purge [-u <user>|-A] [-S <socket_path>]<br>
> > > > > >  pw [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]<br>
> > > > > >  reload<br>
> > > > > >  search [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > >  sis deduplicate|find<br>
> > > > > >  stop<br>
> > > > > >  user [-a <userdb socket path>] [-x <auth info>] <user mask> [...]<br>
> > > > > >  who [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]<br>
> > > > > > dsync-local(<a href="mailto:kishore@test.org.com" target="_blank">kishore@test.org.com</a>): Error: read(<a href="mailto:vmail@production1.baplc.com" target="_blank">vmail@production1.baplc.com</a>) failed: EOF (version not received)<br>
> > > > > > dsync-local(<a href="mailto:kishore@test.org.com" target="_blank">kishore@test.org.com</a>): Error: Remote command returned error 1: ssh -lvmail <a href="http://production1.baplc.com" rel="noreferrer" target="_blank">production1.baplc.com</a> (<a href="http://production1.baplc.com/" rel="noreferrer" target="_blank">http://production1.baplc.com/</a>) doveadm dsync-server -<a href="mailto:ukishore@test.org.com" target="_blank">ukishore@test.org.com</a><br>
> > > > > > <br>
> > > > > > [root@production2 <a href="http://test.org.com" rel="noreferrer" target="_blank">test.org.com</a> (<a href="http://test.org.com/)%5D#" rel="noreferrer" target="_blank">http://test.org.com/)]#</a><br>
> > > > > > <br>
> > > > > > =================================<br>
> > > > > <br>
> > > > > <br>
> > > > > <br>
> > > > > On Mon, 27 Jul, 2020, 11:18 pm Antonio Leding, <<a href="mailto:tech@leding.net" target="_blank">tech@leding.net</a>> wrote:<br>
> > > > > > Fair enough but the command snippet I posted was taken directly from your earlier post dated Mon Jul 27 23:11:06 EEST 2020 and it does say “production1”…I just double-checked as well...<br>
> > > > > > <br>
> > > > > > FWIW…the server order in the command you just pasted is the exact reverse from the Jul 27th post I mentioned above…<br>
> > > > > > <br>
> > > > > > Here you appear to be exec’ing the command on prod2 and trying to pull from the remote of prod 1…your earlier post was exec’ing on prod1 and pulling from the remote of prod2…<br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > > On Jul 27, 2020, at 3:10 PM, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > I am executing the command from the new server. I was executing the command from production2 server only. It has the backup option, but whereas production1 doesn't have it. Though I am executing from production2, I am seeing the below error. Is it becasue production1 server doesn't have that option? Please let me know, if it is confusing.<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > The new version is:<br>
> > > > > > > ====================<br>
> > > > > > > [root@production2 ~]# dovecot --version<br>
> > > > > > > 2.2.36 (1f10bfa63)<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > The old version is :<br>
> > > > > > > ======================<br>
> > > > > > > [root@production1 ~]# dovecot --version<br>
> > > > > > > 2.0.9<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > I have executed the command from the new server:<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > =================================<br>
> > > > > > > [<a href="mailto:root@production2test.org.com" target="_blank">root@production2test.org.com</a> (<a href="http://test.org.com/)%5D#" rel="noreferrer" target="_blank">http://test.org.com/)]#</a> doveadm backup -R -ukishore@test.org.comremote:<a href="mailto:vmail@production1.baplc.com" target="_blank">vmail@production1.baplc.com</a><br>
> > > > > > > <a href="mailto:vmail@production1.baplc.com" target="_blank">vmail@production1.baplc.com</a>'s password:<br>
> > > > > > > usage: doveadm [-Dv] [-f <formatter>] <command> [<args>]<br>
> > > > > > > <br>
> > > > > > >  altmove [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > > >  auth [-a <auth socket path>] [-x <auth info>] <user> [<password>]<br>
> > > > > > >  config [doveconf parameters]<br>
> > > > > > >  director add|flush|map|remove|status<br>
> > > > > > >  dump [-t <type>] <path><br>
> > > > > > >  expunge [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > > >  fetch [-u <user>|-A] [-S <socket_path>] <fields> <search query><br>
> > > > > > >  force-resync [-u <user>|-A] [-S <socket_path>] <mailbox><br>
> > > > > > >  help <cmd><br>
> > > > > > >  import [-u <user>|-A] [-S <socket_path>] <source mail location> <dest parent mailbox> <search query><br>
> > > > > > >  kick [-a <anvil socket path>] [-f] <user mask>[|]<ip/bits><br>
> > > > > > >  log find|reopen|test<br>
> > > > > > >  mailbox create|delete|list|mutf7|rename|status|subscribe|unsubscribe<br>
> > > > > > >  penalty [-a <anvil socket path>] [<ip/bits>]<br>
> > > > > > >  purge [-u <user>|-A] [-S <socket_path>]<br>
> > > > > > >  pw [-l] [-p plaintext] [-r rounds] [-s scheme] [-u user] [-V]<br>
> > > > > > >  reload<br>
> > > > > > >  search [-u <user>|-A] [-S <socket_path>] <search query><br>
> > > > > > >  sis deduplicate|find<br>
> > > > > > >  stop<br>
> > > > > > >  user [-a <userdb socket path>] [-x <auth info>] <user mask> [...]<br>
> > > > > > >  who [-a <anvil socket path>] [-1] [<user mask>] [<ip/bits>]<br>
> > > > > > > dsync-local(<a href="mailto:kishore@test.org.com" target="_blank">kishore@test.org.com</a>): Error: read(<a href="mailto:vmail@production1.baplc.com" target="_blank">vmail@production1.baplc.com</a>) failed: EOF (version not received)<br>
> > > > > > > dsync-local(<a href="mailto:kishore@test.org.com" target="_blank">kishore@test.org.com</a>): Error: Remote command returned error 1: ssh -<a href="http://lvmailproduction1.baplc.com" rel="noreferrer" target="_blank">lvmailproduction1.baplc.com</a> (<a href="http://production1.baplc.com/)doveadm" rel="noreferrer" target="_blank">http://production1.baplc.com/)doveadm</a> dsync-server -<a href="mailto:ukishore@test.org.com" target="_blank">ukishore@test.org.com</a><br>
> > > > > > > <br>
> > > > > > > [<a href="mailto:root@production2test.org.com" target="_blank">root@production2test.org.com</a> (<a href="http://test.org.com/)%5D#" rel="noreferrer" target="_blank">http://test.org.com/)]#</a><br>
> > > > > > > <br>
> > > > > > > =================================<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > On Mon, Jul 27, 2020 at 10:55 PM Antonio Leding <<a href="mailto:tech@leding.net" target="_blank">tech@leding.net</a>> wrote:<br>
> > > > > > > > Not sure if this matters but the prompt when attempting the “doveadm backup” command shows it to be a “production" server…<br>
> > > > > > > > <br>
> > > > > > > > [root at production1 (<a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer" target="_blank">https://dovecot.org/mailman/listinfo/dovecot</a>) <a href="http://test.org.com" rel="noreferrer" target="_blank">test.org.com</a> (<a href="http://test.org.com/)%5D#" rel="noreferrer" target="_blank">http://test.org.com/)]#</a> doveadm backup -R -u kishore at <a href="http://test.org.com" rel="noreferrer" target="_blank">test.org.com</a> (<a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer" target="_blank">https://dovecot.org/mailman/listinfo/dovecot</a>)<br>
> > > > > > > > remote:vmail at <a href="http://production2.baplc.com" rel="noreferrer" target="_blank">production2.baplc.com</a> (<a href="https://dovecot.org/mailman/listinfo/dovecot" rel="noreferrer" target="_blank">https://dovecot.org/mailman/listinfo/dovecot</a>)<br>
> > > > > > > > <br>
> > > > > > > > ...that would seem to me to indicate the old box. If so, then per Kishore’s earlier posts, the machine where this is being attempted is running 2.0.9…not 2.2.36<br>
> > > > > > > > <br>
> > > > > > > > Maybe nothing but thought I would mention it…<br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > <br>
> > > > > > > > > On Jul 27, 2020, at 2:50 PM, Sami Ketola <<a href="mailto:sami.ketola@dovecot.fi" target="_blank">sami.ketola@dovecot.fi</a>> wrote:<br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > > On 28. Jul 2020, at 0.10, Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br>
> > > > > > > > > > <br>
> > > > > > > > > > Yes. Please find the details of the servers below. I am executing the command from one of the new servers.<br>
> > > > > > > > > <br>
> > > > > > > > > I find it very hard to believe this. Shall I look at the version control when backup was added as option to doveadm?<br>
> > > > > > > > > <br>
> > > > > > > > > 2.2.36 has it:<br>
> > > > > > > > > <br>
> > > > > > > > > [root@ketola ~]# dovecot --version<br>
> > > > > > > > > 2.2.36.8 (0c9d56b41)<br>
> > > > > > > > > [root@ketola ~]# doveadm backup<br>
> > > > > > > > > doveadm backup [-u <user>|-A] [-S <socket_path>] [-fPRU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g <mailbox_guid>] [-n <namespace> | -N] [-x <exclude>] [-s <state>] [-t <start date>] -d|<dest><br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > Sami<br>
> > > > <br>
> > <br>
><br>
</blockquote></div>