Mr Sam,
I have switched over to maildrop instead of vdelivermail, by calling it
from .qmail-default for all my domains. Everything looked good for a few days,
until I see the problem occuring with one of the users that had the same
problem before with vdelivermail.
So I ran a shell script that removes any maildirsize file with negatives in
it, then recreate the maildirsize file for that user by running "vuserinfo -Q
[EMAIL PROTECTED]" and setting the chown/chgrp vpopmail/vchkpw on the maildirsize
file. Just in case some bad stuff stayed around..
Few days, and the problem happens to another account. There is 1.1MB in
user/Maildir, his trash is only few kb, but getquota ROOT on courierimap
reports -ve value.
I sent that user a message, and the -ve value decreased (got closer to zero).
So now I removed all maildirsize files, and recreated it for each user on the
system.
I am running out of thoughts here. If this happens again I am going to pull my
hair out :(
below is a copy of my .qmail-default, and mailfilter
I know the two execs for the mailfilter is very bad, and it's got to be
changed. But I'd like to not set MAILDIRQUOTA=value in each user's mailfilter
and call maildrop from each user's .qmail file, or set a default
MAILDIRQUOTA=value for all users in a domain.
Respectfully,
Tim Hasson
.qmail-default
----------------
| /usr/local/bin/maildrop mailfilter
mailfilter
-----------
SHELL="/bin/sh"
import EXT
import HOST
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
`test -d $VHOME/Maildir`
if ( $RETURNCODE == 1 )
{
echo "Sorry, no mailbox here by that name. (#5.1.1)"
EXITCODE=100
exit
}
# Make sure the quota file is in place.
# maildrop does not create it if it doesnt exist
# Vpopmail also removes it when you change the quota with vsetuserquota
`test -s "$VHOME/Maildir/maildirsize"`
if ( $RETURNCODE == 1 )
{
`/home/vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED]
`test -s "$VHOME/Maildir/maildirsize"`
if ( $RETURNCODE == 0 )
{
`/usr/sbin/chown vpopmail:vchkpw $VHOME/Maildir/maildirsize`
`/bin/chmod 640 $VHOME/Maildir/maildirsize`
}
}
# Default delivery
exception {
to "$VHOME/Maildir/"
}