<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 2/13/19 1:51 AM, Aki Tuomi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b776b76e-7e9f-66a7-cb38-dc0de4dfe237@open-xchange.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><br>
</p>
<div class="moz-cite-prefix">On 13.2.2019 2.02, Robert Moskowitz
via dovecot wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a9f64bd5-117f-d6de-55f5-06607f38f085@htt-consult.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<br>
<br>
<div class="moz-cite-prefix">On 2/12/19 1:57 PM, Aki Tuomi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:65240414.1085.1549997855159@appsuite-dev-gw2.open-xchange.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<meta charset="UTF-8">
<div> <br>
</div>
<blockquote type="cite">
<div> On 12 February 2019 at 20:52 Robert Moskowitz via
dovecot < <a href="mailto:dovecot@dovecot.org"
moz-do-not-send="true">dovecot@dovecot.org</a>>
wrote: </div>
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div> On 2/12/19 1:03 PM, Aki Tuomi via dovecot wrote: </div>
Dovecot keeps the quota current, although dict quota has
been known to be bit bad at this.
<blockquote type="cite"> </blockquote>
<blockquote type="cite">
<div> We nowadays recommend using count quota instead and
use quota_clone to copy the quota state to database. It
is more accurate. </div>
</blockquote>
<div> And how is this recommendation implemented? </div>
<div> <br>
</div>
<div> All I have are my old notes and what google is finding
for me... </div>
<div> <br>
</div>
<div> Please give me some pointers. </div>
<div> <br>
</div>
<div> thanks </div>
</blockquote>
<div> <br>
</div>
<div> <a href="https://wiki.dovecot.org/Quota/Count"
moz-do-not-send="true">https://wiki.dovecot.org/Quota/Count</a>
<br>
</div>
<div> <a href="https://wiki.dovecot.org/Plugins/QuotaClone"
moz-do-not-send="true">https://wiki.dovecot.org/Plugins/QuotaClone</a>
<br>
</div>
<div> <br>
</div>
<div> and the recommendation is under </div>
<div> <br>
</div>
<div> <a class="moz-txt-link-freetext"
href="https://wiki.dovecot.org/Quota"
moz-do-not-send="true">https://wiki.dovecot.org/Quota</a><br>
</div>
</blockquote>
<br>
I have been spending effort today reading up on this and
searching on a couple questions.<br>
<br>
For my additions to 20-imap.conf I have:<br>
<br>
imap_client_workarounds = delay-newmail<br>
protocol imap {<br>
mail_plugins = quota imap_quota trash<br>
}<br>
<br>
I see that the mail_plugin quota is moved to 10-mail.conf. No
biggie there. But what about trash?<br>
<br>
And I tried to find documentation on imap_client_workarounds and
all I have found is in:<br>
<br>
<a class="moz-txt-link-freetext"
href="https://wiki.dovecot.org/QuickConfiguration#Client_Workarounds"
moz-do-not-send="true">https://wiki.dovecot.org/QuickConfiguration#Client_Workarounds</a><br>
<br>
"Check <tt class="backtick">imap_client_workarounds</tt> and <tt
class="backtick">pop3_client_workarounds</tt> and see if you
want to enable more of them than the defaults. ?<br>
<br>
With no link about where to learn more.<br>
<br>
Where does quota count go? Just dovecot.conf or one of the
numbered conf addtions?<br>
<br>
<a class="moz-txt-link-freetext"
href="https://wiki.dovecot.org/Quota/Count"
moz-do-not-send="true">https://wiki.dovecot.org/Quota/Count</a><br>
<br>
Also is there a way to compute the count for all users? I am
migrating the maildir and rebuilding the sql database. I see:<br>
<br>
<tt class="backtick">doveadm mailbox status -u user@domain vsize '*'</tt><br>
<br>
But do I do that for each user in each domain or is that '*'
there to run it on all users?<br>
<br>
I think this will get me started.<br>
<br>
<br>
<br>
</blockquote>
<p><br>
</p>
<p>You probably should configure quota plugin globally, if you
want LMTP/LDA deliveries to update quota.</p>
</blockquote>
<br>
hmm. This is a bit of an eye-opening statement.<br>
<br>
My current practice is not to modify all of the various conf.d
files, but rather to have a local.conf that has sections for each
one that I want to customize. Basically keeping what is provided
then having custom overrides in one place like:<br>
<br>
# 20-pop3.conf<br>
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh<br>
protocol pop3 {<br>
mail_plugins = quota<br>
}<br>
<br>
I think what I should be learning here is to start my local.conf
with:<br>
<br>
mail_plugins = quota<br>
<br>
then 15-lda section says:<br>
<br>
# 15-lda.conf<br>
postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:postmaster@htt-consult.com">postmaster@htt-consult.com</a><br>
protocol lda {<br>
mail_plugins = $mail_plugins sieve<br>
}<br>
lda_mailbox_autocreate = yes<br>
lda_mailbox_autosubscribe = yes<br>
<br>
Am I 'getting it'?<br>
<br>
Also 20-lmtp only has:<br>
<br>
# 20-lmtp.conf<br>
lmtp_save_to_detail_mailbox = yes<br>
protocol lmtp {<br>
mail_plugins = sieve<br>
}<br>
<br>
Again, it seems from your comment that should be:<br>
<br>
mail_plugins = $mail_plugins sieve<br>
<br>
<br>
Finally, I am putting all my additions in local.conf. This is
included via the LAST line in dovecot.conf. It seems that there
should be a <br>
<br>
!include_try global.conf<br>
<br>
at the beginning of dovecot.conf, or some such name. Perhaps
local_global.conf<br>
<br>
<br>
<blockquote type="cite"
cite="mid:b776b76e-7e9f-66a7-cb38-dc0de4dfe237@open-xchange.com">
<p>The quota count can be recalculated with doveadm quota recalc</p>
</blockquote>
<br>
I will dig into this doveadm function.<br>
<br>
thanks<br>
<br>
<blockquote type="cite"
cite="mid:b776b76e-7e9f-66a7-cb38-dc0de4dfe237@open-xchange.com">
<p>Aki<br>
</p>
</blockquote>
<br>
</body>
</html>