I'm afraid I still can't get my autoresponder to work. I tried:
* Removing all the blank lines and leading spaces
* Changing "cat" to "echo"
* Adding $SENDMAILFLAGS
Here's my code:
-----------------------------------------------------------
SENDMAIL=/usr/sbin/sendmail
LOGFILE=$HOME/.procmaillog # Optional, but recommended
VERBOSE=yes # Set to yes when debugging
LOGABSTRACT=all # all=full logging; no= minimal logging
:0:
* ^From.*Mike Schuppe
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: AustinMusic(_at_)michaelbluejay(_dot_)com
| (formail -t -r -A"X-Loop: austinmusic(_at_)michaelbluejay(_dot_)com " ; \
echo "Your message was tagged as spam and deleted. If it wasn't spam,
please visit my website and send your mail through the form there." )\
| $SENDMAIL $SENDMAILFLAGS -t
:0
$HOME/Maildir/
---------------------------------------------------------
Some of you pointed out possible problems with the matching, or with
the final line which sends unmatched mail to my regular mailbox, but
*those parts work fine*. The mail is matched successfully when
appropriate, and unmatched mail gets send to my mailbox properly. The
only thing that doesn't work is that the autoresponse doesn't get sent.
Someone suggested changing the location of SENDMAIL, but I verified
that SENDMAIL is indeed in /usr/sbin.
Here's what I found in the log, though I don't really understand any of
it. All this was generated from the single test message I tried to
send.
-----------------------------------------------------------
procmail: [26836] Tue Jul 6 02:59:29 2004
procmail: Assigning "LOGABSTRACT=all"
procmail: Match on "^From.*Mike Schuppe"
procmail: Match on !
"(^(Mailing-List:|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|b
s\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?
|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?
[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: 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|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|s(erv(ices?
|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$))"
procmail: Match on ! "^X-Loop: AustinMusic(_at_)michaelbluejay(_dot_)com"
procmail: Couldn't determine implicit lockfile from " (formail -t -r
-A"X-Loop: austinmusic(_at_)michaelbluejay(_dot_)com " ; \
echo "Your message was tagged as spam and deleted. If it wasn't spam,
please visit my website and send your mail through the form there." )\
| $SENDMAIL $SENDMAILFLAGS -t"
procmail: Locking ".lock"
procmail: Executing " (formail -t -r -A"X-Loop:
austinmusic(_at_)michaelbluejay(_dot_)com " ; \
echo "Your message was tagged as spam and deleted. If it wasn't spam,
please visit my website and send your mail through the form there." )\
| $SENDMAIL $SENDMAILFLAGS -t"
procmail: Assigning "LASTFOLDER= (formail -t -r -A"X-Loop:
austinmusic(_at_)michaelbluejay(_dot_)com " ; \
echo "Your message was tagged as spam and deleted. If it wasn't spam,
please visit my website and send your mail through the form there." )\
| $SENDMAIL $SENDMAILFLAGS -t"
procmail: Unlocking ".lock"
procmail: Notified comsat: "bluejay@:/home/bluejay/ (formail -t -r
-A"X-Loop: austinmusic(_at_)michaelbluejay(_dot_)com " ; \
echo "Your message was tagged as spam and deleted. If it wasn't spam,
please visit my website and send your mail through the form there." )\
| $SENDMAIL $SENDMAILFLAGS -t"
------------------------------------------------------
Any ideas?
Thanks for your help,
-MBJ-
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail