20 Jul
2008
20 Jul
'08
5:28 p.m.
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