On 23 Sep 2019, at 8.20, Plutocrat via dovecot <dovecot@dovecot.org> wrote:

The command I used was
doveadm sync -u test@domain.com ssh -i id_rsa -o "StrictHostKeyChecking=no" admin@100.110.120.130

I tried a few options to tell it where to put the mail, but dovecot on the target server didn't seem to know where each account was located.


doveadm backup -u test@domain.com -R ssh sshuser@remote.com "sudo /usr/bin/doveadm dsync-server -u test@domain.com"

run this on the target system to which you are migrating to.

HTH

Sami