<div dir="ltr">Hi,<div><br></div><div>But there is no "doveadm backup" option in dovecot 2.0.9 version. </div><div><br></div><div>[root@production ~]# doveadm -backup<br>doveadm: invalid option -- 'b'<br></div><div>[root@production ~]# dovecot --version<br>2.0.9<br></div><div><br></div><div>Copy the contents by using "scp", will that work?</div><div><br></div><div>Thanks,</div><div>Kishore Potnuru</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 10:00 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"><br>
> On 27/07/2020 11:59 Kishore Potnuru <<a href="mailto:kishore.reachme@gmail.com" target="_blank">kishore.reachme@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Hi<br>
> <br>
> I am in the process/planning of moving from my existing dovecot imap/pop3 server to 2 new servers (for HA/Resilience). I will be implementing dovecot replication on new servers. Please find my current and new servers versions.<br>
> <br>
> My Current Production Server details:<br>
> ========================<br>
> Linux OS - Red Hat Enterprise Linux Server release 6.5 (Santiago)<br>
> Dovecot version - 2.0.9<br>
> Postfix version - 2.6.6<br>
> ========================<br>
> <br>
> New Servers:<br>
> ==========================<br>
> Linux OS - Red Hat Enterprise Linux Server release 7.7 (Maipo)<br>
> Dovecot version - 2.2.36 (1f10bfa63)<br>
> Postfix version - 2.10.1 <br>
> ==========================<br>
> <br>
> What is the best way to stop/copy/migrate the current production data to the new servers? I am planning the following steps. Not sure if it is correct or not.<br>
> <br>
> 1. Stop the Postfix services on the old server and wait for few mins. So that no new emails will be coming to the old servers. Existing emails will be delivered to the receipients.<br>
> <br>
> 2. copy/migrate the data from old server to new servers. Please suggest what is the best way?<br>
> <br>
> 3. I see that dovecot version(2.0.9) in old production server, I do not know the which is the best option? see the options in the current version.<br>
> <br>
> =================================<br>
> [root@prodcution ~]# doveadm<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>
> <br>
> =================================<br>
> <br>
> Please suggest me.<br>
> <br>
> Thanks,<br>
> Kishore Potnuru<br>
<br>
`doveadm backup -R -u someone imapc:` comes to mind, with master password/master user authentication.<br>
<br>
Aki<br>
</blockquote></div>