In short: Does anyone know of a step-by-step guide to migrate maildir data from one dovecot to another?
In long: I try to migrate my mail server to a new machine.
- Old server
- postfix/dovecot
- Step-by-Step Guide: https://www.debinux.de/2015/05/mailserver-from-scratch-debian-8/
- New Server
- postfix/dovecot but in docker
- Step-by-Step Guide: https://github.com/tomav/docker-mailserver
I first tried to simply tar & rsync my single maildir directory but all subfolders were grayed out in thunderbird.
So I thought I do it again with doveadm sync but now I simply find no clear path how to do it with the dovecot manual, google or serverfault.
Is there really no easy step-by-step guide to do this available yet? Or is it just too easy and I don't get it? The manual does not contain enough explanation for a mailserver noob like me.
doveadm
sync/backupI started with
doveadm backup -u [email protected] ...
. It tells me:doveadm(root): Error: User doesn't exist
But
doveadm user *@domain.tld
returns exactly this user. Now I stumbled upon the point below, so I don't try to understand this problem for now.doveadm import
As I already have the data tar & rsynced to my new machine I tried this next.
I started the docker container without ports open so dovecot is running but none can connect to postfix or dovecot.
I attached to the console of the container and tried
doveadm
import. Got permission denied issues. Tried with permissions set to 777.doveadm
import finished without telling me about any problems but the dir of the user is still empty (just the standard folders no mails)
imapsync
for this, it's not free but by far the best tool available for this job.