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.