[Dovecot] index location
Dave Brenner
david at toledotel.com
Fri Jan 29 03:54:58 EET 2010
On 1/28/2010 12:59 PM, Timo Sirainen wrote:
> The idea is that you should make everything work with the default
> prefix="" namespace and mail_location=mbox:~/mail. So your subscriptions
> should have e.g. "Spam" without prefix. Your autocreate rules should
> have "Spam" without prefix. After all that works properly, you create
> the compatibility namespaces that are used only by the clients that have
> already explicitly configured them.
That did the trick. Now all my indexes are in
/var/dovecot/indexes/%u/.imap (no more mail subdirectory) and while
users can use ~/mail as their root path, they can't see it, or anything
above it, in their folder tree. Perfect!
The only unexpected thing I ran into is that the full client root path
is still required for the expire and quota plugins. So, if some clients
use a blank root, while others use ~/mail, ~someuser/mail or mail/, you
have to allow for all of them or you won't necessarily get a match
(expire timestamps are not added to db; quota "ignores" are not
processed). A few extra quota rules and expire folders took care of the
problem. I can live with this config. :-)
Thank you for the assistance.
Dave
More information about the dovecot
mailing list