I have:
mail_location = maildir:/srv/vmail/%d/%n
However in reality, Dovecot stores mails in: /srv/vmail/%d/%n/mail
I need to migrate a mailboxes that ends with "Maildir" instead of "mail". How can I change the last part of this URI from "mail" to "Maildir" so I can migrate mailboxes without actually changing names of those directories?
Oh, thanks for your comment Kondybas, it helped me to figure this out. I forgot, that mailboxes locations were aliased by postfix from MySQL database, managed by ViMbAdmin. It seems that ViMbAdmin sets those locations based on default value of "defaults.mailbox.maildir" variable in its config file, and doesn't have an option that would allow to change it later from UI, so I just changed this default value and edited existing records in database. Now everything is sorted out :) .