I am having a problem figuring out how to do something, and am needing some help. We use maildrop/qmail/vpopmail and are recently enabling quotas. Each of my vpopmail domains has a .qmailfile that just as:

|/usr/bin/maildrop ./.mailfilter

Then I have a .mailfilter file with:

SHELL=/bin/bash
VHOME=`/home/cust/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
VPOP="| /home/cust/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
logfile "./messagelog"

exception {
include $VHOME/.mailfilter
}

exception {
to "$VHOME/Maildir/."
}

to "$VPOP"


The problem is. Imagine that a user has a quota, and is over quota. So the first 2 exceptions won't deliver the mail (user is over quota), but when we get to the end, we come to the rule to "$VPOP", which is designed so that if the user doesn't exist, it will just bounce it. In the case of the over quota user however, the user DOES exist, so this will actually deliver the mail using vdelivermail, which bypasses the entire Maildir quota mechinism. How could I change it so that I can still bounce unknown addresses, but not allow vdelivermail to deliver to actual users who are over quota?
---------------------------------------------
Brian Feeny, CCIE #8036, CISSP
Network Engineer
ShreveNet Inc.

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to