[Dovecot] Deliver Root Setuid

Ladislav Durchánek durchanek at gmail.com
Sun Dec 3 19:16:29 UTC 2006


On 12/3/06, Timo Sirainen <tss at iki.fi> wrote:
> On Sun, 2006-12-03 at 18:52 +0100, Ladislav Durchánek wrote:
> > On 12/3/06, Timo Sirainen <tss at iki.fi> wrote:
> > > On Sun, 2006-12-03 at 19:27 +0200, Timo Sirainen wrote:
> > > > > My main reason for separate uids was filesystem quotas for whole
> > > > > domain. But my mail partition resides on XFS so I can do the same with
> > > > > directory quotas and I also noticed changes in quotas which should be
> > > > > also per domain in some next release or with patch.
> > > >
> > > > I guess you could also use virtual quota (eg. maildir++ quota).
> > >
> > > Should have thought a bit more before replying. :)
> > >
> > > If you want domain quotas then.. well, Maildir++ quota won't work right
> > > now.
> > >
> > > You could use dictionary quotas (== keep the quota in MySQL), but it has
> > > one problem: It doesn't support recalculating quota yet, so making it
> > > work for existing users could be problematic. Hmm. Maybe I should
> > > finally implement that, so that it would actually be usable..
>
> Implemented it. But it doesn't actually help with domain quotas, since
> users can't access each others mails to count the domain quota..

You rock :-)

>
> > You mean something like:
> >   #   quota = dict:user::/etc/dovecot-user-quota.conf
> >   #   quota2 = dict:domain:%d:/etc/dovecot-domain-quota.conf
> > what can be found in the wiki (but not in the main sources)?
>
> Yea. Actually that won't really work, but this would:
>
> plugin {
>  # "domain" is the quota root name. Could be anything.
>  # %d means that the quota "key" is %d, ie. domain. Default is %u.
>  # proxy::domain_quota is the dictionary URI
>  quota = dict:domain:%d:proxy::quota_domain
> }
>
> dict {
>  quota_domain = mysql:/usr/local/etc/dovecot-quota-domain.conf
> }
>
> Anyway you'll need to apply
> http://dovecot.org/patches/quota-rewrite.diff if you plan on doing any
> of this.
>

When is this supposed to get to the main tree, in some 1.1beta? I am
not in hurry - just asking :-)


More information about the dovecot mailing list