Sergio Ferreira said:
I finished my quota configuration and now I am wondering how to do
maildrop send a warning message to the sender, about the temporarily
problem, and to the maildir owner, about the overquota.
Another doubt is when the Maildir reachs its limit there is a way of this
message, that cause overquota bounce, to be send back to the sender?
These
bounced messages are remaining in Postfix queue and I want It, if
possible, happen.
maildrop has a -w parameter. Calling "maildrop -w 90" instead of just
maildrop will send the user a warning each time a message is delivered and
the quota is between 90 and 100 percent. It *will not* send a warning
once the quota is exceeded, nor will a warning be sent if the message
exceeds quota. So you should set the warning percentage to start warning
users once they are within a few megabytes their quota + max message
delivery size.
There is no function to notify admins, however accomplishing something
like this with shell scripts is not difficult.
Jay