[Dovecot] Quotas from LDAP

Sven Hartge sven at svenhartge.de
Wed Feb 23 01:27:44 EET 2011


Timo Sirainen <tss at iki.fi> wrote:
> On 23.2.2011, at 0.38, Sven Hartge wrote:

>>>> and what does %$ mean?
>> 
>>> It's the value of quotaBytes LDAP attribute. So the idea is that you
>>> have:
>> 
>>> ldap-attribute-name=dovecot-setting-name=dovecot-setting-value
>> 
>> So, %$ ist always the value of the referenced attribute?  What if
>> there are multiple values, by accident or by design?

> Won't work right now.

Will it cause the mail to be bounced or just deferred? Or just ignored
and the first/last/random multi-value used? (I would try this for
myself, but I have no test-VM right now to do so.)

>>> In some future version hopefully I'll make this simpler.

> I was planning on something like:

> user_attrs {
>  home = %{homeDirectory}
>  quota_rule = *:bytes=%{quotaBytes}
> }

> And of course you would be able to mix and match the
> %{whatever-ldap-value} attributes.

Would be very nice.  I could do the following then:

user_attrs {
  home = %{homeDirectory}
  quota_rule = *:bytes=%{quotaBytes}:messages=%{quotaMessages}
  quota_rule2 = %{quotaRule2}
}

Without sounding to "pushy": Do you have a timeline for this?

Grüße,
Sven.

-- 
Sig lost. Core dumped.



More information about the dovecot mailing list