I cannot get procmail to run here. I would like to set up autoreply.
I will paste in my .forward, my .procmailrc, and the "from" log file
which registers procmails actions.
The recipes sending things to /dev/null work fine, but when
formail/sendmail is invoked, it never works. Is it the LASTFOLDER
setting? Any help will be appreciated.
I am trying to use a simple script to sendmail straight back to a known
address (rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu) which is my
alternate account.
Procmail will never run sendmail. I can run sendmail from the command
prompt and it works fine.
rjmcpher(_at_)uci(_dot_)edu R. McPherson, Psychobiology Dept, UC Irvine
(see files below)
.forward:
"|/dcs/bin/procmail"
.procmailrc:
PATH=usr/lib/:/bin:/usr/ucb:/usr/local/bin:/dcs/bin:/u5/ea/rjmcpher:usr/bin:
MAILDIR=$HOME/Mail #you'd better make sure it exists
LOGFILE=$HOME/from #recommended
VERBOSE=on
SENDMAIL=/usr/lib/sendmail
:0 h
* ^FROM:(_dot_)*(_at_)mamba*
* !^X-Loop: rjmcpher(_at_)uci(_dot_)edu
| (formail -r -A"Precedence: junk" \
-A "X-Loop: rjmcpher(_at_)uci(_dot_)edu" ; \
echo "Got it") | sendmail
rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu
:0
* ^Subject:.*Victim*
/dev/null
from file:
procmail: [18987] Thu Aug 15 14:18:35 1996
procmail: Assigning "SENDMAIL=/usr/lib/sendmail"
procmail: No match on "(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|r(esponse|oot)|s(erv(ices?|er)|mtp)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$))"
procmail: Match on "^FROM:(_dot_)*(_at_)mamba*"
procmail: Match on ! "^X-Loop: rjmcpher(_at_)uci(_dot_)edu"
procmail: Executing " echo "Got it" | sendmail
rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu"
procmail: Assigning "LASTFOLDER= echo "Got it" | sendmail
rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu"
From rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu Thu Aug 15 14:18:35
1996
Subject: arf arf
Folder: echo "Got it" | sendmail -q3s
rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu -X 1000
procmail: Notified comsat: "rjmcpher@: echo "Got it" | sendmail
rmcphers(_at_)mamba(_dot_)bio(_dot_)uci(_dot_)edu"