Zhang Huangbin
2008-Jul-04 03:03 UTC
[Dovecot] [Help] quota_rule with LDAP backend, dovecot-1.1.1
Hi, all. I use dovecot-1.1.1 with OpenLDAP as userdb. but i failed to convert quota value as expect. I set '10' as mail quota, and it should be '10M' as expect, but it's not effect, dovecot always uses 'quota_rule' setting in dovecot.conf. How can i fix this issue? 10*1047576? I have 'mailQuota' attr in ldap schema, such as: ----8<---- mailQuota: 10 # <- 10M ----8<---- My dovecot-ldap.conf: ----8<---- user_attrs = homeDirectory=home,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$ ----8<---- And my dovecot.conf: ----8<---- plugin { quota = maildir # Quota rules. quota_rule = *:storage=10M } ----8<---- -- Best Regards. Zhang Huangbin - iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://iRedMail.googlecode.com/
Timo Sirainen
2008-Jul-20 14:28 UTC
[Dovecot] [Help] quota_rule with LDAP backend, dovecot-1.1.1
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: signature.asc 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-0002.bin>