Dear MrSam,

Thanks for all your help, and my apologies if this turns out not to be a 
courier related problem.

I patched qmail-local with maildir++ patch from billshupp.org.
Then I ran my little shell script which removed all maildirsize files with 
negated values in them.

Everything worked fine since then, until one of our users called today, 
complaining her quota is no longer reporting valid values (In our case the 
webmail reports "You have unlimited quota" or some totally random results.

the maildirsize in that particular user's Maildir looks like this:

10000000S
4456505 473
-2429946  -22
    4243    1
173151 1
169837 1
1439 1
    1771    1
  -13912   -1
  -46605   -1
   -4832   -1
    4832    1
   -1221   -1
  175459    1
 -175459   -1
  -15295   -1
   -3574   -1
   -8113   -1
    3587    1
   -3587   -1
    2930    1
   -6633   -1
  -13075   -1
   -1627   -1
    1206    1
    1266    1
   29230    1
    1651    1
   29595    1
3743 1
2737 1
    2737    1
   -2737   -1
   -3743   -1
   -3351   -2
 -570268   -3
    1333    1
52949 1
-1893017  -10
 -173151   -1
 -169837   -1
    2397    1
   -2397   -1
 -921818   -1
  -52949   -1
  355316    1
 -355316   -1
   18538    1
  -18538   -1
    2471    1
   -2471   -1
44559 1
  -45631   -3
   44559    1
  -44559   -1
  -29714   -1
    1449    1

Simulating a login to the courier-imap server:

# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.aidasystems.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-
2003 Double Precision, Inc.  See COPYING for distribution information.

a login [EMAIL PROTECTED] somepass
a getquota ROOT
* QUOTA "ROOT" (STORAGE -1389 9766)
a OK GETQUOTA Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed


Running /home/vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED] (the same user 
who's having the problem) reports:
quota:     10000000
usage:     0%
last auth: Tue Sep 16 15:22:40 2003
last auth ip: imap

Although dishusage shows otherwise:
# pwd
/home/vpopmail/domains/somedomain.com/myuser/Maildir
# ls
courierimapsubscribed  courierimapuiddb  cur  maildirsize  new  tmp
# du -sh .
8.1M    .
# du -s .
8284    .


I am running courier-imap 2.0.0 (imapd and pop3d), Vpopmail 5.3.2-Stable, 
Qmail-1.03 (qmail-local patched with Bill Shupp's qmaildir++ patch)

Although I am also using maildrop (compiled with quota support) for filtering, 
it's not in use for that particular user's domain at all. Maildrop is only 
used on one domain, and invoked from .qmail-default directly for only that 
domain.

This problem only started happening after migration to the new cluster which 
is composed of 2 real servers running the above mentioned software, and two 
failover NFS server (linux unfortunately) which hold the 
entire /home/vpopmail/domains which is mounted on the freebsd servers (the 
real servers) which are running the pop/imap toasters.

The only difference between the old mail server and the new real servers is we 
were running courier 1.6.2 or 1.6.4 and now we are running 2.0.0. Although I 
am not sure if that's relevant.

Please advise...

Respectfully,
Tim Hasson



Quoting Sam Varshavchik <[EMAIL PROTECTED]>:

> Tim Hasson writes:
> 
> > Also, nothing other than vdelivermail, maildrop, and qmail-local delivers
> to 
> > those Maildirs. I am 100% sure of that =)
> 
> Mail delivered by qmail-local is not going to be added to the current quota.
> 
> Subsequently, when those messages are removed, their sizes will be 
> subtracted from the quota.
> 
> And that's how you get negative quotas.
> 
> 


Reply via email to