<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Ciao Simone,</p>
<p>why you want each backend to recalc quota only for its managed users and not run "doveadm quota recalc -A" only one time from a backend tha recalc quota for all users?
</p>
<p>Il 10/03/20 11:18, Simone Lazzaris ha scritto:
</p>
<blockquote type="cite" cite="mid:2023064.Mh6RI2rZIc@betelgeuse">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hello dovecot!</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I administer a dovecot installation with 30k users. I've got 4 dovecot directors as frontend and 10 backends.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">The mailbox are now in maildir format, with maildir++ quota, on a shared netapp filer. Indexes are local on each backend.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I'm reconfiguring the quota plugin: as a first step, I want to use the clone plugin to keep a copy of the quota on a redis database. Next, I'm going to use the "count" quota backend.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I've configured without (many) issues the quota clone plugin, but now I want to force the recalculation on all the mailboxes, because I've got some (not many, but some) mailboxes that are mostly unused and are not refreshed.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">At first, I was going to use "doveadm quota recalc -A", but.... I want each backend to perform the recalculation ONLY for the users he it's managing.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I can't perform "doveadm quota recalc -A" on the directors, because the quota plugin is enabled only on the backends.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I can parse the user mapping on the directors and split the calculation, one user a time, on the backends, but I feel I'm choosing a overly complicated path.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">So.... which is the right way to do this? </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; font-weight:600; color:#777777;">Simone Lazzaris</span><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;">
Staff R&D
</span><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; font-weight:600; color:#777777;">Qcom S.p.A. a Socio Unico</span><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;">
Societą soggetta all'attivitą di direzione e coordinamento di Intred S.p.A.</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;">Via Roggia Vignola, 9 | 24047 Treviglio (BG)
T +39 0363 47905 | D +39 0363 1970352
</span><a href="mailto:simone.lazzaris@qcom.it" moz-do-not-send="true"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; text-decoration: underline; color:#2980b9;">simone.lazzaris@qcom.it</span></a><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;"> | </span><a href="https://www.qcom.it" moz-do-not-send="true"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; text-decoration: underline; color:#2980b9;">www.qcom.it</span></a><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;">
Qcom Official Pages</span><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; font-weight:600; color:#777777;"> </span><a href="https://www.linkedin.com/company/qcom-spa" moz-do-not-send="true"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; font-weight:600; text-decoration: underline; color:#2980b9;">LinkedIn</span></a><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;"> | </span><a href="http://www.facebook.com/qcomspa" moz-do-not-send="true"><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; font-weight:600; text-decoration: underline; color:#2980b9;">Facebook</span></a><span style=" font-family:'Helvetica,Arial,sans-serif'; font-size:small; color:#777777;">
</span>
</p>
</blockquote>
<pre class="moz-signature" cols="72">--
Alessio Cecchi
Postmaster @ <a class="moz-txt-link-freetext" href="http://www.qboxmail.it">http://www.qboxmail.it</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/alessice">https://www.linkedin.com/in/alessice</a></pre>
</body>
</html>