OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Problem with virtual quota bouncebacks

From: Wietse Venema (wietseporcupine.org)
Date: Thu Nov 01 2007 - 10:14:56 CDT


Mike McDermott:
> Have looked all over for a solution to this problem, hoping somebody could
> help me with it.
>
> I have a postfix/courier/maildrop setup with virtual mailboxes with quotas.
> The quotas appear to work fine. However, postfix is not sending a bounceback
> email, and maildrop is reporting TMPFAIL when a user is over quota. Postfix
> then appears to be queuing the message for delivery at a later date when
> there is free space. I don't mind this functionality, but I must have a
> bounceback.

Then do whatever is needed so that maildrop returns a PERMANENT
error status to Postfix.

This is not a Postfix problem.

If maildrop can't be coerced to report a PERMANENT for over-quota
users, you can work around this outside of Postfix by calling
maildrop indirectly via another program. This program examines
maildrop stdout/stderr output, recognizes the "over quota" message,
and changes the exit status into EX_UNAVAILABLE or something else
that is suitable.

        Wietse