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

Filesystem quota

Dovecot does not work too well with filesystem quotas enabled in situations where a user exceeds his quota. But there are a few things you can do to improve Dovecot's behaviour:

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 do not rely on it before you have tried it. Example configuration:

protocol imap {
  mail_plugins = quota imap_quota

plugin {
  quota = fs