While retweaking my primary autoreply recipe, I screwed something up...and
can not seem to get the reject.txt file to autoreply (originally it worked
fine and also included the sender's original e-mail at the tail end).
I was trying to change to the * H ?? !^TO(secretaddresses)@mydomain\.com
condition as a replacement for what was formerly a * ^TO.*blah line.
Any e-mails addressed to any of the "secretaddresses"@mydomain\.com are
supposed to "pass through" OK, but all others *should* receive:
1. An Automated Reject e-mail including their original spam, etc. & an
entry goes to the .log
2. An Exit Code=67 bounce as well.
Tnx for any guidance with this (below). I may have screwed up mixing &
matching some of the flags???
Eric
----
:0HBhc:
* !^FROM_DAEMON
* !^X-Loop: me(_at_)mydomain(_dot_)com
* H ?? !^TO(secretaddresses)@mydomain\.com
{
:0 fh
| formail -r -A"Precedence: junk" \
-I"From: REJECTED MAIL <nospam(_at_)mydomain(_dot_)com>" \
-I"Subject: R E J E C T E D M A I L" \
-A"X-Loop: nospam(_at_)mydomain(_dot_)com" ; cat
$HOME/procmail/reject/reject.txt
:0
| $SENDMAIL -oi -t
}
:0HBhc:
* H ?? !^TO(secretaddresses)@mydomain\.com
| formail -rtzxTo: >> $HOME/procmail/reject/reject.log
:0
{
EXITCODE = 67
:0
/dev/null
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail