To migrate across a mailbox or domain from one mailcow installation to another (or to import a mailbox from any IMAP server) follow these instructions:
> IMPORTANT: Read all of the steps at least once before trying to execute the process as even the slightest mess can cause irreversable damage. You may not be able to recover the emails from source or destination if anything is not set properly.
g. "Sync into subfolder on destination": Keep it blank for a 1:1 folder mapping or all your emails will be stored in a separate folder (default: "External") of your mailbox.
Step #4: Monitor! Check the logs of the sync job after a few minutes of their first run to make sure it executed correctly. If there were any errors, resolve them and wait for the job to be executed again.
Step #5: Once completed, log into the mailbox and check if all emails are imported correctly. If all goes well, all your mails shall end up in your new mailbox.
Step #6: If migrating a domain across mailcow installations, now is the time that you update the DNS records in order to reflect the changes. Easiest way to find correct DNS records is to visit the domains tab on mailcow admin page and click on the DNS button corresponding to your domain. Make relevant adjustments to your DNS records and all new emails shall arrive to your new new inbox now.