procmail
[Top] [All Lists]

Re: EXITCODE/HOST problem

1996-11-16 03:18:14
At 05:26 PM 11/15/96 -0600, you 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 
recipe (I didn't provide a LOGFILE for the second recipe, but can 
generate one if someone thinks that would help).  Anyone tell me what 
stupid mistake I am making :^)?


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.

Thanks Phillip, that did it BUT the bounced message looks like this:

Return-Path: <looney>
Received: (from looney(_at_)localhost) by netcom11.netcom.com (8.6.13/Netcom)
      id CAA20437; Sat, 16 Nov 1996 02:08:47 -0800
From: looney (Looney)
Message-Id: <199611161008(_dot_)CAA20437(_at_)netcom11(_dot_)netcom(_dot_)com>
Subject: Returned mail: Insufficient permission: Error 0 (fwd)
To: bodysurf (Tim)
Date: Sat, 16 Nov 1996 02:08:47 -0800 (PST)
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2034      
Status: RO

Forwarded message:
From Mailer-Daemon  Sat Nov 16 02:07:45 1996
Date: Sat, 16 Nov 1996 02:07:45 -0800
From: Mailer-Daemon (Mail Delivery Subsystem)
Subject: Returned mail: Insufficient permission: Error 0
Message-Id: <199611161007(_dot_)CAA20367(_at_)netcom11(_dot_)netcom(_dot_)com>
To: looney

The original message was received at Sat, 16 Nov 1996 02:07:44 -0800
from looney(_at_)localhost

  ----- The following addresses had delivery problems -----
"|IFS=' ' && /usr/local/nuglops/bin/procmail -Yf-"  (unrecoverable error)
   (expanded from: bodysurf(_at_)netcom(_dot_)com)

  ----- Transcript of session follows -----
procmail: [20369] Sat Nov 16 02:07:44 1996
procmail: Assigning "NORESRETRY=100"
procmail: Assigning
"PATH=/u5/bodysurf/Bin:/usr/local/nuglops/bin:/bin:/usr/ucb:/usr/local/bin"
procmail: Assigning "MAILDIR=/u5/bodysurf/Mail"
procmail: Assigning "PMDIR=/u5/bodysurf/.procmail"
procmail: Executing "test,-x,/usr/local/nuglops/bin/formail"
procmail: [20369] Sat Nov 16 02:07:45 1996
procmail: Match on "test -x /usr/local/nuglops/bin/formail"
procmail: Assigning "FORMAIL=/usr/local/nuglops/bin/formail"
procmail: Assigning "BOUNCE=Thy email refused; returned unread."
procmail: Assigning "EGREP=/u5/bodysurf/Bin/grep"
procmail: Executing "/usr/local/nuglops/bin/formail,-rt,-xTo:"
procmail: Assigning "FROM= looney"
procmail: Assigning "LINEBUF=50000"
procmail: Assigning "LOGFILE=/u5/bodysurf/.procmail/log"
procmail: Opening "/u5/bodysurf/.procmail/log"
550 "|IFS=' ' && /usr/local/nuglops/bin/procmail -Yf-"... Insufficient
permission: Error 0

  ----- Original message follows -----
Return-Path: <looney>
Received: (from looney(_at_)localhost) by netcom11.netcom.com (8.6.13/Netcom)
      id CAA20364; Sat, 16 Nov 1996 02:07:44 -0800
From: looney (Looney)
Message-Id: <199611161007(_dot_)CAA20364(_at_)netcom11(_dot_)netcom(_dot_)com>
Subject: TEST
To: bodysurf(_at_)netcom(_dot_)com
Date: Sat, 16 Nov 1996 02:07:44 -0800 (PST)
X-Mailer: ELM [version 2.4 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 6         

Test



Towards the middle it prints out all that information from my LOGFILE
(under "Transcipt of session follows").  I don't like that.  It lets these
idiots know what's in my PROCMAILRC file AND it tells them I am using
PROCMAIL to bounce their message.  I was under the impression using this
EXITCODE would "fool" these people into thinking the email address didn't
exist.  Maybe I'm asking for too much.  I could always go back to using the
manual bounce message.  Any more suggestions anyone?

<Prev in Thread] Current Thread [Next in Thread>