this script checks the user quota and returns code that makes /etc/procmailrc refuse email if too close to quota and makes procmail exit with an error code that makes postfix bounce hte email back to the sender...
you forgot about soft quotas + grace period...
so if my user has hit 110% of soft quota (has no hard quota) but has 1 week left to go below 100% before we enforce it... i dont want virtualmin to be denying his emails.
this needs to be fixed so it allow email while still in grace period of soft quota
- user/group has reached hard quota? deny the email. has no hard quota? check #2.
- user/group has reached soft quota, and grace period is expired, deny the email.
- user/group has reqched soft quota, but still has grace period left, allow the email.
failure to do this made me almost crazy until i figured out why email bounced even tho my soft quota grace period was not expired yet :O