[Dovecot] Quotas ignored on INBOX only
I have set up postifx and dovecot (1.1) with virtual users and delivery via LDA. I am very pleased with the results so far but have this problem with quotas. Setting a global quota using plugin { } I initially used maildir to set quotas, but they seem to apply to all folders apart from INBOX. For debugging I switched maildir to dict using mysql. The table populates as it should with sizes and message count for all messages created in trash/drafts/sent folders - but messages in the INBOX do not increment size or message count in the table. I have tried with quota rules for both messages and storage. I have also tried specifying INBOX instead of * Any suggestions onĀ how to fix please? Dovecot -n output: # 1.1.11: /etc/dovecot/dovecot-postfix.conf # OS: Linux 2.6.28-14-server i686 Ubuntu 9.04 ext3 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps pop3s managesieve ssl_cert_file: /etc/ssl/certs/ssl-mail.pem ssl_key_file: /etc/ssl/private/ssl-mail.key ssl_cipher_list: ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no login_greeting_capability(managesieve): no mail_max_userip_connections(default): 10 mail_max_userip_connections(imap): 10 mail_max_userip_connections(pop3): 3 mail_max_userip_connections(managesieve): 10 mail_privileged_group: mail mail_location: maildir:/var/vmail/%d/%n/Maildir mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): imap_client_workarounds(managesieve): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): sieve_storage(default): sieve_storage(imap): sieve_storage(pop3): sieve_storage(managesieve): ~/sieve sieve(default): sieve(imap): sieve(pop3): sieve(managesieve): ~/.dovecot.sieve auth default: mechanisms: plain login passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: quota: dict:user::proxy::quotadict quota_rule: *:messages=5 dict: quotadict: mysql:/etc/dovecot/dovecot-dict-quota.conf
On Aug 25, 2009, at 7:41 PM, Random Monkey wrote:
I have set up postifx and dovecot (1.1) with virtual users and
delivery via LDA. I am very pleased with the results so far but have
this problem with quotas.Setting a global quota using plugin { } I initially used maildir to
set quotas, but they seem to apply to all folders apart from INBOX.For debugging I switched maildir to dict using mysql. The table
populates as it should with sizes and message count for all messages
created in trash/drafts/sent folders - but messages in the INBOX do
not increment size or message count in the table.
How exactly are you testing this? Are you saving/copying messages to
INBOX exactly the same way as for other mailboxes?
Dovecot -n output:
Your configuration looks ok.
# 1.1.11: /etc/dovecot/dovecot-postfix.conf
The only thing I can think of is that either you're testing INBOX
differently and the problem is actually something else, or that
there's a bug in this Dovecot version (but I didn't see anything
related in NEWS file).
Thanks
The way I am testing is as follows.
Setup two users on the system. Send email from user A to user B.
Quota counts increase for user A as the email is copied to the Sent folder. User B quota count does not increase (size or messages)
Reply from user B to user A to confirm problem effects both accounts.
Remove email from sent items on one account and expunge and note quota record decreases.
Remove email from INBOX and expunge, note quota record does not change.
Repeat sending emails from B to A and notice quota limit is reached on sent items - error is received copying email to sent items. With quota exceeded switch to user account A and continue to send emails to B, note that they appear in the INBOX of the user despite the full quota with no bounce back.
This behaviour is identical regardless of quota backend used (have tried maildir++ and dict so far).
This is using the default aptitude package of dovecot-postifx for ubuntu 9.0.4 - Is this a bug?
I think this is a bug in the 1.1.11 version bundled with ubuntu 9.0.4 I have switched back to an older version and quotas are now working fine. Thanks.
participants (2)
-
Random Monkey
-
Timo Sirainen