<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi<br>
Do you try recalc and get ?<br>
<br>
On 22.11.2018 08:56, Vincent Seynhaeve wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALiVxwrnqdwbo=vovXzqxmWjxVbpMrEaFROhyWj9OGeUPgRPwg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">ldap:departmentNumber</a>}<br>
</p>
<p><br>
</p>
<p>Can somebody help me with this or give me some advice for
debugging?</p>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Maciej Miłaszewski
IQ PL Sp. z o.o.
Administrator Systemowy
Biuro Obsługi Klienta:
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:bok@iq.pl">bok@iq.pl</a>
tel.: +48 58 326 09 90 - 94
fax: +48 58 326 09 99
Dział pomocy: <a class="moz-txt-link-freetext" href="https://www.iq.pl/pomoc">https://www.iq.pl/pomoc</a>
Informacja dotycząca przetwarzania danych osobowych: <a class="moz-txt-link-freetext" href="https://www.iq.pl/kontakt">https://www.iq.pl/kontakt</a>
Jakość gwarantuje: ISO 9001:2000
IQ PL Sp. z o.o. z siedzibą w Gdańsku (80-298), ul. Geodetów 16, KRS 0000007725, Sąd rejestrowy: Sąd Rejonowy w Gdańsku VII Wydział KRS,
kapitał zakładowy: 140.000 PLN, NIP 5832736211, REGON 192478853</pre>
</body>
</html>