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
- 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/backup
I started with
doveadm backup -u email@example.com ... It tells medoveadm(root): Error: User doesn't exist
. Butdoveadm 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 no noone 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)