Thanks for you suggestion, but I couldn't quite get it to work.

I ended up rsyncing the mail folders (there were only a few email accounts) a temporary folder on the new server and then used dsync to restore the mailfolders.

Thanks again for your help

Leo


On 28/12/18 10:07 am, Sami Ketola wrote:

On 27 Dec 2018, at 19.13, Subscription <leo1sub...@zudiewiener.com> wrote:

but when I try to do a backup with the following command from the old to the 
new site

sudo doveadm -D -o imapc_user=user1@oldserver  -o imapc_password=pw-oldserver 
backup -R -u user1@newserver imapc:


Since both of your servers are running dovecot it would be probably better to 
use native doveadm protocol (over ssh pipe if required) to do the migration 
instead of using imapc.

something like:

doveadm backup -u user1@newserver -R ssh oldserver sudo /usr/bin/doveadm 
dsync-server -u user1@oldserver

allowing sudo and ssh login with keys.

Sami

Reply via email to