[Dovecot] Update from 1.0.10 -> 1.1rc1: quota warning not working anymore
from dovecot -n:
plugin: fts: squat quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=10%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=5%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=1%% /usr/local/scripts/quota-warning 99 trash: /usr/local/etc/dovecot-trash.conf
The quota warning that used to work in 1.0.10 (with the quota_warning patch!) doesn't work in 1.1rc1 -- I get rejections due to users being over quota, but not a single user gets a warning.
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de The C Programming Language - A language which combines the flexibility of assembly language with the power of assembly language.
On Tue, 2008-02-26 at 10:08 +0100, Ralf Hildebrandt wrote:
quota_warning: storage=10%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=5%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=1%% /usr/local/scripts/quota-warning 99
In your previous mail you asked about inverted quota values. So you didn't use them after all? I think they're correct in wiki and the reason these didn't work is because your users had always used over 10% of quota.
- Timo Sirainen tss@iki.fi:
On Tue, 2008-02-26 at 10:08 +0100, Ralf Hildebrandt wrote:
quota_warning: storage=10%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=5%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=1%% /usr/local/scripts/quota-warning 99
In your previous mail you asked about inverted quota values.
I tried both. I don't get any quota warnings at all.
So you didn't use them after all? I think they're correct in wiki and the reason these didn't work is because your users had always used over 10% of quota.
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Your mantra for today is: Don't let data from the network near a shell. Bad things happen. -- Randall Schwartz
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
Scuse me but....quota_warning is a patch to apply or is included in some new dovecot version?
- Mauro Sanna mauro.sanna@comune.cagliari.it:
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
Scuse me but....quota_warning is a patch to apply
for 1.0
or is included in some new dovecot version?
it is included in 1.1
--
Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
#!/bin/sh
cat <
On Tue, 2008-02-26 at 13:37 +0100, Ralf Hildebrandt wrote:
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
Aren't there other quota rules? You've here specified that Trash mailbox has 100MB quota, but other mailboxes don't have any. Or do you get a quota_rule2 from userdb?
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
Aren't there other quota rules? You've here specified that Trash mailbox has 100MB quota, but other mailboxes don't have any. Or do you get a quota_rule2 from userdb?
I thought the rest would be fetched from $HOME/Maildir/maildirsize!! Initially I set:
quota_rule: *:storage=500M
but that would override the settings SOME users had in their HOME/Maildir/maildirsize.
So what is the correct solution for:
- maildir++
- users have 500M usually
- except I manually edit their HOME/Maildir/maildirsize
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de The Tao that is seen Is not the true Tao-until You bring fresh toner.
On Tue, 2008-02-26 at 14:05 +0100, Ralf Hildebrandt wrote:
Using: quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 now :)
Aren't there other quota rules? You've here specified that Trash mailbox has 100MB quota, but other mailboxes don't have any. Or do you get a quota_rule2 from userdb?
I thought the rest would be fetched from $HOME/Maildir/maildirsize!!
Now that I looked at the code, surprisingly it does. :) But this is also the reason why the quota warnings don't work. They calculate the percentage from the quota_rule=* line. Since it doesn't exist, those are all calculated to storage=0. I'll see if I can do something about it.
- users have 500M usually
- except I manually edit their HOME/Maildir/maildirsize
This isn't possible currently. There's no way to define "use maildirsize, but use a default if it doesn't exist". Creating the file with post-login scripting would be one possibility. But I'll see if I can do something about this as well.
- Timo Sirainen tss@iki.fi:
I thought the rest would be fetched from $HOME/Maildir/maildirsize!!
Now that I looked at the code, surprisingly it does. :)
Hussa! (because THAT part works)
But this is also the reason why the quota warnings don't work.
<sniff>
They calculate the percentage from the quota_rule=* line. Since it doesn't exist, those are all calculated to storage=0. I'll see if I can do something about it.
That would be cool, because it worked with 1.0.10 :)
- users have 500M usually
- except I manually edit their HOME/Maildir/maildirsize
This isn't possible currently. There's no way to define "use maildirsize, but use a default if it doesn't exist". Creating the file with post-login scripting would be one possibility. But I'll see if I can do something about this as well.
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de You can lead an idiot to knowledge but you cannot make him think. You can, however, rectally insert the information, printed on stone tablets, using a sharpened poker.
On Tue, 2008-02-26 at 14:23 +0100, Ralf Hildebrandt wrote:
- Timo Sirainen tss@iki.fi:
I thought the rest would be fetched from $HOME/Maildir/maildirsize!!
Now that I looked at the code, surprisingly it does. :)
Hussa! (because THAT part works)
But this is also the reason why the quota warnings don't work.
<sniff>
Pretty big change, hopefully didn't break anything:
- Timo Sirainen tss@iki.fi:
<sniff>
Pretty big change, hopefully didn't break anything:
You Da Man!
Feb 26 15:51:18 postamt quota-warning: invoked Feb 26 15:51:18 postamt quota-warning(ayahyaza) 95%: delivered
:)
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Offenbar ist es wie in der römischen Legion: Desto besser die externen Mitarbeiter, desto schlechter die interne IT!
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
- Timo Sirainen tss@iki.fi:
<sniff>
Pretty big change, hopefully didn't break anything:
You Da Man!
Feb 26 15:51:18 postamt quota-warning: invoked Feb 26 15:51:18 postamt quota-warning(ayahyaza) 95%: delivered
:)
Well, almost. The perpetrator gets too many warnings:
Feb 26 20:02:13 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052533.25022.postamt.charite.de,S=2084 Feb 26 20:02:54 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052574.25530.postamt.charite.de,S=2084 Feb 26 20:03:20 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052600.25692.postamt.charite.de,S=2084 Feb 26 20:04:21 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052661.26195.postamt.charite.de,S=2084 Feb 26 20:04:28 postamt quota-warning(fknebel) 90%: delivered to /home/f/k/fknebel/Maildir/new/1204052668.26227.postamt.charite.de,S=2084 Feb 26 20:06:06 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052766.26898.postamt.charite.de,S=2084 Feb 26 20:06:25 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052785.27103.postamt.charite.de,S=2084 Feb 26 20:06:52 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052812.27272.postamt.charite.de,S=2084 Feb 26 20:06:56 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052816.27301.postamt.charite.de,S=2084
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Sendmail: Shiva as a postman. Many arms delivering mail, dancing, taking drugs, destroying as it sees fit. Often makes creative changes to the mail for kicks, but ultimately can be persuaded to do anything with the right incantation...and that includes giving you other people's mail.
On Tue, 2008-02-26 at 21:45 +0100, Ralf Hildebrandt wrote:
Well, almost. The perpetrator gets too many warnings:
Feb 26 20:02:13 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052533.25022.postamt.charite.de,S=2084 Feb 26 20:02:54 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052574.25530.postamt.charite.de,S=2084
Were there any expunges between these saves? It's supposed to work so that when the limit grows from under warning to over warning it executes it, no matter when the previous warning was called.
- Timo Sirainen tss@iki.fi:
On Tue, 2008-02-26 at 21:45 +0100, Ralf Hildebrandt wrote:
Well, almost. The perpetrator gets too many warnings:
Feb 26 20:02:13 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052533.25022.postamt.charite.de,S=2084 Feb 26 20:02:54 postamt quota-warning(pwerner) 95%: delivered to /home/p/w/pwerner/Maildir/new/1204052574.25530.postamt.charite.de,S=2084
Were there any expunges between these saves?
Yes.
It's supposed to work so that when the limit grows from under warning to over warning it executes it, no matter when the previous warning was called.
OK
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de "Mac users swear by their Mac, PC users swear at their PC."
On Tue, 2008-02-26 at 14:05 +0100, Ralf Hildebrandt wrote:
- users have 500M usually
- except I manually edit their HOME/Maildir/maildirsize
quota_rule = ?:storage=500M
participants (3)
-
Mauro Sanna
-
Ralf Hildebrandt
-
Timo Sirainen