[Dovecot] doveadm quota recalc don't work

Thiago Henrique thiagoh at digirati.com.br
Sat Sep 25 00:51:52 EEST 2010


Hello,

I'm testing Dovecot 2.0.

I plan to use Dovecot 2.0 with thousands of domains per server. My user
base is under virtual MySQL.

When I run `quota doveadm recalc`, Dovecot sets quota to zero:

################################################################################
root at server:# doveadm -v quota get -u username
Quota name                        Type    Value   Limit %
User quota                        STORAGE  1166 1048576 0
User quota                        MESSAGE     1       - 0
root at server:# doveadm -v quota recalc -u username
root at server:# doveadm -v quota get -u username
Quota name                        Type    Value   Limit %
User quota                        STORAGE     0 1048576 0
User quota                        MESSAGE     0       - 0
################################################################################

My `dovecot -n` :

################################################################################
root at box5:/home/thiagoh# cat a
# 2.0.3 (02a9cf90ad02): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-24-server x86_64 Ubuntu 10.04.1 LTS ext4
auth_debug = yes
auth_debug_passwords = yes
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@=
auth_username_translation = @=
auth_verbose = yes
auth_verbose_passwords = plain
auth_worker_max_count = 10
disable_plaintext_auth = no
listen = server.com
login_greeting =  Dovecot ready!
mail_debug = yes
mail_gid = dovemail
mail_location = mdbox:/home/%u
mail_plugins = $mail_plugins quota
mail_uid = dovemail
managesieve_sieve_capability = fileinto reject envelope vacation
subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include imapflags notify
mmap_disable = yes
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
passdb {
  args = /etc/dovecot/dovecot-sql-master.conf.ext
  driver = sql
  master = yes
  pass = yes
}
plugin {
  autocreate = SPAM
  autosubscribe = SPAM
  quota = maildir:User quota
  quota_rule = *:storage=1GB
  sieve = /var/lib/imap/sieve/%2.256RHu/%u/phpscript.script
  sieve_dir = /var/lib/imap/sieve/%2.256RHu/%u
  sieve_extensions = comparator-i;ascii-numeric copy envelope fileinto
imapflags include notify regex reject relational subaddress vacation
  sieve_max_script_size = 512KB
  sieve_quota_max_scripts = 2
}
protocols = imap pop3 lmtp sieve
service auth-worker {
  user = $default_internal_user
}
service auth {
  process_limit = 1
  process_min_avail = 1
}
service imap-login {
  inet_listener imap {
    address = server.com
    port = 143
  }
}
service imap {
  process_limit = 1024
  process_min_avail = 10
}
service lmtp {
  inet_listener {
    address = server.com
    port = 2003
  }
  process_limit = 256
  process_min_avail = 10
}
service managesieve-login {
  inet_listener sieve {
    address = server.com
    port = 4190
  }
  inet_listener sieve_deprecated {
    address = server.com
    port = 2000
  }
}
service managesieve {
  process_limit = 20
  process_min_avail = 10
}
service pop3-login {
  inet_listener pop3 {
    address = server.com
    port = 110
  }
}
service pop3 {
  process_limit = 256
  process_min_avail = 10
}
ssl = no
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol imap {
  imap_idle_notify_interval = 120 s
  imap_max_line_length = 65536
  mail_max_userip_connections = 10
  mail_plugins = $mail_plugins quota imap_quota autocreate
}
protocol lmtp {
  mail_plugins = $mail_plugins sieve quota autocreate
}
protocol sieve {
  mail_plugins = $mail_plugins sieve
  managesieve_implementation_string =  Dovecot Pigeonhole
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_line_length = 65536
  managesieve_sieve_capability = comparator-i;ascii-numeric copy
envelope fileinto imapflags include notify regex reject relational
subaddress vacation
}
protocol pop3 {
  mail_plugins = $mail_plugins quota autocreate
}
################################################################################

I use 'mdbox' as mailbox format, but my quota backend is 'maildir'. Is
there a problem?


Thank you in advance.
Best Regards
--
[]'s
Thiago Henrique
Network Administration
Digirati Networks
K8 Networks



More information about the dovecot mailing list