Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 1998 07:23:11 +0300 (EEST)
From:      Evren Yurtesen <yurtesen@turkey.ispro.net.tr>
To:        Michael Dorin <mdorin@my-dejanews.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Why don't sendmail.cf antispam rules do anything?
Message-ID:  <Pine.BSF.3.96.981019072015.11302F-100000@turkey.ispro.net.tr>
In-Reply-To: <KAKFEKJNDGAFDAAA@my-dejanews.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981019072015.11302F-100000>