I created an account on my Linux (Slackware) server called "mailbot" with the
intentions of setting up an autoresponder. However, after a full day of trying
to get procmail to send back the message, it refuses and Im getting impatient.
Whenever I go to use the vacation script, I get the "not allowed to run
external program" or something like that, so I figured procmail was the best.
Here's some quick logistics:
procmail v3.10 (10/31/1994)
Here's a printout of the user's .forward file:
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #mailbot"
Here's the .procmailrc file:
SHELL=/bin/sh
VERBOSE=on
SENDMAIL=/usr/bin/sendmail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
:0
* !^FROM_DAEMON
* !^X-Loop: mailbot(_at_)netwater(_dot_)com
| (formail -r -A"Precedence: junk" \
-A"X-Loop: mailbot(_at_)netwater(_dot_)com" ; \
cat /home/mailbot/fileserver/info.txt ) | $SENDMAIL -t
# we don't want to save any of the messages
:0 /dev/null
Here's a result of the log file:
procmail: No match on ! "(^(Precedence:.*(junk|bulk|list)|(((Resent-)? -- REST
DELETED --
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
From webmaster(_at_)netwater(_dot_)com Tue May 18 18:31:05 1999
Subject: Please work!
Folder: /dev/null 650
procmail: Notified comsat: "mailbot(_at_)0:/dev/null"
And thats it. It will not send the file "info.txt"
Maybe a little help please??
Mark
=====================================
I need someone who can roll with my arrangement.
=====================================
http://www.netwater.com
Where the hell else?