Skip to content
Module 7 · Lesson 14 of 25

Quota plugin and warnings

Part of Dovecot: IMAP/POP3 at Production Scale, in the Quotas, Namespaces & Shared Folders module.

Author

Enable in 90-quota.conf:

plugin {
  quota = maildir:User quota
  quota_status_success = DUNNO
  quota_status_nouser = DUNNO
  quota_status_overquota = "552 5.2.2 Mailbox is full"
}

protocol lmtp {
  postmaster_address = postmaster@example.com
  mail_plugins = $mail_plugins quota sieve
}

protocol imap {
  mail_plugins = $mail_plugins imap_quota
}

Per-user quota from userdb quota_rule (e.g. *:bytes=5G).

Warning emails at 80% / 95% via the quota-warning service:

plugin {
  quota_warning  = storage=80%% quota-warning 80 %u
  quota_warning2 = storage=95%% quota-warning 95 %u
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    user = vmail
  }
}

quota-warning.sh runs mail to send the user a notice.

Sign in to keep track of what you have read.

Pulse · email sending

Sending infrastructure that is yours alone.

Every domain gets its own MX host, IP, DKIM selector and certificate. Take it managed, and we run it for you, or buy a licence and run it on your own servers.

# on a fresh Ubuntu server
$ cd pulse && sudo ./install.sh
→ docker compose up · kumomta · stalwart · caddy
→ dashboard ready on https://pulse.yourdomain.com
$

Also from us:Beat: monitoring that tells you the fixConsulting: $65/hr, no retainer