[Dovecot] Quota not being dispayed correctly in 1.2rc2 (with proof)
User reports: 0% of 640MB -- which cannot be true. I logged in as masteruser and was able to confirm this. I'm getting "0.0% von 640.0MB" == "0.0% of 640.0MB"
His maildirsize file is attached. His mailbox is nearly full.
Manual login:
# telnet localhost 143 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'.
- OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. . LOGIN user*masteruser topsecretpassword . OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH QUOTA] Logged in . SELECT INBOX
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 3261 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1179137269] UIDs valid
- OK [UIDNEXT 8900] Predicted next UID
- OK [HIGHESTMODSEQ 1] . OK [READ-WRITE] Select completed. . GETQUOTA ""
- QUOTA "" (STORAGE 0 655360) . OK Getquota completed.
WTF?
-- Ralf Hildebrandt Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.computerbeschimpfung.de If you spend more on coffee than on IT security, then you will be hacked -- what's more, you deserve to be hacked.
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
User reports: 0% of 640MB -- which cannot be true. I logged in as masteruser and was able to confirm this. I'm getting "0.0% von 640.0MB" == "0.0% of 640.0MB"
His maildirsize file is attached. His mailbox is nearly full.
Further investigation showed that his maildirsize file doesn't get updated at all. I set him several short mails, yet the output of
% wc Maildir/maildirsize 206 411 1775 Maildir/maildirsize
stays the same
I then truncated his Maildir/maildirsize to one line and after that it would accept changes again (it gets appended to)
-- Ralf Hildebrandt Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.computerbeschimpfung.de "Mosaic is the 1990's equivalent of forcing friends to sit through slides of your trip to Florida - painful for everyone but the host." -Steve G. Steinberg
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
Further investigation showed that his maildirsize file doesn't get updated at all. I set him several short mails, yet the output of
% wc Maildir/maildirsize 206 411 1775 Maildir/maildirsize
stays the same
I then truncated his Maildir/maildirsize to one line and after that it would accept changes again (it gets appended to)
Now I sent him lots of tiny mails,, and his Maildir/maildirsize grows up until we reach:
# wc Maildir/maildirsize 853 1705 5123 Maildir/maildirsize
and that's it. After that, nothing happens. Mail gets delivered OK, but now recalculation takes place. Maildir/maildirsize does neither grow nor shrink.
-- Ralf Hildebrandt Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.computerbeschimpfung.de "The words 'Microsoft' and 'trust' only really seem to fit together with the help of an 'anti' somewhere in the middle. I find it somewhat odd therefore, to find this particular company proposing the development of a 'trusted computer platform'. Trusted by whom? Not by me, that's for sure." http://www.notcpa.org
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
Further investigation showed that his maildirsize file doesn't get updated at all. I set him several short mails, yet the output of
% wc Maildir/maildirsize 206 411 1775 Maildir/maildirsize
stays the same
I then truncated his Maildir/maildirsize to one line and after that it would accept changes again (it gets appended to)
Now I sent him lots of tiny mails,, and his Maildir/maildirsize grows up until we reach:
# wc Maildir/maildirsize 853 1705 5123 Maildir/maildirsize
and that's it. After that, nothing happens. Mail gets delivered OK, but now recalculation takes place. Maildir/maildirsize does neither grow nor shrink.
I had a look around and found some more: postamt:/home# find . -mindepth 5 -maxdepth 5 -name maildirsize -size +5k ./l/l/llxxzner/Maildir/maildirsize ./l/d/ldxxbrit/Maildir/maildirsize ./l/w/lwxxnski/Maildir/maildirsize ./l/i/lix/Maildir/maildirsize ./l/i/lixxe/Maildir/maildirsize ./l/h/lhxx/Maildir/maildirsize ./l/n/lnxxb/Maildir/maildirsize ./l/g/lgxxaf/Maildir/maildirsize ./l/g/lgxxnthe/Maildir/maildirsize ./l/g/lgxxten/Maildir/maildirsize ./l/k/lkxxhler/Maildir/maildirsize ./l/o/loxx/Maildir/maildirsize ./l/s/lsxxzepa/Maildir/maildirsize ./l/s/lsxxlter/Maildir/maildirsize ./l/e/lexxelha/Maildir/maildirsize ./l/e/lexxegel/Maildir/maildirsize ...
-- Ralf Hildebrandt Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.computerbeschimpfung.de NT: Insert wallet into drive A: and press any key to empty.
Ralf Hildebrandt schrieb:
- Ralf Hildebrandt Ralf.Hildebrandt@charite.de:
User reports: 0% of 640MB -- which cannot be true. I logged in as masteruser and was able to confirm this. I'm getting "0.0% von 640.0MB" == "0.0% of 640.0MB"
His maildirsize file is attached. His mailbox is nearly full.
Further investigation showed that his maildirsize file doesn't get updated at all. I set him several short mails, yet the output of
% wc Maildir/maildirsize 206 411 1775 Maildir/maildirsize
stays the same
I then truncated his Maildir/maildirsize to one line and after that it would accept changes again (it gets appended to)
Hi Ralf, just for info with earlier versions of 1.2 on my testserver using quota with mysql dict i dont noticed any problems with quota configured like here http://wiki.dovecot.org/Quota/Dict ( section 1.2 )
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Fri, 2009-04-17 at 10:11 +0200, Ralf Hildebrandt wrote:
User reports: 0% of 640MB -- which cannot be true. I logged in as masteruser and was able to confirm this. I'm getting "0.0% von 640.0MB" == "0.0% of 640.0MB"
His maildirsize file is attached. His mailbox is nearly full.
participants (3)
-
Ralf Hildebrandt
-
Robert Schetterer
-
Timo Sirainen