[Dovecot] Per user mail quota via LDAP

Proskurin Kirill k.proskurin at fxclub.org
Mon Oct 20 19:27:37 EEST 2008


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


More information about the dovecot mailing list