I switched from courier to dovecot over the weekend so that I could get the impersonate plugin for Roundcube working, among other things. Everything went smoothly using Till's script. The only question I have is really cosmetic I guess. With courier, the special folders like Junk, Trash and sent were under the main list of folders. Now they are underneath Inbox as a parent. This is not a huge deal, but I may want to go into users mailboxes and delete the duplicate old folders to avoid confusion. Users don't generally like change. Is this a function of dovecot configuration somewhere? I have a small enough number of users that I can just go into each mailbox and clean them up.
After a little further investigation, it is only existing mailboxes which were modified using the script at http://www.howtoforge.com/forums/showpost.php?p=281080&postcount=3 that exhibit this behavior. So for existing boxes, in the maildir /var/vmail/domain.com/user/Maildir/ it has created Code: .INBOX.Drafts .INBOX.Junk .INBOX.Sent .INBOX.Trash If I create a new mail user, it only does Code: .Drafts .Junk .Sent .Trash How can I modify all the existing mailboxes structures so they resemble a new mailbox?Without deleting and recreating the accounts.