[dovecot] Re: mailbox problem

Timo Sirainen tss at iki.fi
Wed Mar 26 11:29:26 EET 2003


On Wed, 2003-03-26 at 10:54, Maikel Verheijen wrote:
> > 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.
> 
> I do use 1 UID and 1 GID for everyone. Would that be more simple?

For your case, yes..

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

The toggle would be just not to set mail_global_dir :)

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

Yes, but normally you also don't have permissions to create the
directories at that point. I'm not sure if I want to add extra code just
for one-uid-for-everyone case. But maybe this could be useful for other
cases too .. Such as one-uid-per-domain, or if Maildir isn't directly
under home dir. I guess I'll add code for this. If you want some
temporary kludges you could call the mkdir()s at end of 
src/lib-storage/index/maildir/maildir-storage.c:maildir_create()




More information about the dovecot mailing list