This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 1 and 2
Revision 1 as of 2006-06-08 20:38:04
Size: 1208
Editor: TimoSirainen
Comment:
Revision 2 as of 2006-06-13 15:09:04
Size: 1315
Comment: minor linguistic improvements
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Dovecot doesn't work too well with filesystem quota currently when user goes over quota. But there are a few things you can do: 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:
Line 5: Line 5:
 * Set index file location to some partition where there are no quota limits. Dovecot can't currently handle out-of-quota error conditions when updating indexes.
 * mbox should work somewhat nicely as long as `mbox_lazy_writes=yes` in config file, but if user doesn't expunge any mails before closing the mailbox, Dovecot gives an "internal error" failure.
 * Maildir needs to update `dovecot-uidlist` file, which can't handle out-of-quota errors. Its location can be set using "CONTROL" parameter in default_mail_env.
 * Set the index file location to some partition where there are no quota limits. Dovecot cannot currently handle out-of-quota error conditions when updating indexes.
 * mbox should work nicely as long as `mbox_lazy_writes=yes` is set in the configuration file, but if the user does not expunge any messages before closing the mailbox, Dovecot will give an "internal error" failure.
 * Maildir needs to update `dovecot-uidlist` file, which cannot handle out-of-quota errors. Its location can be set using the "CONTROL" parameter in default_mail_env.
Line 21: Line 21:
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. 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:

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:

  • Set the index file location to some partition where there are no quota limits. Dovecot cannot currently handle out-of-quota error conditions when updating indexes.
  • mbox should work nicely as long as mbox_lazy_writes=yes is set in the configuration file, but if the user does not expunge any messages before closing the mailbox, Dovecot will give an "internal error" failure.

  • Maildir needs to update dovecot-uidlist file, which cannot handle out-of-quota errors. Its location can be set using the "CONTROL" parameter in default_mail_env.

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
} 

None: Quota/FS (last edited 2021-07-07 23:36:47 by MichaelSlusarz)