Bugtraq mailing list archives

Re: A security issue of a different kind.


From: felicity () kluge net (Theo Van Dinter)
Date: Fri, 29 Nov 1996 16:23:53 -0500


On Sat, 30 Nov 1996, Alan Brown wrote:

# added by Josh () actrix gen nz
# mail from the domains in /local/lib/mail/banned-domains.txt will berefused
FK /local/lib/mail/banned-domains.txt
R$* < @$*$=K . > $*             $#error $@ 5.7.1 $: "This domain isbanned."
R$* < @$*$=K > $*               $#error $@ 5.7.1 $: "This domain isbanned."


Here's a slightly more advanced version of the above, using Scheck_mail
from sendmail 8.8.x... It'll block domains, or specific users if
specified...:

---
F{JunkMail}     /etc/mail/junkmail
Scheck_mail
R<$={JunkMail}>                 $#error $@ 5.7.1 $: "You are banned."
R$*                             $: $>3 $1
R$* < @ $={JunkMail} . > $*     $#error $@ 5.7.1 $: "You are banned."
---

Then the junkmail file looks like this:

----
pobox.com
interramp.com
plevin () monmouth com
pete () scanplus com
r9ch () aol com
----

You can look up the above via:

        http://www.informatik.uni-kiel.de/%7Eca/email/rej-8.8

--
-----------------------------------------------------------------------------
Theo Van Dinter                          www: http://www.kluge.net/~felicity/
Vice-President WPI Lens and Lights             Active Member in SocComm Films
Member of WPI ACM                              AME for the Masque B-Term Show

           I'm outstanding in my field (left field) knee deep in BS.
-----------------------------------------------------------------------------



Current thread: