[Dovecot] default mail quota when using per user quota

Andreas Helmcke news1204.10.weezy at spamgourmet.com
Fri Apr 20 14:11:09 EEST 2012


Hello,

using dovecot 2.1 and per user mail quota via ldap is there a way to have a default quota which gets used, if the
"quota" field in ldap is not set?

I tried with:

plugin {
  quota = maildir:User quota
  quota_rule = *:storage=3G
}

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

and in dovecot-ldap.conf:
user_attrs = dcMailQuota=quota_rule=*:storage=%$


but with this configuration the mail quota /allways/ gets loaded from ldap resulting in users without dcMailQuota
attribute having
no quota at all.


Greetings
   Andreas




More information about the dovecot mailing list