Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 1998 17:15:02 -0600
From:      Don Read <sysop@calcasieu.com>
To:        Mike <70720.1771@compuserve.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Help me stop the spam relaying
Message-ID:  <3.0.5.32.19981110171502.007b8270@mail>
In-Reply-To: <199811101735_MC2-5FC6-194A@compuserve.com>

next in thread | previous in thread | raw e-mail | index | archive | help
back on 05:32 PM 11/10/98 -0500, you said:
>Please somebody help me! 
>
>I am trying to close off my site to people who use it to relay 
>spam.  
>
>I have tried updating the sendmail.cf file and I have restarted sendmail
>but it does not help.    The new rules don't do anything.  
>
>Here is what I have done so far.  I added the antispam rules from 
>/etc/mail into my sendmail.cf.  I uncommented the check_rcpt rule.
>I restarted sendmail.  BOth sites on my list and off can still send
>email.  The spammers are making me sick.   I even rebooted the system.
>THose rules are never ever called. 
>
>I have not upgraded to 8.9 yet, I am still on sendmail 8.8 which
>was delievered with 2.2.6.  I really need a quick solution.  
>I also need to allow a few people from off site to continue using email.
>
>What could cause the new rule not to do anything?  I saw that somebody
>else had a similiar problem in the freebsd database, but nobody answered.
>

did you run makemap junk ?

>PLEASE! I am about ready to shut my system down at night!
>

Might be a good idea ...

=======
OK my setup (2.1.7 & Sendmail 8.8):

in my /etc/mail

Makefile:
================
MAP= makemap hash
ALL= allow.db junk.db accept.db

maps: $(ALL) LocalUsers LocalNames masquerade
    kill -HUP `head -1 /var/run/sendmail.pid`
    touch $@

junk.db: junk
    $(MAP) $? < $?

accept.db: accept
    $(MAP) $? < $?

allow.db: allow
    $(MAP) $? < $?

===== eof

/etc/mail/junk:
=========
202.82.45   JUNK
147.46  JUNK
147.47  JUNK
194.151.67  JUNK
adventuresinmarketing.com   JUNK
usapub.com  JUNK
freemoney@hotmail.com   SPAMMER
cyber-host.net  JUNK
hknet.com   JUNK
cyber-website.com    JUNK
===== eof

/etc/sendmail.cf:

Kjunk hash -a@JUNK /etc/mail/junk
Kallow hash /etc/mail/allow  
Kaccept hash /etc/mail/accept  


After you edit any maps in /etc/mail; run "make" to freshen & restart
sendmail.

Regards,
Regards,
-- 
Don Read                               sysop@calcasieu.com
EDP Manager                                dread@texas.net
Calcasieu Lumber Co.                             Austin TX
- Ya jes' mash that button, rite jher


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19981110171502.007b8270>