<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    More on 'global' local section:<br>
    <br>
    If there was <br>
    !include_try global_local.conf <br>
    <br>
    before the <br>
    <br>
    !include_try local.conf<br>
    <br>
    It would have things like:<br>
    <br>
    #    dovecot.conf<br>
    protocols = imap pop3 lmtp sieve<br>
    dict {<br>
        sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext<br>
    }<br>
    <br>
    <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>
      <p>The quota count can be recalculated with doveadm quota recalc</p>
      <p>Aki<br>
      </p>
    </blockquote>
    <br>
  </body>
</html>