procmail
[Top] [All Lists]

Piping is not working properly

1998-05-27 20:55:48

Hi,
        I have the following recipe setup for spam:

CONDITIONS
{
        :0ci:
        | /usr/lib/sendmail $FROM < /home/hurricane/tomko/spammers.txt

        :0ci:spammers.dat.lock
        | echo $FROM >> /usr1/digirati/www.tomkoinc.com/spammers.dat

        :0:
        spam
}

The idea being to throw an email back at them complaining about the
spam, write the sender into a killfile and throw the letter into
the spam folder (later /dev/null).

However, it is not sending the e-mail, nor is it writing to the
killfile, it just plunks the e-mail into the spam folder. Here
is the detailed logfile entry for a sample spam:

procmail: Couldn't determine implicit lockfile from " /usr/lib/sendmail
$FROM </home/hurricane/tomko/spammers.txt"
procmail: Locking ".lock"
procmail: Executing " /usr/lib/sendmail $FROM <
/home/hurricane/tomko/spammers.txt"
procmail: Assigning "LASTFOLDER= /usr/lib/sendmail $FROM <
/home/hurricane/tomko/spammers.txt"
procmail: Unlocking ".lock"
procmail: Locking "spammers.dat.lock"
procmail: Executing " echo $FROM >>
/usr1/digirati/www.tomkoinc.com/spammers.dat"
procmail: Assigning "LASTFOLDER= echo $FROM >> 
  /usr1/digirati/www.tomkoinc.com/spammers.dat"
procmail: Unlocking "spammers.dat.lock"
procmail: Locking "spam.lock"
procmail: Assigning "LASTFOLDER=spam"
procmail: Opening "spam"
procmail: Acquiring kernel-lock
procmail: Unlocking "spam.lock"
From tomko(_at_)xnet(_dot_)com  Wed May 27 22:37:31 1998
 Subject: Blah!
  Folder: spam
543
procmail: Notified comsat: "tomko(_at_)0:/home/hurricane/tomko/mail/spam"

Any ideas?
Thanks,
        Paul

| Paul Tomko                     | P.O. Box 1382               |
| President                      | Bolingbrook, Illinois 60440 |
| Tomko Consulting, Incorporated | (630) 759-8799              |
| tomko(_at_)xnet(_dot_)com                 | http://www.tomkoinc.com     |

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