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?

  • It's seems to me that MTA stores the messages, not dovecot. When dovecot do, there is no "mail" suffix if location ends with %d/%n – Kondybas Sep 26 '14 at 6:39
  • what is the value of home_mailbox ? best is to post postconf -nf postconf -Mf and dovecot -n after the question. – Max Muster Sep 26 '14 at 10:50

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 :) .

| improve this answer | |
  • 1
    But why do you want an extra part in the path? Isn't it meaningless? – Kondybas Sep 26 '14 at 7:30
  • It probably is, but I'm migrating a mailbox structure that has this extra part, and I think wasting time for changing this structure would be even more meaningless if I can change just postfix setting :) . – Łukasz Zaroda Sep 26 '14 at 8:05
  • It's way better to move LDA functionality to the dovecot. You'll get many features like sieve filtering, quotas and autoresponder. LDA from postfix is rudimentary and should be used in the simplest cases only. – Kondybas Sep 26 '14 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.