[Dovecot] Need subfolders - convert to Maildir & how?
I just installed Dovecot and it is working great.
But I need subfolders. Does this mean I need to convert to Maildir format? I found several tools to do the conversion, but is there anything that needs to be changed in Dovecot to make the switch?
Any advice appreciated.
Thank you, Michael Hipp Heber Springs, AR, USA
Hi Michael
On 21/12/04, Michael Hipp (Michael@Hipp.com) wrote:
I just installed Dovecot and it is working great.
But I need subfolders. Does this mean I need to convert to Maildir format? I found several tools to do the conversion, but is there anything that needs to be changed in Dovecot to make the switch?
Have you had a look at the conf file?
In the current Debian testing version of Dovecot you will see:
# Default MAIL environment to use when it's not set. By leaving this # empty # dovecot tries to do some automatic detection as described in # /usr/share/doc/dovecot-common/mail-storages.txt. There's a few special # variables you can use: # # %u - username # %n - user part in user@domain, same as %u if there's no domain # %d - domain part in user@domain, empty if user there's no domain # %h - home directory # # You can also limit a width of string by giving the number of max. # characters # after the '%' character. For example %1u gives the first character of # username. Some examples: # # default_mail_env = maildir:/var/mail/%1u/%u/Maildir # default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u # default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
Read "Detecting what to use" in the mail-storages document. Dovecot checks to see if Maildir format is used and then falls back on mbox storage.
Have you checked your MTA (exim/postfix...) is delivering into maildir format?
Rory
Rory Campbell-Lange
rory@campbell-lange.net
Rory Campbell-Lange wrote:
Read "Detecting what to use" in the mail-storages document. Dovecot checks to see if Maildir format is used and then falls back on mbox storage.
Have you checked your MTA (exim/postfix...) is delivering into maildir format?
Thank you. So Dovecot is good to go once I get the folders converted and get the MTA delivering to Maildir. I'll look at Postfix next.
Michael
Michael Hipp wrote:
Rory Campbell-Lange wrote:
Read "Detecting what to use" in the mail-storages document. Dovecot checks to see if Maildir format is used and then falls back on mbox storage.
Have you checked your MTA (exim/postfix...) is delivering into maildir format?
Thank you. So Dovecot is good to go once I get the folders converted and get the MTA delivering to Maildir. I'll look at Postfix next.
Michael,
I've been working on a script that takes a fresh CentOS install
(http://www.centos.org) and turns it into a secure email server using
postfix, dovecot, clamav and spam assassin, all using Maildir. The
script is still a bit raw, but it may help you to see what changes you'd
need to make to ensure that everything works well with Maildir. Note:
CentOS is a RHEL 3 rebuild distro.
The script can be found here:
http://www.benjamin.weiss.name/mail-server.sh
HTH,
Ben
Benjamin J. Weiss wrote:
I've been working on a script that takes a fresh CentOS install (http://www.centos.org) and turns it into a secure email server using postfix, dovecot, clamav and spam assassin, all using Maildir. The script is still a bit raw, but it may help you to see what changes you'd need to make to ensure that everything works well with Maildir. Note:
CentOS is a RHEL 3 rebuild distro.The script can be found here:
Thank you. I'm using Ubuntu (Debian) but most of my background is RH/FC. Should be a great help.
Michael
Michael Hipp wrote:
I just installed Dovecot and it is working great.
But I need subfolders. Does this mean I need to convert to Maildir format? I found several tools to do the conversion, but is there anything that needs to be changed in Dovecot to make the switch?
Technically, no, you do not need to change to Maildir. The limitation mbox places on folders is that they may only contain mailboxes and other folders, but NOT messages. Only mailboxes may contain messages.
That being said, I have seen far fewer bugs and struggles on this list from people using Maildir than mbox. :)
In my hunting I found various tools which claimed to be able to convert mbox to Maildir, but I was mostly trying to migrate people out of a Windows based "client saves all" setup... so in the end, it was, in fact, OE which was out greatest tool to migrating messages to IMAP/Maildir, and thus doing away with IE. (Thunderbird came a close second.)
A quick google on "mb2md" will likely turn up useful results.
Thank you, Michael Hipp
-- Curtis Maloney
On 22/12/04, Curtis Maloney (cmaloney@cardgate.net) wrote:
Michael Hipp wrote:
But I need subfolders. Does this mean I need to convert to Maildir format?
A quick google on "mb2md" will likely turn up useful results.
http://batleth.sapienti-sat.org/projects/mb2md/
--
Rory Campbell-Lange
rory@campbell-lange.net
participants (4)
-
Benjamin J. Weiss
-
Curtis Maloney
-
Michael Hipp
-
Rory Campbell-Lange