IRedMail/FAQ/Ignore.Trash.Folder.in.Quota

From iRedMail
Revision as of 23:18, 10 July 2011 by ZhangHuangbin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Quota_rule is overrode in /etc/dovecot/dovecot-mysql.conf or /etc/dovecot/dovecot-ldap.conf, so please change them instead. If no per-user quota rules found, Dovecot will use 'quota_ruleX' in dovecot.conf.

For example, with OpenLDAP backend, you have /etc/dovecot/dovecot-ldap.conf, update it with 'Trash:ignore' like below:

File: dovecot-ldap.conf
user_attrs      = ...,mailQuota=quota_rule=*:bytes=%$,=quota_rule2=Trash:ignore

With MySQL backend, update /etc/dovecot/dovecot-mysql.conf:

File: dovecot-mysql.conf
user_query = SELECT ... \
                   CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule \
                   'Trash:ignore' AS quota_rule2 \
                   FROM ...
Personal tools