On Sat, Mar 10, 2001 at 05:06:42AM -0800, Todd A. Jacobs wrote:
> I applied the "permanent failure" quota patch from jhayward yesterday, and
> realized that if the qmail-start is calling "|preline procmail" the patch
> doesn't come into play. Does anyone know of a way for qmail to trap the
> procmail "quota exceeded" error, and immediately bounce the message? I'd
> like to avoid having these messages age in the queue, if possible.

Just a quick idea or two off the top of my head, but:

1. Modify procmail to exit status 100 on quota exceeded.

2. (Untested, but logically sound, methinks...) Use a shell conditional
to exit 100 on a procmail failure -- this depends on how likely other
procmail failures are, I guess -- if procmail fails for any reason, mail
will bounce.... 

Here's a slick little item from the qmail archives, that I found while
making sure I wasn't off base here:

http://www.ornl.gov/its/archives/mailing-lists/qmail/1998/04/msg00487.html

HTH,


-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
                -- John F. Kennedy

Reply via email to