Hi,
I've configured a global quota rule, with low limits for testing purpose: quota_rule = *:storage=10M:messages=10
Why is the percentage value always 0? What does 'enforcing' mean in this context? Is it not only relevant if one uses fs-quota?
Jan 21 17:54:44 vh3 dovecot: IMAP(user@test.tld): Quota root: name=user backend=dict args=:proxy::quotadict Jan 21 17:54:44 vh3 dovecot: IMAP(user@test.tld): dict quota: user=user@test.tld, uri=proxy::quotadict, enforcing=0 Jan 21 17:54:44 vh3 dovecot: IMAP(user@test.tld): Quota rule: root=user mailbox=* bytes=10485760 (0%) messages=10 (0%) Jan 21 17:54:49 vh3 deliver(user@test.tld): Quota root: name=user backend=dict args=:proxy::quotadict Jan 21 17:54:49 vh3 deliver(user@test.tld): dict quota: user=user@test.tld, uri=proxy::quotadict, enforcing=0 Jan 21 17:54:49 vh3 deliver(user@test.tld): Quota rule: root=user mailbox=* bytes=10485760 (0%) messages=10 (0%)
The current quota usage for user@test.tld:
mailsys=# SELECT * FROM quota WHERE username = 'user@test.tld';
username | path | current
---------------+----------------+---------
user@test.tld | quota/storage | 9977225
user@test.tld | quota/messages | 4
# 1.1.9: /usr/local/etc/dovecot.conf
# OS: OpenBSD 4.2 i386
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_user: _dovecot
first_valid_uid: 70000
first_valid_gid: 70000
mail_location: maildir:~/Maildir
mail_debug: yes
mail_plugins: quota imap_quota
auth default:
mechanisms: plain login cram-md5
user: nobody
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: _postfix
group: _postfix
master:
path: /usr/local/var/run/dovecot/auth-master
mode: 384
plugin:
quota: dict:user::proxy::quotadict
quota_rule: *:storage=10M:messages=10
mail_debug: yes
dict:
quotadict: pgsql:/usr/local/etc/dovecot-dict-quota.conf
mail_debug: yes
Regards, Pascal
Ubuntu is an ancient African word meaning “I can’t install Debian.” -- unknown