I did what Aki said. Actually I moved it all to a new server and to docker containers. From Dovecot 2.2 to 2.3. And it worked fine. Of course one always forget something - the path for the certificates, the different directory for mounting storage, etc. 

But am surprise and happy that it worked very well. 

__
Francis Augusto Medeiros-Logeay
Oslo, Norway
Sent from a mobile device / Enviado a partir de dispositivo móvel

On 29 May 2020, at 19:33, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:


On 29/05/2020 20:12 Ralph Seichter <abbot@monksofcool.net> wrote:


* David Mehler:

I'd ideally like to back up all the mails in the maildir location,
copy that over, load in my configuration files, and bring the system
back up.

I don't think this qualifies as "ideal" for migration. My recommendation
is to set up the new server and configure Dovecot replication (see Wiki).

If you configured things correctly, migration will happen without
further intervention, and if there is a problem, you can resolve it in
your own time, without damaging the existing server and data.

-Ralph

If your directory structure *and* namespace structure stays the same, you can rsync files over.

If you are going to change anything, do as Ralph suggests.

Aki