Dear fellows.
I have implemented a "Bozo Filter" following the instructions of a
previous mail sent to this group. The filter works fine, it sends back the
unwanted messages but something should be wrong because the mensage sent
back bounces and at the end I get a buck of bounced emails.
Does anybody mind to look at my .procmailrc, .forward and log files?
Thanks for the help.
Roberto
---------------------------o---------------------
.forward:
"|IFS=' '; exec /usr/local/bin/procmail -Yf- #roberto"
--------------------------o----------------------
.procmailrc:
# On only when debugging
verbose=off
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.pelmas
----------------------o--------------------
rc.pelmas:
#
# This recipe checks to see if this email is "From" a known lamer (i.e.,
# Is this lamer in my "list-of-pelmas"?). If so, the email is bounced
# back via a SENDMAIL EXITCODE and the headers of the email are saved/
# GZIPped in a file so I can examine it later.
#
FROM = `formail -rzxTo:`
PELMASLIST=$PMDIR/list-of-pelmas
VERBOSE=on
:0
* ? echo "$FROM" | egrep -i -f $PELMASLIST
* ? test -r $PELMASLIST -a -s $PELMASLIST
{
EXITCODE = 77
:0h:
| gzip -fc >> $PMDIR/pelmas.gz
}
------------------o---------------------
list-of-pelmas:
roberto(_at_)indy
-------------------o------------
log:
procmail: [6846] Thu Feb 27 14:31:13 1997
procmail: Executing " echo "$FROM" | egrep -i -f $PELMASLIST"
procmail: [6846] Thu Feb 27 14:31:13 1997
procmail: Match on " echo "$FROM" | egrep -i -f $PELMASLIST"
procmail: Executing
"test,-r,/usr/people/roberto/.procmail/list-of-pelmas,-a,-s,/usr/people/roberto/.procmail/list-of-pelmas"
procmail: Match on "test -r /usr/people/roberto/.procmail/list-of-pelmas -a -s
/usr/people/roberto/.procmail/list-of-pelmas"
procmail: Assigning "EXITCODE=77"
procmail: Locking "/usr/people/roberto/.procmail/pelmas.gz.lock"
procmail: Executing " gzip -fc >> $PMDIR/pelmas.gz"
procmail: Assigning "LASTFOLDER= gzip -fc >> $PMDIR/pelmas.gz"
procmail: Unlocking "/usr/people/roberto/.procmail/pelmas.gz.lock"
From roberto(_at_)indy Thu Feb 27 14:31:13 1997
Folder: gzip -fc >> $PMDIR/pelmas.gz 510
procmail: Notified comsat: "roberto@: gzip -fc >> $PMDIR/pelmas.gz"
procmail: [6860] Thu Feb 27 14:31:19 1997
procmail: Executing " echo "$FROM" | egrep -i -f $PELMASLIST"
procmail: [6860] Thu Feb 27 14:31:19 1997
procmail: Program failure (1) of " echo "$FROM" | egrep -i -f $PELMASLIST"
procmail: No match on " echo "$FROM" | egrep -i -f $PELMASLIST"
procmail: Locking "/usr/mail/roberto.lock"
procmail: Assigning "LASTFOLDER=/usr/mail/roberto"
procmail: Opening "/usr/mail/roberto"
procmail: Acquiring kernel-lock
procmail: [6860] Thu Feb 27 14:31:20 1997
procmail: Unlocking "/usr/mail/roberto.lock"
From Thu Thu Feb 27 14:31:19 1997
Subject: Returned mail: Insufficient permission: Error 0
Folder: /usr/mail/roberto 1791
procmail: Notified comsat: "roberto(_at_)2706:/usr/mail/roberto"
--------------------------o-------------------------
bounced mail:
From MAILER-DAEMON(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es Thu Feb 27
14:32:00 1997
Received: from indy.cnb.uam.es by b12sg1.cnb.uam.es via ESMTP
(950911.SGI.8.6.12.PATCH825/920502.SGI)
for <roberto(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es> id OAA06858;
Thu, 27 Feb 1997 14:31:19 +0100
Received: from b12sg1.cnb.uam.es by indy.cnb.uam.es via ESMTP
(950911.SGI.8.6.12.PATCH825/920502.SGI)
for <roberto(_at_)indy(_dot_)cnb(_dot_)uam(_dot_)es> id OAA18862; Thu,
27 Feb 1997 14:35:39 +0100
Received: from localhost by b12sg1.cnb.uam.es via internal
(950911.SGI.8.6.12.PATCH825/920502.SGI)
id OAA06845; Thu, 27 Feb 1997 14:31:13 +0100
Date: Thu, 27 Feb 1997 14:31:13 +0100
From: Mail Delivery Subsystem
<MAILER-DAEMON(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es>
Subject: Returned mail: Insufficient permission: Error 0
Message-ID:
<199702271331(_dot_)OAA06845(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es>
To: roberto(_at_)indy
The original message was received at Thu, 27 Feb 1997 14:31:12 +0100
from indy.cnb.uam.es [150.244.12.63]
----- The following addresses had delivery problems -----
"|IFS=' '; exec /usr/local/bin/procmail -Yf- #roberto" (unrecoverable error)
(expanded from: <roberto(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es>)
----- Transcript of session follows -----
550 "|IFS=' '; exec /usr/local/bin/procmail -Yf- #roberto"... Insufficient
permission: Error 0
----- Original message follows -----
Received: from indy.cnb.uam.es by b12sg1.cnb.uam.es via ESMTP
(950911.SGI.8.6.12.PATCH825/920502.SGI)
for <roberto(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es> id OAA06844;
Thu, 27 Feb 1997 14:31:12 +0100
Return-Path: <roberto(_at_)indy(_dot_)cnb(_dot_)uam(_dot_)es>
Received: by indy.cnb.uam.es (950911.SGI.8.6.12.PATCH825/920502.SGI)
for roberto(_at_)b12sg1 id OAA18859; Thu, 27 Feb 1997 14:35:28 +0100
Date: Thu, 27 Feb 1997 14:35:28 +0100
From: roberto(_at_)indy(_dot_)cnb(_dot_)uam(_dot_)es (Roberto Marabini)
Message-Id: <199702271335(_dot_)OAA18859(_at_)indy(_dot_)cnb(_dot_)uam(_dot_)es>
Apparently-To: roberto(_at_)b12sg1(_dot_)cnb(_dot_)uam(_dot_)es
This is a mail message