Ok, I think I may have it now.
:0
* ^From snip(_at_)snip
{
SUBJECT=`formail -zxSubject:`
:0c:formail.lock
| expand | sed -e 's/[ ]*$//g' | sed -e 's/^/ /' > return.tmp
:0c
* ! ^FROM_DAEMON
* ! $ ^X-Loop: $\ABUSE
| (formail -r \
-I"From: Abuse redirect <postmater(_at_)snip(_dot_)net>" \
-I"To: junk <snip(_at_)snip>" \
-I"Subject: [REDIRECT] $SUBJECT" \
-A"X-Loop: $ABUSE" ; \
/bin/cat "/etc/mail/abuse/swb-65-66-91-253.txt" ;\
cat return.tmp;\
rm -f return.tmp ; ) \
| $SENDMAIL -t
:0:
/var/spool/mail/quarantine/test
}
That appears to get the desired results. Hopefully I did the file
locking correctly and all of that. If anyone has any suggestions,
feel free to share them. Many thanks to Wash for pointing me to:
http://www.uwasa.fi/~ts/info/proctips.html#reject
One last thought, do you think it would be better to use my own From
on these rejected messages or the From of the mail I'm rejecting with
a Reply-to being my abuse or postmaster?
Justin
--
--
Justin Shore, ES-SS ES-SSR Pittsburg State University
Network & Systems Manager Kelce 157Q
Office of Information Systems Pittsburg, KS 66762
Voice: (620) 235-4606 Fax: (620) 235-4545
http://www.pittstate.edu/ois/
Warning: This message has been quadruple Rot13'ed for your protection.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail