Hello all. Ok im now trying to make per user quota via LDAP. In LDAP im have attr: mailQuotaSize=210 Default dovecot quota=201M I edit my static db to this(from wiki): userdb static { args = uid=1002 gid=1002 home=/var/spool/dovecot/domains/%d/%n mailQuotaSize=quota_rule=*:storage=%$M } But in logs I see this: Info: auth(default): master out: USER 5 sysadmin at domain.off uid=1002 gid=1002 home=/var/spool/dovecot/domains/domain.off/sysadmin mailQuotaSize=quota_rule=*:storage=M And personal quota not work. What I do wrong? -- Best regards, Proskurin Kirill
On Mon, 2008-10-20 at 19:42 +0400, Proskurin Kirill wrote:> Hello all. > > Ok im now trying to make per user quota via LDAP.OK.> In LDAP im have attr: mailQuotaSize=210 > > Default dovecot quota=201M > > I edit my static db to this(from wiki):You need to use userdb ldap then. -------------- 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/20081020/a14ed421/attachment-0002.bin>
Timo Sirainen wrote:>> I edit my static db to this(from wiki): > You need to use userdb ldap then.I actual use it and it work well. # LDAP database <doc/wiki/AuthDatabase.LDAP.txt> userdb ldap { args = /usr/local/etc/dovecot-ldap.conf } # grep -v # /usr/local/etc/dovecot-ldap.conf | egrep -v '^$' hosts = 127.0.0.1 dn = cn=root,dc=CAS dnpass = secret tls = no auth_bind = no ldap_version = 3 base = dc=CAS deref = never scope = subtree user_filter = (&(objectClass=mailUser)(mail=%u)) pass_attrs = userPassword=password pass_filter = (&(objectClass=mailUser)(mail=%u)) default_pass_scheme = CRYPT You mean what i must edit dovecot-ldap.conf user db? I try to add this in dovecot-ldap.conf: user_attrs = mailQuotaSize=quota_rule=*:storage=%$M But with with same result. -- Best regards, Proskurin Kirill