Hi!
I just started to evaluate possible email platforms to swap out our legacy hand-wired postfix+cyrus+saslauthd+alotofotherstuff. The dockerized Mailcow seems very promising! Exactly what I’ve searching for.
The first issue is to resolve the mailbox migration from cyrus to dovecot.
My first attempt contained the following steps:
- Fresh Mailcow install
- Created a mailbox, then stop all Mailcow containers,
- I used this tool to covert a sample mailbox on the old system with 10k+ emails:
- Spin up a temporary container, with the
mailcowdockerized_vmail-vol-1
attached - Swap the Maildir for the account with the converted stuff, fix permissions/ownerships
- Delete temp container, spin up Mailcow again
Surprisingly the emails showed up right for the first attempt in the webmail.
I noticed two things: the email order is strange. The default “Order received” option gives semi-random order. “Date” option is a bit better, it gives only 15 random emails on the top, then comes the most recent emails correctly.
The other thing is that on the admin panel, the mailbox still shows 0% use.
I would have the following questions to start:
- Is there a better way to migrate mailboxes from cyrus?
- What metadata may be lost during such conversion?
- Is there a way to re-index/recount the mailbox usage?
Thanks in advance!