On Nov 15, 5:26pm -0600, Philip Guenther <guenther(_at_)gac(_dot_)edu> wrote:
bodysurf(_at_)netcom(_dot_)com (Tim) writes:
I am having trouble getting one of my recipes to work. It doesn't seem
to bounce the email (as I would expect it to). Here's the recipe:
:0
* ^From.*looney
{ EXITCODE=77 HOST }
...
which doesn't work either. The problem is is that the sender (<looney>)
never gets a message back saying that the email was rejected on EITHER
How is procmail being invoked? If invoked from your .forward file,
and the command line ends with "|| exit 75", such as in:
"|IFS=' ' && /usr/local/bin/procmail -Yf- || exit 75"
Then any failure to deliver will result in sendmail sending an exitcode
of 75. Remove the "|| exit 75" bit, and try again.
-- End of excerpt from guenther(_at_)gac(_dot_)edu
This is interesting. Recipes which set EXITCODE work fine for me, even
though I do have the "|| exit 75" in my .forward. For example, I can
set EXITCODE=67 and get the following.
But why does this work? Philip appears to be correct that a 75 would
always be returned. But it is clear from the "User unknown" error
message that 67 is really being returned!
== Bob
--- Forwarded mail from Mail Delivery Subsystem
<MAILER-DAEMON(_at_)best(_dot_)com>
Date: Fri, 15 Nov 1996 16:31:33 -0800 (PST)
From: Mail Delivery Subsystem <MAILER-DAEMON(_at_)best(_dot_)com>
Subject: Returned mail: User unknown
To: <bobw(_at_)lore(_dot_)kla(_dot_)com>
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--QAA14311.848104293/shellx.best.com
The original message was received at Fri, 15 Nov 1996 16:29:41 -0800 (PST)
from root(_at_)proxy1(_dot_)ba(_dot_)best(_dot_)com [206.184.139.12]
----- The following addresses had permanent fatal errors -----
"|IFS=' ' && exec /usr/local/bin/procmail -tY || exit 75 #baychi"
(expanded from: <baychi(_at_)shellx(_dot_)best(_dot_)com>)
----- Transcript of session follows -----
550 "|IFS=' ' && exec /usr/local/bin/procmail -tY || exit 75 #baychi"... User
unknown