Hello,
imap-quota plugin always returns empty quota:
a1 GETQUOTA ""
* QUOTA "" ()
a1 OK Getquota completed.
a2 GETQUOTAROOT INBOX
* QUOTAROOT "INBOX"
a2 OK Getquotaroot completed.
quota_rule and quota_rule2 for this user are defined in db as following:
'*:storage=5000000'
'*:messages=50000'
Quota for LDA is working OK.
I am using dovecot-1.1.3 with quotadict.
Here is my dovecot -n output:
# 1.1.3: /usr/local/dovecot/etc/dovecot.conf
base_dir: /var/run/dovecot/
syslog_facility: local7
protocols: pop3 imap
ssl_cert_file: /etc/postfix/host-cert.pem
ssl_key_file: /etc/postfix/host-key.pem
disable_plaintext_auth: no
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login
login_greeting: Server.
login_process_per_connection: no
login_processes_count: 5
login_max_processes_count: 32
verbose_proctitle: yes
first_valid_uid: 95
first_valid_gid: 95
mail_uid: 95
mail_gid: 95
mail_location: maildir:~/Maildir
fsync_disable: yes
mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail
imap_client_workarounds(imap): delay-newmail
imap_client_workarounds(pop3):
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
type: private
separator: .
inbox: yes
list: yes
subscriptions: yes
auth default:
mechanisms: plain login digest-md5 cram-md5 apop
cache_size: 1024
cache_ttl: 600
cache_negative_ttl: 60
user: doveauth
verbose: yes
passdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
userdb:
driver: prefetch
userdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: vmail
group: vmail
plugin:
quota: dict:::proxy:/var/run/dovecot/dict-server:quotadict
dict:
quotadict: mysql:/usr/local/dovecot/etc/dovecot-sql-dict-quota.conf
Regards, Arvids
On Fri, 2008-09-26 at 11:43 +0300, arvids wrote:> Hello, > > imap-quota plugin always returns empty quota: > a1 GETQUOTA "" > * QUOTA "" () > a1 OK Getquota completed. > a2 GETQUOTAROOT INBOX > * QUOTAROOT "INBOX" > a2 OK Getquotaroot completed. > > quota_rule and quota_rule2 for this user are defined in db as following: > '*:storage=5000000' > '*:messages=50000'You should have only one quota_rule that's '*:storage=5000000:messages=50000' I'm not sure what it does with your configuration. I suppose it's also possible that it works as intended.. Anyway, set mail_debug=yes and show what the logs say when logging in. That'll describe what it really sees in the quota settings. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081005/56d8d423/attachment-0002.bin>
On Sunday 05 October 2008 15:15:49 Timo Sirainen wrote:> You should have only one quota_rule that's > '*:storage=5000000:messages=50000' > > I'm not sure what it does with your configuration. I suppose it's also > possible that it works as intended.. > > Anyway, set mail_debug=yes and show what the logs say when logging in. > That'll describe what it really sees in the quota settings.with mail_debug=yes the log says : Oct 5 16:23:01 host dovecot: IMAP(testuser): Loading modules from directory: /usr/local/dovecot/lib/dovecot/imap Oct 5 16:23:01 host dovecot: IMAP(testuser): Module loaded: /usr/local/dovecot/lib/dovecot/imap/lib10_quota_plugin.so Oct 5 16:23:01 host dovecot: IMAP(testuser): Module loaded: /usr/local/dovecot/lib/dovecot/imap/lib11_imap_quota_plugin.so Oct 5 16:23:01 host dovecot: IMAP(testuser): Effective uid=95, gid=95, home=/var/vmail/testuser Oct 5 16:23:01 host dovecot: IMAP(testuser): Quota root: name= backend=dict args=:proxy:/var/run/dovecot/dict-server:quotadict Oct 5 16:23:01 host dovecot: IMAP(testuser): dict quota: user=testuser, uri=proxy:/var/run/dovecot/dict-server:quotadict, enforcing=0 Oct 5 16:23:01 host dovecot: IMAP(testuser): Namespace: type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 5 16:23:01 host dovecot: IMAP(testuser): maildir: data=/var/vmail/testuser/Maildir Oct 5 16:23:01 host dovecot: IMAP(testuser): maildir++: root=/var/vmail/testuser/Maildir, index=, control=, inbox=/var/vmail/testuser/Maildir Oct 5 16:23:01 host dovecot: imap-login: Login: user=<testuser>, method=PLAIN, rip=x.x.x.x, lip=x.x.x.x exactly the same result with quota_rule='*:storage=5000000:messages=50000'. Regards, Arvids