Muhammad Naeem wrote:
Now there is another issue and that is lets suppose that i have a user
whose mailbox size is 1MB and if i send a test email to that account
containing an attachment of 1.5MB means more than the size of its
mailbox the mail gets deferred and stuck in the qmail queue and qmail
logs it:

2006-02-18 11:15:00.290014500 delivery 7: deferral:
user_is_over_quota//usr/local/bin/maildrop:_Unable_to_open_mailbox./

what i want is to return this oversize email to sender immediately
with a message like "user is over quota"

I don't know how to implement this, i will be obliged if you can help
me out in this regard.


Hi,

You can use the CHKUSER_MBXQUOTA variable. Example below

:allow,QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER_MBXQUOTA="97"


Regards,

Rick

Reply via email to