Something strange is happening. A recipe I am successfully using on other
user accounts for some reason isn't working on a particular setup and I
have no idea why...
The log files don't really explain the problem either.. (atleast I can't
see the problem in them...)
This is my receipe for an autoresponder (the begin and end lines
are in this e-mail but do not exist in the rc.autoresponder file):
--------begin rc.autoresponder-------------------------
:0 c:thelock
* ^TOinfo
*!^FROM_DAEMON
*!^X-Loop: info(_at_)thesoftware(_dot_)com
|(formail -r -A "Precedence: junk" \
-I"From: info(_at_)thesoftware(_dot_)com (TheSoftware)" \
-A "X-Loop: info(_at_)thesoftware(_dot_)com";\
cat $FILEDIR/info.txt)|$SENDMAIL -t
:0 A:
$DEFAULT
------end rc.autoresponder-------------------------------
Basically if I send e-mail to info(_at_)thesoftware(_dot_)com it is suppose to
get
forwarded to a real pop account called "thesoftware".
It executes the receipe and sees if it matches
"info(_at_)thesoftware(_dot_)com" and
then it sends an auto-response back to the original sender and also saves a
copy to the user's real pop mailbox in /var/spool/mail.
Unfortunately...
The message gets delivered to the POP mailbox in /var/spool/mail, but no
autoresponse is sent back to the original sender... I have no idea why..
In my log file, I see this;
procmail: Assigning "INCLUDERC=/home/thesoftware/.procmail/rc.autoresponder"
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):
(.*[^a-zA-Z])?)info"
procmail: Match on ! "(^(Precedence:.*(junk|bulk|list)|To: Multiple
recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|
m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|
oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin
(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: info(_at_)thesoftware(_dot_)com"
procmail: Locking "thelock"
procmail: Executing "(formail -r -A "Precedence: junk" \
-I"From: info(_at_)thesoftware(_dot_)com (TheSoftware)" \
-A "X-Loop: info(_at_)thesoftware(_dot_)com";\
cat $FILEDIR/info.txt)|$SENDMAIL -t"
procmail: Assigning "LASTFOLDER=(formail -r -A "Precedence: junk" \
-I"From: info(_at_)thesoftware(_dot_)com (TheSoftware)" \
-A "X-Loop: info(_at_)thesoftware(_dot_)com";\
cat $FILEDIR/info.txt)|$SENDMAIL -t"
procmail: Unlocking "thelock"
procmail: Bypassed locking "/var/spool/mail/thesoftware.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/thesoftware"
procmail: Opening "/var/spool/mail/thesoftware"
procmail: Acquiring kernel-lock
From costa(_at_)mdi(_dot_)ca Sat Nov 28 16:09:49 1998
Subject: test to info
Folder: /var/spool/mail/thesoftware 521
procmail: Notified comsat: "thesoftware(_at_)1042:/var/spool/mail/thesoftware"
---
Is there anything here you can see that I can't? I've spent a couple hours
examining this thing and I'm going nuts. :)
Shiloh Costa
costa(_at_)mdi(_dot_)ca