This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

Filesystem quota

Dovecot doesn't work too well with filesystem quota currently when user goes over quota. But there are a few things you can do:

So, use something like:

# mbox:
default_mail_env = mbox:%h/mail:INBOX=/var/mail/%u:INDEX=/var/no-quotas/index/%u

# maildir:
default_mail_env = maildir:%h/Maildir:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u

Quota reporting

Dovecot supports filesystem quota reporting using a quota plugin. This may still be buggy in some operating systems, so don't rely on it before you've tried it.

protocol imap {
  mail_plugins = quota imap_quota

plugin {
  quota = fs