[dovecot] Re: mailbox problem

Timo Sirainen tss at iki.fi
Wed Mar 26 10:21:49 EET 2003


On Tue, 2003-03-25 at 15:56, Maikel Verheijen wrote:
> I do have one questing regarding dovecot: If I login to a mailbox, and
> the mailbox does NOT exist, and the parent directory does not exist
> either, I will get disconnected, and dovecot claims it cannot create
> the directory. (eg: my user blah at test.com has mail directory
> /var/mail/t/te/test.com/blah/Maildir, and all directories up to
> /var/mail/t/te/ exist, dovecot does not create the directory test.com/
> and on.)
> 
> Is this by design, or should this be created by dovecot?

Hmm. Unless you're using one UID for everyone, those directories would
have be to be created as root. Also test.com should be created with
different owner as blah and blah/Maildir. Maybe I could add a new
setting for this, but I'm not sure how to do it without making it too
kludgy. There would have to be separation of where user directory
structure starts, and uid/gid settings what to use for created
directories before them. Something like:

mail_global_dir = /var/mail/t/te/%d
mail_global_uid = root
mail_global_gid = mail
mail_user_dir = /var/mail/t/te/%d/%n

Would be better if the mail_user_dir didn't have to be set at all since
it's already in mail_default_env, but the user directory has to be
created while still root, and parsing mail_default_env there is kludgy
too. Or maybe:

mail_global_dir = /var/mail/t/te/%d/%n

And the last directory would always be assumed to be user directory.
That would prevent creating /var/mail-like shared directories though,
but I guess there's no need to create those..




More information about the dovecot mailing list