On Thu, Jun 26, 2003 at 12:59:49PM -0700, thus Dan Hollis spoke:
Is this a good recipe to auto-forward spams to the ISP? I have a role
account which should never, ever receive mails from videotron.ca under any
circumstances.
:0 h :
* !^FROM_DAEMON
* ^From:.*videotron.ca
* !^From:(_dot_)*abuse(_at_)videotron(_dot_)ca
* !^X-Loop: 4322559f5e52eb6acd88411d122b2c2c
| (formail -rA"Precedence: junk" \
-A"X-Loop: 4322559f5e52eb6acd88411d122b2c2c" ; \
echo "Spam from your customer." ; \
echo ""; \
) | $SENDMAIL -oi abuse(_at_)videotron(_dot_)ca
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
---end quoted text---
I could not get the above recipe to send the headers and body in the message,
but this will do it:
:0c
*^From(_dot_)*spammer\(_at_)spam\(_dot_)com
*^Subject.*test header
| ( echo ; formail -k -X "" )| $SENDMAIL -oi your(_at_)isp(_dot_)com
I didn't play around with it enough to attach a custom subject header, but I'm
sure it can be done.
regards,
Ladd
--
+----------------------------------+
| Ladd J Hebert <lhebert/@\ti.com> |
| UNIX Systems Administrator |
| Stafford Infrastructure Team |
| Texas Instruments - Stafford,TX |
| "visualize world blinker usage" |
+----------------------------------+
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail