If you have lots of data, you can make an initial pass with rsync whilst the old server is running and another rsync pass (with --delete, use dry run to test) when you've shut down the old server to sync the changes since the initial pass.

Good luck!
Reio


On 04/09/2018 11:40, James Brown wrote:
Thanks Sam

Users not using new mail server yet. 

Both old and new using maildir. 

Sounds like rsync is the way to go. 

Thanks for your help. 

James. 

Sent from my iPhone XI

On 4 Sep 2018, at 5:41 pm, Sami Ketola <sami.ketola@dovecot.fi> wrote:



On 4 Sep 2018, at 10.20, James Brown <jlbrown@bordo.com.au> wrote:

I’d like to migrate to a new server. I only need to transfer the mail store, have already done the users. I’ve seen different recommendations:

IMAP-Sync
Rsync
Doveadmin backup and
dsync

What are the pros and cons of each? What would be best for me? I’m thinking that Doveadmin backup is the way to go.

Both old and new servers are on same network. New server is running Dovecot 2.3.2.1, old server is 2.2.32. macOS X.

Does anyone have any advice or examples?

It depends. Are your users already receiving mails to the new server? If yes, then the only way is to use "doveadm sync -1" or data will be lost. Even then data may be lost as UID numbers might already be used in the new server.
If your users are not receiving mails to the new server it still depends. Is the mail storage format same in both servers? If yes, then it's probably fastest to use rsync. If not, then you need to use doveadm backup.

imapsync always loses data.

Sami




--
Tervitades
Reio Remma


MR
        Stuudio 25 aastat

MR Stuudio OÜ
Tondi 17b, 11316, Tallinn
Tel +372 650 4808
Mob +372 56 22 00 33
reio@mrstuudio.ee
www.mrstuudio.ee