Migrate Email with mbsync
Migrating mail between IMAP servers using mbsync
My university recently announced a switch from Zimbra to Microsoft Exchange server. The thought didn’t sit well with me, so I decided to migrate the mails to my own mail server instead. A generalised account of what I used to achieve this, can be found below.
…

Just wanted to boost this blog post as it greatly helped me migrate emails from Luke Smith’s emailwiz script to Modoboa (more on that in a future post).
In package managers, mbsync is often installed through isync.
Here are some things mbsync complained about:
UseIMAPS
is deprecated, I simply left it out and it worked ok.
For accounts with subfolders (Archives, Archives/2020 etc.) I used:
MaildirStore me-local
Path ~/Mail/me
Inbox ~/Mail/me/INBOX
+SubFolders Verbatim