After reading the dbmail manual i have a few suggestions.
DBMail shouldn't actually bounce a message if it has lost the connection
with the database (such as during a reboot of the dbserver)..
It should send an error code back to the MTA with a softerror so that
the MTA can put the message back in the queue and retry to contact
dbmail-smtp a little bit later.
Maybe something similar should be implementet for the quota bounce.
One suggestion would be.
1. New incomming email that will exceed the quota.
2. Dbmail sends a softerror/retrylater to the MTA and puts a small
warning message in the inbox.
3. It continues to do this until a configurable timeperiod has passed.
4. After the timeperiod has passed it should return to bouncing the
messages.
The warning message could be something like
"As of 2002-xx-xx HH:mm you have exceeded you quota limitations and
therefore incoming messages will be held back.
You need to clean up your folders before 2002-xx-xx HH:mm to prevent
loss of email."
Maybe these features are already added to dbmail and if they are I'm
sorry i read an old version of the manual.
If they are not. Please consider them in a future release om dbmail.
Thank you
/Fredrik