[dovecot] Re: mailbox problem

Maikel Verheijen maikel at ladot.com
Wed Mar 26 10:54:39 EET 2003


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

I do use 1 UID and 1 GID for everyone. Would that be more simple?

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

Maybe there could be a "toggle" to do or don't create the dirs, so you don't
need the mail_global_dir setting for "normal" use.

My idea was to check the full path to the mailbox, and to create the
nonexisting part if necessary. At that point you DO have the full path to
the mailbox/maildir, and you can create it, right?


Kind regards,

Maikel Verheijen. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030326/e8650cad/attachment-0001.html>


More information about the dovecot mailing list