<div dir="ltr"><p>Hello,<br>
</p>
<p>I'm trying to set up LDAP stored quota on Dovecot but it doesn't
work and doesn't get reported by the command doveadm quota get.<br>
</p>
<p>I'm using the field departmentNumber in my LDAP server to store the quota.</p>
<p><br>
</p>
<p>doveadm quota get -u
test</p>
<p>Quota name Type Value
Limit
%<br>
User quota STORAGE 0
-
0<br>
User quota MESSAGE 0
-
0<br>
</p>
<p><br>
</p>
<p>log file associated with doveadm quota get command:</p>
<p>Nov 21 11:38:47 imap dovecot: auth: Debug: master in:
USER#0111#011test#011service=doveadm<br>
Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test): user
search: base=ou=People,dc=example,dc=com scope=subtree
filter=(&(objectClass=posixAccount)(uid=test))
fields=departmentNumber<br>
Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test):
result: departmentNumber=1M; departmentNumber unused<br>
Nov 21 11:38:47 imap dovecot: auth: Debug: ldap(test):
result: departmentNumber=1M<br>
Nov 21 11:38:47 imap dovecot: auth: Debug: userdb out:
USER#0111#011test#011mailRoutingAddress=user =uid=vmail =gid=mail
=home=/var/mail//test =quota_rule=*:bytes=1M</p>
<p><br>
</p>
<p>Bellow my configuration files:</p>
<p>conf.d/10-mail.conf<br>
</p>
<p>mail_plugins = $mail_plugins quota</p>
<p><br>
</p>
<p>conf.d/20-imap.conf</p>
<p><br>
</p>
<p>protocol imap {<br>
mail_plugins = $mail_plugins imap_quota<br>
}<br>
</p>
<p><br>
</p>
<p>conf.d/90-quota.conf</p>
<p>plugin {<br>
<br>
quota = maildir:User quota<br>
quota_rule2 = Trash:storage=+100M<br>
quota_grace = 10%%<br>
quota_status_success = DUNNO<br>
quota_status_nouser = DUNNO<br>
quota_status_overquota = "552 5.2.2 Mailbox is full"<br>
<br>
}<br>
<br>
</p>
<p><br>
</p>
<p>dovecot-ldap.conf.ext<br>
</p>
<p>user_attrs= \<br>
=mailRoutingAddress=user \<br>
=uid=vmail \<br>
=gid=mail \<br>
=home=/var/mail/%d/%n \<br>
=quota_rule=*:bytes=%{<a class="gmail-moz-txt-link-freetext">ldap:departmentNumber</a>}<br>
</p>
<p><br>
</p>
<p>Can somebody help me with this or give me some advice for
debugging?</p>
</div>