[Dovecot] [Help] quota_rule with LDAP backend, dovecot-1.1.1

Timo Sirainen tss at iki.fi
Sun Jul 20 17:28:35 EEST 2008


On Fri, 2008-07-04 at 11:03 +0800, Zhang Huangbin wrote:
> ----8<----
> mailQuota: 10   # <- 10M
> ----8<----

It's still "10" there.

> My dovecot-ldap.conf:
> 
> ----8<----
> user_attrs = 
> homeDirectory=home,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$
> ----8<----

Here you tell Dovecot to use "quota_rule=*:bytes=10", i.e. 10 bytes.

> And my dovecot.conf:
> 
> ----8<----
> plugin {
>     quota = maildir
> 
>     # Quota rules.
>     quota_rule = *:storage=10M
> }

The quota_rule here is completely ignored, because it's overridden by
the value from LDAP.

So what you want to do is:

homeDirectory=home,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080720/85438e85/attachment-0001.bin 


More information about the dovecot mailing list