i have had a major problem with my server - i needed to reinstall a new one. the old server had a running mailserver also using dovecot.
i really need to reimport my old emails to the new server using mailcow.
I never had to restore Mails + i am very new to docker. attached here is the general structure of the old Mailboxes.
What would be the way to restore the old mailboxes? (new username + pw is the same as the old one…)
Thank you so much for any help!!!
Hey, thank you for your reply, this is exactly what i did. i am happy that i got all the emails back, with just one Problem:
the time i received the mails does not show up correctly :/
Not too bad, but hey, i thought i share it.
pcace the time i received the mails does not show up correctly :/
It’s likely the ctime (creation time) or mtime (last modified time) of the files is incorrect. Try copy the files again with the -p or -a options (eg. cp -a /old/path/ var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data) which will preserve the timestamps attached to the files.
cp -a /old/path/ var/lib/docker/volumes/mailcowdockerized_vmail-vol-1/_data
thanks for your reply, but i now have a mixture of new and old mails - wich i dont want to seperate again…
so i will try your method the next time i have a major breakdown 😉
Cheers and thanks!