procmail
[Top] [All Lists]

Re: Global filtering for a site

1996-07-19 15:47:10

I bet I know EXACTLY what you're looking for..

If procmail is setup as your local delivery agent, this becomes easy:

Put this in your /etc/procmailrc
:0 H
* ^From:.*moneyworld.com
{
 :0 ac
 |(/opt/local/bin/formail -rt -a "Cc: dyno(_at_)cyberspace(_dot_)com 
spamcomplaints(_at_)mci(_dot_)net
 willie(_at_)moneyworld(_dot_)com"; cat /etc/procmailbounce) | $SENDMAIL -oi -t
 
 :0
 /var/tmp/spam
}


If filters out that chag(_at_)moneyworld(_dot_)com stuff that's been pummelling 
the 
Internet lately (BTW, MCI - his service provider, is suing) bounces it,
and forwards a copy to spamcomplaints and the provider for the site and
the AKA of the guy who sends out the email)
 (it also saves a copy locally in /var/tmp/spam for evidence should it
ne needed)

If this isn't what your looking for, it at least provides the concepts
that you're after. If you haven't installed procmail as your local
delivery agent, this is just one reason why doing so can help.
(requires reconfiguring sendmail (or whatever you use to handle SMTP traffic))

procmailbounce is just a form text file saying the mail has been rejected,
threatening legal action, yada yada..



--
____________________________________________________________________________
Doug Hughes                                     Engineering Network Services
System/Net Admin                                Auburn University
                        doug(_at_)eng(_dot_)auburn(_dot_)edu

<Prev in Thread] Current Thread [Next in Thread>