From owner-freebsd-questions Tue Nov 10 15:15:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA02983 for freebsd-questions-outgoing; Tue, 10 Nov 1998 15:15:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from fir.calcasieu.com (fir.calcasieu.com [209.99.46.67]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02978 for ; Tue, 10 Nov 1998 15:15:22 -0800 (PST) (envelope-from sysop@austin.calcasieu.com) Received: from oak.austin.calcasieu.com (oak.austin.calcasieu.com [192.168.170.7]) by fir.calcasieu.com (8.8.8/8.8.8-2.0) with SMTP id RAA06855; Tue, 10 Nov 1998 17:15:05 -0600 (CST) Received: from cruft by oak.austin.calcasieu.com with SMTP id AA24973 for freebsd-questions@FreeBSD.ORG; Tue, 10 Nov 1998 17:15:03 -0600 Message-Id: <3.0.5.32.19981110171502.007b8270@mail> X-Sender: sysop@mail X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Tue, 10 Nov 1998 17:15:02 -0600 To: Mike <70720.1771@compuserve.com>, From: Don Read Subject: Re: Help me stop the spam relaying In-Reply-To: <199811101735_MC2-5FC6-194A@compuserve.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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