[5392] in RedHat Linux List
Re: spam from this list?
daemon@ATHENA.MIT.EDU (Michael Ghens)
Thu Nov 21 01:49:03 1996
Date: Wed, 20 Nov 1996 22:47:04 -0800 (PST)
From: Michael Ghens <michael@spconnect.com>
To: redhat-list@redhat.com
In-Reply-To: <3293B735.70D1CD27@in_my.signature>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Can't exactly remember where I got this (Probably from the procmail list)
but it works, It is set up to read a file called .spammers and bounces
it. (The .spammers file is in $HOME/mail). Also see www.vix.com/spam for
good info on preventing spam. They have a good script for to include in
your sendmail.cf (actually, the sendmail.mc file that you use m4 on) that
will make sendmail automatically bouce domains and prevent your sendmail
from being a unsuspecting mail forwarder (bounces those bad boys too.)
Michael
MAILDIR=$HOME/mail
LOGFILE=Log
SPAMMERS=$HOME/mail/.spammers
SENDER=`formail -rtzxTo:`
:0 # If this is a spammer, auto-respond
* ? fgrep "$SENDER" $SPAMMERS
{ # this is a spammer, make a reply
:0fh # form a reply header
| formail -rt -I"From: $LOGNAME@$HOST" \
-I"Reply-To: nobody" \
-I"Precedence: junk" \
-I"Subject: Your recent spamming to me"
# Notice that I set "From:" correctly, but override it with
# "Reply-To: nobody" so that any replies will go nowhere.
# On many (most?) Unix systems, "nobody" is an alias to "/dev/null".
:0fb # form the body
| echo "You recent unsolicited e-mail to me is not appreciated." ; \
echo "All future e-mail from you will be ignored by me (not even" ; \
echo "seen, actually), but will generate this response." ; \
echo "It is, therefore, in your own best interest to not even " ; \
echo "bother sending me any more e-mail." ; \
echo "Thank you. -- $LOGNAME's Mail-Agent." ; \
echo "" ; \
echo "---- Original Message ----" ; \
cat -
:0 # feed the reply to the mailer
! -oi -t
DELIVERED=yes # pretend we delivered the mail
HOST=_done_ # stop processing now
}
-------------------------------------------------------------------
Michael Ghens | Area under construction
michael@spconnect.com | http://www.spconnect.com/~michael
B: (805) 563-1838 | Finger for PGP Public Key
====================SysAdmin, Small Planet Connections=============
Key fingerprint = 91 01 AF 8D F9 C9 27 9B 17 5F A0 DA C3 7C CC EE
On Wed, 20 Nov 1996, Borg wrote:
> Date: Wed, 20 Nov 1996 17:58:13 -0800
> From: Borg <see_address@in_my.signature>
> Reply-To: redhat-list@redhat.com
> To: redhat-list@redhat.com
> Subject: Re: spam from this list?
> Resent-Date: Wed, 20 Nov 1996 20:59:08 -0500
> Resent-From: redhat-list@redhat.com
>
> Bill D wrote:
>
>
> > I'm going to start using procmail to filter on the SMTP headers, starting
> > with "interramp.com".
>
> Would you please share with us your .prcmailrc and other
> config files when (if) you have it working?
>
> --
> #include <disclaimer.h> | *Good pings come in small packets*
> Vlad Petersen | Linux: multiuser, multitasking,
> Vancouver, B.C | multiplatform, 64-bit and free.
> vladimip @ iceonline.com | Ceterum censeo Microsoftam delendam esse
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> ________________________________________________________________________
> http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
> http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
> ------------------------------------------------------------------------
> To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null