Timo Sirainen tss@iki.fi wrote:
On 25.8.2012, at 15.40, Sven Hartge wrote:
Warning the user at 95%, 97% and 99% using the warning scripts is easy and was already configured and is working like a charm.
But how do I instantly reenable the account when it drops below 100% with the warning scripts? As far as I understand the documentation, they are only triggered if the quota use rises over the configured thresholds.
Setting the warning at -100% would do that I think. In any case "-" before the percentage means "reverse". Yeah, not in wiki, I'll add it there..
Ah, very nice.
Now I need to put the pieces together and test whether this is a working solution for me.
Question: is it possible to enforce the quota for IMAP/POP and have it on noenforcing for LDA/LMTP?
LDA would be easy, as I could just add -o "plugin/quota=dict:Benutzer-Quota::noenforcing:proxy::quota" to the command line of dovecot-ldap in my exim4.conf.
But because of performance considerations I want to use LMTP to deliver the mails. Would this nested plugin configuration work: (sorry, not at work, cannot test directly)
protocol lmtp { mail_plugins = $mail_plugins sieve plugin { quota = dict:Benutzer-Quota::noenforcing:proxy::quota } }
Grüße, Sven.
-- Sigmentation fault. Core dumped.