[Dovecot] Problem with quota calculation...
Hello,
since I changed the quota backend from maildir (maildir:User quota) to dictionary (dict:User quota::proxy::quota), I have problems with tha calculated size and messages count.
--- Input/Output ---
# du -hs 23M .
# doveadm quota get -u ich@tachtler.net
Quota name Type Value Limit
%
User quota STORAGE 46602 1024000
4
User quota MESSAGE 166 -
0
# doveadm quota recalc -u ich@tachtler.net
# doveadm quota get -u ich@tachtler.net
Quota name Type Value Limit
%
User quota STORAGE 23301 1024000
2
User quota MESSAGE 83 -
0
--- Input/Output ----
It seems, that all was counted twice?
----- doveconf -n -----
# dovecot -n
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.17.1.el6.x86_64 x86_64 CentOS release 6.5 (Final)
auth_master_user_separator = *
auth_mechanisms = plain digest-md5 cram-md5 login
auth_verbose = yes
dict {
quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
hostname = dovecot.tachtler.net
listen = *
mail_location = maildir:~/Maildir
mail_plugins = " quota acl zlib mail_log notify"
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave
mbox_write_locks = fcntl
namespace {
list = children
location = maildir:%%h/Maildir:INDEX=%h/shared/%%u:CONTROL=%h/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = yes
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix = INBOX/
separator = /
}
passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
pass = yes
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
mail_log_fields = uid box msgid size from
quota = dict:User quota::proxy::quota
quota_grace = 10%%
quota_rule = INBOX/Trash:storage=+100M
quota_status_nouser = DUNNO
quota_status_overquota = 552 5.2.2 Mailbox is over quota
quota_status_success = DUNNO
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
zlib_save = gz
zlib_save_level = 6
}
postmaster_address = postmaster@tachtler.net
protocols = imap lmtp sieve
service auth {
unix_listener auth-userdb {
group = vmail
user = vmail
}
}
service dict {
unix_listener dict {
group = vmail
mode = 0660
user = vmail
}
}
service imap-login {
process_min_avail = 1
service_count = 0
}
service lmtp {
inet_listener lmtp {
address = 192.168.0.80
port = 24
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service quota-status {
client_limit = 1
executable = quota-status -p postfix
inet_listener {
address = 192.168.0.80
port = 12340
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
user = vmail
}
ssl_cert = </etc/pki/dovecot/certs/CAcert-class3-wildcard_all_in_one.crt
ssl_key = </etc/pki/dovecot/private/tachtler.net.key
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
verbose_proctitle = yes
protocol lmtp {
mail_plugins = " quota acl zlib mail_log notify sieve"
}
protocol imap {
mail_plugins = " quota acl zlib mail_log notify imap_quota imap_acl
imap_zlib"
}
Thank you for any help, Klaus.
--
e-Mail : klaus@tachtler.net Homepage: http://www.tachtler.net DokuWiki: http://www.dokuwiki.tachtler.net
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
HI Klaus,
Am 27.05.2014 13:04, schrieb Klaus Tachtler:
since I changed the quota backend from maildir, I have problems with tha calculated size and messages count.
BTW, quota for two accounts? ;) A little bit oversized, isn't it? ROFTL
cu on Friday! Django
"Bonnie & Clyde der Postmaster-Szene!" approved by Postfix-God http://wetterstation-pliening.info http://dokuwiki.nausch.org http://wiki.piratenpartei.de/Benutzer:Django -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJThh3gAAoJEAdOz2FQpr/t9LYQAIGzjTNYWJqUSY/VlDqHtnY7 Mxtf4bkzqsyanbAfH2GV8c9SjnJTdE0tmmfCTbvkzE6gQ2Uv2nsVTQhXzOqjo1D8 ujGhQF+bxAolcYeMIWK4RPDGnGSRpdSwZogfSBXutS6GJspKzNUbDJBnOyw9yyWr gKWbrmjSTnMf8wphxUsKEbY2OMxticPdUsJmRYMEeuL7e8wgQcQkb7IbsMVeukxl zmyVyR8jwwKV9fOKNqVvAjASA6yJlMXGzUceerI1qFBPWqP2IvGIjM6opULef5nr YDd9vj6sLJL6Q2qe8je+EtTreiFVX6+0mOSaqc5/4gAwwrKXTGNr7KOzgwsf+L1G Y+p3Yo1J4bgPUFe6KPYcg6CU2AwM0PwZ107j2hMHqg//3alNnX3sNuXEtZUGaO7S lxu5+LkpMWKw69+v2XvcRTCBaxJrjcXc8YGm5o9rzEm3gI1DslSOfa3SzE8RtmUL LmgAHNxYKzhxJr6Qw0XIbqUT+e5mPzV/AQoMIhhGwJXApoCoBTGjE7Q2/DFFb0Y9 gziO9dN8NvgBLyerQUbpj3a3C43vMlXSKI2BaKRuRJGTDcl0CeIE+ag3jtMpIyLW 59CYeYwy2k9qlqn+DfHwP3hRrBbSZ6K5Lw+KE3F1jYDwEnLpc//HPqoCFFMgG39b WJU89J/WZ9KwhrmTXCST =Veq9 -----END PGP SIGNATURE-----
Il 27/05/2014 13:04, Klaus Tachtler ha scritto:
Hello,
since I changed the quota backend from maildir (maildir:User quota) to dictionary (dict:User quota::proxy::quota), I have problems with tha calculated size and messages count.
--- Input/Output ---
# du -hs 23M .
# doveadm quota get -u ich@tachtler.net Quota name Type Value Limit % User quota STORAGE 46602 1024000 4 User quota MESSAGE 166 - 0
# doveadm quota recalc -u ich@tachtler.net
# doveadm quota get -u ich@tachtler.net Quota name Type Value Limit % User quota STORAGE 23301 1024000 2 User quota MESSAGE 83 - 0
--- Input/Output ----
It seems, that all was counted twice?
Hi,
try to understand if quota is updated when you delete a messagge (via POP/IMAP) and when a new messagge is delivered.
Are you using Dovecot for LDA? THis is necessary if you use dict for quota.
Ciao
Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz Cloud Email Hosting -> http://www.qboxmail.com @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
participants (3)
-
Alessio Cecchi
-
Django [BOfH]
-
Klaus Tachtler