On Tue, Mar 09, 2004 at 06:26:04PM +0100, Vicente Aguilar wrote:
> Hi again
> 
> Another quota-related question. Take it with a grain of salt, as I
> haven't worked directly on this problem so I don't have much data
> (sorry).
> 
> A co-worker told me he has received calls from some of our users, who
> said they were receiving the "quota warning" message while their account
> was empty. In these occasions he went to each user's maildir directory,
> took a look (du, find, ls, etc) and saw that the user was right and had
> no mails there. Then he took a look at the maildirsize file on the
> user's folder and it looked like this on our 50Mb-1000msg-quota setup:
> 
> 50000000S,1000C
> 50000049 (or whatever, bigger than 50Mb) 499 ( < 1000)
> 
> On every occasion, he guessed that there was something wrong with this
> file, deleted it, and everything started working again (and the
> maildirsize was re-generated automatically with correct values).  My
> co-worker told me he has had to do this several times since we enabled
> the quotas on our server a couple of weeks ago.
> 
> Again, I haven't personally received any complains from our users
> regarding this problem, and as my co-worker has deleted the maildirsize
> on every call I can't give you more info on the problem...
> 
> So, here goes the question:
> 
> Which processes access/update/read this maildirsize file? When? In which
> order? What do each one of them do with it? Which process is to blame in
> here? Where can I look at for more info on this?
> 
> We're running qmail-ldap 20031101a, the pop3 server which comes with
> qmail and Courier IMAP 1.4.3-2.3 (from Debian Woody).
> 

Hmm, somewhat funny. Normaly courier-imap should remove the messages upon
deletion. Do you quota the trash too?
Removing the maildirsize file is absolutly ok to fix this issue fast.

Now maildir++ qutotas are somewhat strange. First of all they are not
fully accurate. Second if the limit is hit the first time the quota is
recalculated. Third if the limit is hit and the file is only two lines
long no recalculation is done unless the file is older than 15min -- at
least I think it was 15min. 4. if the client (imap) does not support the
quota, the quota will get inaccurate in no time.

All in all it is possible to remove all files and still be over the quota.
So next time try to check the timestamps and have a look at some
maildirsize files. Normally you should see lines like
3400 1
-3400 -1
in the file. File gets added and later deleted.

-- 
:wq Claudio

Reply via email to