We need to migrate a bunch of large mailboxes from Courier-IMAP, preserving UUIDs for IMAP and POP clients, too. IMAPSYNC is not an option, we NEED to preserve IDs. Our plan is the following:
- rsync all messages from source server (encoding is UTF8 in folder names)
- set owner and group id to 5000:5000 (according to Dovecot)
- run courier-dovecot-migrate.pl to convert between them
- doveadm quota recalc -A && doveadm index -A ‘*’
The problem: the source filesystem (Maildir) folder names are encoded in UTF-8. Is it safe to change the mailcow.conf parameter from “MAILDIR_SUB=Maildir” to “MAILDIR_SUB=Maildir:UTF-8”? Will Dovecot use it correctly? Will SoGo open this folders? Is it safe according to the future (updates, etc).