Well, David... It works from the command line when I cat this message into it:
================================
From
jgilils@imcingular.com Thu Jul 3 17:40:17 2003
Return-Path: <jgilils@imcingular.com>
Received: from mailrelay1.bellsouthips.com (mailrelay1.bellsouthips.com
[198.138.100.110] (may be forged))
by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h63MeGh5013563
for <eanon@secure800.com>; Thu, 3 Jul 2003 17:40:16 -0500
Received: from gleam.imcingular.com (gleam [198.138.100.75])
by mailrelay1.bellsouthips.com (8.11.7+Sun/8.9.1) with ESMTP id
h63MfIW09120
for <eanon@secure800.com>; Thu, 3 Jul 2003 18:41:18 -0400 (EDT)
Received: (root@localhost) by gleam.imcingular.com (8.8.8/SCA-6.6)
id SAA19146; Thu, 3 Jul 2003 18:41:22 -0400 (EDT)
From: <jgilils@imcingular.com> (JERRY GILELS)
To:
eanon@secure800.com
Subject: Hahahahah
Urgent: Y
Message-Id: <15332076.1556898930@imcingular.com>
Date: Thu, 03 Jul 2003 18:41:22 -0400
To:jjgilels@earthlink.net
Hahahahahaha.
Ahahahahahahaha.
================================
But, when I either create an alias of
eanon: /home/eanon/eanon.pl
or implement a .procmailrc of
LOGFILE=procmail.log
VERBOSE=yes
SENDMAIL=/usr/sbin/sendmail
:0 :
* !^FROM_DAEMON
* $!^X-Loop: eanon@(secure800.com|telequery.net)
* $ ^From
jgil.ls@imcingular.com
| eanon.pl
it doesn't work and gives me a line 3 syntax error message in the procmail.log:
procmail: [13565] Thu Jul 3 17:40:17 2003
procmail: Assigning "SENDMAIL=/usr/sbin/sendmail"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(F
rom|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemo
n|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp) |echo|mirro
r|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]
*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: eanon@(secure800.com|telequery.net)"
procmail: Match on "^From
jgil.ls@imcingular.com"
procmail: Couldn't determine implicit lockfile from "eanon.pl"
procmail: Locking ".lock"
procmail: Executing "eanon.pl"
eanon.pl: line 3: syntax error near unexpected token `)'
eanon.pl: line 3: `while(<STDIN> ){$message .= $_}'
procmail: Error while writing to "eanon.pl"
procmail: Non-zero exitcode (2) from "eanon.pl"
procmail: Assigning "LASTFOLDER=eanon.pl"
procmail: Unlocking ".lock"
procmail: Locking "/var/spool/mail/eanon.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/eanon"
procmail: Opening "/var/spool/mail/eanon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/eanon.lock"
procmail: Notified comsat: "eanon@10848:/var/spool/mail/eanon"
From
jgilils@imcingular.com Thu Jul 3 17:40:17 2003
Subject: Hahahahah
Folder: /var/spool/mail/eanon 900
Got any idea what I've done wrong? Permissions or something? We MUST be close now.
Jerry.
Quote:
Originally posted by david_ross
Try changing the line:
open(MAIL, "|/usr/lib/sendmail");
to
open(MAIL, "|/usr/lib/sendmail -t");
|