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.
I started with
doveadm backup -u email@example.com .... It tells me:
doveadm(root): Error: User doesn't exist
doveadm user *@domain.tldreturns exactly this user. Now I stumbled upon the point below, so I don't try to understand this problem for now.
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
doveadmimport. Got permission denied issues. Tried with permissions set to 777.
doveadmimport finished without telling me about any problems but the dir of the user is still empty (just the standard folders no mails)