Quota reporting

Hanns Mattes hanns at hannsmattes.de
Wed Oct 29 17:41:16 UTC 2014


Hi,

my main server will be upgraded from Dovecot 1.2something to 2.2. For
testing I've installed a setup with postfix, handing malis as a relay
via lmtp. So far it's up and running - really nice.

AFAICS there's one issue left: Thunderbird and Kmail don't show the
quota status. Using doveadm quota the information is shown correctly,
even the user-specific values (coming from openldap) are set correctly.

I think, I miss something obvious ... (and besides quota - any
configuration hint is very welcome)

linux:/etc/dovecot # doveconf -n
# 2.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 3.7.10-1.40-desktop x86_64 openSUSE 12.3 (x86_64)
auth_master_user_separator = *
auth_mechanisms = plain login digest-md5 cram-md5 apop
auth_verbose = yes
mail_debug = yes
mail_location = maildir:~/Maildir
mail_plugins = " quota zlib fts fts_lucene trash"
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 duplicate
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
}
passdb {
  args = /etc/dovecot/master-users
  driver = passwd-file
  master = yes
  pass = yes
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  fts_autoindex = yes
  fts_lucene = whitespace_chars=@.
  quota = maildir:User quota
  quota_exceeded_message = Storage quota for this account has been
exceeded, please try again later.
  quota_grace = 100M
  quota_rule = *:storage=1000M
  quota_rule2 = Trash:storage=+10%%
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning3 = storage=75%% quota-warning 75 %u
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_max_redirects = 32
  trash = /etc/dovecot/dovecot-trash.conf.ext
  zlib_save = gz
  zlib_save_level = 6
}
postmaster_address = admin at 93er.net
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0666
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  inet_listener lmtp {
    address = 127.0.0.1
    port = 24
  }
  user = vmail
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  inet_listener sieve_deprecated {
    port = 2000
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  user = vmail
}
ssl_cert = </etc/dovecot/brueckokomplett2014.crt
ssl_key = </etc/dovecot/brueckofrei2014.key
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = " quota zlib fts fts_lucene trash quota sieve"
}
protocol lda {
  mail_plugins = " quota zlib fts fts_lucene trash"
}
protocol imap {
  mail_plugins = " quota zlib fts fts_lucene trash quota imap_quota
imap_zlib"
}


here is dovecot-ldap.conf.ext:

hosts = 127.0.0.1 192.168.0.1
dn = cn=Manager,dc=dies,dc=jenes
dnpass = ganzgeheim
auth_bind = no
base = ou=virtualmail,dc=dies,dc=jenes
scope = subtree
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,quota=quota_rule=*:\
storage=%$M
user_filter = (&(objectClass=CourierMailAccount)(uid=%u))
pass_attrs =
uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber\
=userdb_uid,gidNumber=userdb_gid,quota=userdb_quota_rule=*:storage=%M
pass_filter = (&(disableimap=FALSE)(objectClass=CourierMailAccount)(uid=%u))
iterate_attrs = uid=user
iterate_filter = (objectClass=CourierMailAccount)
default_pass_scheme = PLAIN

Any ideas?

Thanks in advance

regards

Hanns


More information about the dovecot mailing list