quota_grace funktioniert nicht

Michael Köhler ml_dovecotde at controlc.de
Mo Jul 20 14:54:52 CEST 2015


Hallo,

nachdem Quota ansich bei meiner Dovecot-Installation v2.2.16.4 
funktioniert und EMails prinzipiell ablehnt werden, wenn das Postfach 
über dem Limit liegt, habe ich die Warn-Nachrichten eingeschalten. Auch 
das funktioniert inzwischen. Nun hänge ich an der gewollten 
"Überbuchung" des Limits via des Parameters quota_grace. Ich versuche 
dabei eine Email < als Quota in das Postfach zu bekommen, welches 
bereits bei 100% ist. Das versuche ich einmal im TB über 
postfachübergreifendes Verschieben und auch per Versenden via Email.

Ich bin mir recht sicher das der Parameter richtig gesetzt ist, aber 
leider greift er nicht :(. Hat jemand die zündende Idee?!

Viele Grüße,
Michael

Hier ein Logauszug:
Jul 20 14:19:39 mail dovecot: auth: Debug: auth client connected (pid=16365)
Jul 20 14:19:40 mail dovecot: auth: Debug: client in: 
AUTH#0111#011PLAIN#011service=imap#011secured#011session=owhIjU0bZQBQmX16#011lip=IP.ADD.RES.S#011rip=IP.ADD.RES.S#011lport=993#011rport=51301
Jul 20 14:19:40 mail dovecot: auth: Debug: client passdb out: CONT#0111
Jul 20 14:19:40 mail dovecot: auth: Debug: client in: CONT<hidden>
Jul 20 14:19:40 mail dovecot: auth-worker(16340): Debug: 
sql(test at controlc.de,IP.ADD.RES.S): query: SELECT email AS user, 
password FROM core_user WHERE email='test at controlc.de' and is_active=1
Jul 20 14:19:40 mail dovecot: auth: Debug: client passdb out: 
OK#0111#011user=test at controlc.de
Jul 20 14:19:40 mail dovecot: auth: Debug: master in: 
REQUEST#0112780561409#01116365#0111#011373e4dcb42f983f473efa5cfb486dd9c#011session_pid=16366#011request_auth_token
Jul 20 14:19:40 mail dovecot: auth-worker(16340): Debug: 
sql(test at controlc.de,IP.ADD.RES.S): SELECT 
'/var/mail/controlc.de/test at controlc.de' AS home, 5000 as uid, 5000 as 
gid, concat('*:bytes=', mb.quota, 'M') AS quota_rule FROM admin_mailbox 
mb INNER JOIN admin_domain dom ON mb.domain_id=dom.id WHERE 
mb.address='test' AND dom.name='controlc.de'
Jul 20 14:19:40 mail dovecot: auth: Debug: master userdb out: 
USER#0112780561409#011test at controlc.de#011home=/var/mail/controlc.de/test at controlc.de#011uid=5000#011gid=5000#011quota_rule=*:bytes=10M#011auth_token=277a5f4833f7354b05a3ca5c260652f63929d0f7
Jul 20 14:19:40 mail dovecot: imap-login: Login: 
user=<test at controlc.de>, method=PLAIN, rip=IP.ADD.RES.S, 
lip=IP.ADD.RES.S, mpid=16366, TLS, session=<owhIjU0bZQBQmX16>
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Loading 
modules from directory: /usr/lib/dovecot/modules
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib15_notify_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib20_listescape_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib20_mail_log_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Module 
loaded: /usr/lib/dovecot/modules/lib20_virtual_plugin.so
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Added 
userdb setting: plugin/quota_rule=*:bytes=10M
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Effective 
uid=5000, gid=5000, home=/var/mail/controlc.de/test at controlc.de
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota root: 
name=User quota backend=dict args=:proxy::quota
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota rule: 
root=User quota mailbox=* bytes=10485760 messages=0
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota 
warning: bytes=9961472 (95%) messages=0 reverse=no command=quota-warning 
95 test at controlc.de
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota 
warning: bytes=8388608 (80%) messages=0 reverse=no command=quota-warning 
80 test at controlc.de
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota 
warning: bytes=10485760 (100%) messages=0 reverse=yes 
command=quota-warning "unter 100" test at controlc.de
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: Quota 
grace: root=User quota bytes=5242880 (50%)
Jul 20 14:19:40 mail dovecot: imap(test at controlc.de): Debug: dict quota: 
user=test at controlc.de, uri=proxy::quota, noenforcing=0

der entsprechende doveconf -n Teil:

protocol lmtp {
   mail_plugins = " quota mail_log notify listescape mailbox_alias 
virtual quota sieve"
   postmaster_address = postmaster at controlc.de
}
protocol lda {
   mail_plugins = " quota mail_log notify listescape mailbox_alias 
virtual sieve virtual"
}
protocol imap {
   mail_max_userip_connections = 50
   mail_plugins = " quota mail_log notify listescape mailbox_alias 
virtual virtual imap_quota"
}
service quota-warning {
   executable = script /usr/local/bin/quota-warning.sh
   unix_listener quota-warning {
     user = vmail
   }
   user = vmail
}
plugin {
   quota = dict:User quota::proxy::quota
   quota_grace = 50%%
   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u
   quota_warning3 = -storage=100%% quota-warning "unter 100" %u
}
dict {
   quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
mail_location = maildir:/var/mail/%d/%u
mail_plugins = " quota mail_log notify listescape mailbox_alias virtual"


Mehr Informationen über die Mailingliste Dovecot