Moving hosts
I had to move to another vps service. So I tared all the data directories and also the scripts I used to run the docker.
Upon moving to the new host and setting up exactly everything, the docker failed to start. How can I recover the emails?
I regret using docker now, I should have just a full VM and I won't have this problem now.
Any error in log files?
Just install it like normal without your backups.
Once its up and running, cp the data from your backups from
/iredmail/data/mailboxes/<domain> to the same location on the new server
bash into the container and then chown -R vmail:vmail /var/vmail/vmail1/
and bam, all your emails are now readable