[Dovecot] Per User Quotas

Peter Fraser petros.fraser at gmail.com
Fri Oct 16 00:15:45 EEST 2009


Ok thanks  I tried your config. Just edited to my my setup.
This is what I now have

dovecot.conf
-------------------------------------------------------------------------------
passdb ldap {
  args = /usr/local/etc/dovecot-ldap.conf
}

userdb ldap {
   args = /usr/local/etc/dovecot-ldap-userdb.conf
}

userdb static {
  args = uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes
}
---------------------------------------------------------------------------------------------------------------

dovecot-ldap.conf
---------------------------------------------------------------
hosts = 192.168.0.97 192.168.0.76
base = dc=atlas,dc=local
auth_bind = yes
auth_bind_userdn = atlas\%u
#auth_bind_userdn = atlas\%u
user_filter = (&(objectClass=person)(cn=%u))
user_attrs = homeDirectory=home=/home/vmail/%u,description=quota_rule=*:bytes=%$
----------------------------------------------------------------------------------------------------------------------------------

dovecot-ldap-userdb.conf
---------------------------------------------------------------
hosts = 192.168.0.97 192.168.0.76
base = dc=atlas,dc=local
ldap_version = 3
auth_bind = no
dn = atlas\user
dnpass = password
user_filter = (&(objectClass=person)(userPrincipalName=%u at atlas.local))
user_attrs = description=quota_rule=*:bytes=%$

And of course, I put in a users description field in Active Directory
*:bytes=%1024

When I log in as that user, and check the quota, I'm still seeing 512 MB

Very strange.


More information about the dovecot mailing list