This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 4 and 5
Revision 4 as of 2017-11-14 14:02:06
Size: 1408
Editor: TimoSirainen
Revision 5 as of 2021-07-07 23:36:11
Size: 74
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Count quota =

(Requires Dovecot v2.2.19+)

The quota is tracked internally within Dovecot's index files. Each mailbox's quota is tracked separately and when the current quota usage is wanted to be known, the mailboxes' quotas are summed up together. To get the best performance mailbox list indexes should be enabled.

'''WARNING''': If you're switching from some other quota backend to count, make sure that all the mails have their virtual sizes already indexed. Otherwise there may be a significant performance hit when Dovecot starts opening all the mails to get their sizes. You can help to avoid this by accessing the mailbox vsizes for all the users before doing the configuration change: `doveadm mailbox status -u user@domain vsize '*'`

== Configuration ==

mailbox_list_index = yes
# Avoid spending excessive time waiting for the quota calculation to finish when
# mails' vsizes aren't already cached. If this many mails are opened, finish the
# quota calculation on background in indexer-worker process. Mail deliveries will
# be assumed to succeed, and explicit quota lookups will return internal error.
# (v2.2.28+)
mail_vsize_bg_after_count = 100

plugin {
  # 10MB quota limit
  quota = count:User quota
  quota_rule = *:storage=10M

  # This is required - it uses "virtual sizes" rather than "physical sizes" for quota counting:
  quota_vsizes = yes
Moved to

None: Quota/Count (last edited 2021-07-07 23:36:11 by MichaelSlusarz)