From owner-freebsd-questions Sun Oct 18 21:23:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA12948 for freebsd-questions-outgoing; Sun, 18 Oct 1998 21:23:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from turkey.ispro.net.tr (turkey.ispro.net.tr [195.174.18.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA12933 for ; Sun, 18 Oct 1998 21:23:48 -0700 (PDT) (envelope-from yurtesen@turkey.ispro.net.tr) Received: from localhost (yurtesen@localhost) by turkey.ispro.net.tr (8.8.8/8.8.8) with SMTP id HAA11936; Mon, 19 Oct 1998 07:23:11 +0300 (EEST) (envelope-from yurtesen@turkey.ispro.net.tr) Date: Mon, 19 Oct 1998 07:23:11 +0300 (EEST) From: Evren Yurtesen To: Michael Dorin cc: questions@FreeBSD.ORG Subject: Re: Why don't sendmail.cf antispam rules do anything? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hello you should add this to the end of your sendmail I guess I have 8.9.1 or something but this should work on most of sendmail versions then create 2 files, first 1 is /etc/local/ip you should write the ip addresses which can use your mail service... you may do it like 195.174.18 then it would work on 195.174.18.[1-254] ok? and /etc/relayto if your system is the secondary mail server from DNS settings (MX setting) you should set this, but I guess you do not have to. F{LocalIP} /etc/localip F{RelayTo} /etc/relayto #lokal ruleset Scheck_rcpt R$+ $: $(dequote "" $&{client_addr} $) $| $1 R0 $| $* $@ ok no client addr: directly invoked R$={LocalIP}$* $| $* $@ ok from here R$* $| $* $: $>3 $2 R$+ $:$>remove_local $1 R$*<@$+>$* $#error $@ 5.7.1 $: 550 we do not relay Sremove_local R$*<@$*$={RelayTo}.>$* $>3 $1 $4 R$*<@$=w.>$* $: $>remove_local $>3 $1 $3 R$*<@$*>$* $@ $1<@$2>$3 R$- $: $>3 $(dequote $1 $) R$*<@$*>$* $: $>remove_local $1<@$2>$3 On Sun, 18 Oct 1998, Michael Dorin wrote: > I have done two things: > 1) I copies the instructions from sendmail.org to my sendmail.cf file. I want to stop people from using > my site to relay spam. I setup the sendmail.cR file > with the ip addresses of the sites I do want to continue relaying mail. > > The change made no difference at all. > > So I tried what was in the /etc/mail directory. > I followed all the instructions in the list. > It to did not do a darn thing! > > Where am I to put these rules in the sendmail.cf file? > > What I have done has not made any difference. > > Please help! > > -Mike > > > -----== Sent via Deja News, The Discussion Network ==----- > http://www.dejanews.com/ Easy access to 50,000+ discussion forums > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message