On Mon, 15 Sep 2003, J. Kendzorra wrote:

> Hi,
> in the archives I found a few, unanswered messages from people (like me)
> using maildrop and not vdelivermail to get messages delivered.
> The (well known?) problem is that the maildirsize file doesn't get
> updated after making quota changes via vqadmin/vsetuserquota.
> Is there any new solution for this problem or can't it be solved?
It can be solved, but it's not too efficient.  If you're running maildrop,
someone posted this solution on the list a few weeks ago:

# Make sure the quota file is in place.
# Vpopmail does not create it by default.
# Vpopmail also removes it when you change the quota.

`test -s "$HOME/Maildir/maildirsize"`
if ( $RETURNCODE == 1 )
{
        `~vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED]
        `/usr/sbin/chown vpopmail:vchkpw $VDIR/Maildir/maildirsize`
        `chmod 640 $VDIR/Maildir/maildirsize`
}

I'd credit this if I could remember who posted it.  Tested it here, and it
works fine.

Charles


> Thanks,
> Juergen
>
>
>

Reply via email to