Date: Fri, 16 Jan 1998 14:12:03 -0700 From: Eddie Fry <eddie@wicked.eaznet.com> To: isp@FreeBSD.ORG Subject: Spam relaying Message-ID: <19980116141203.35607@wicked.eaznet.com.>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I have added the following code to my sendmail.cf file in an effort to stop spam relaying. Unfortunately, it is not working. Is there some code I need to remove from the cf file?
I am using Sendmail 8.8.7 with 8.8.5 config file.
Thanks,
Eddie Fry
[-- Attachment #2 --]
F{LocalIP} /etc/sendmail.cR
Scheck_rcpt
# first: get client addr
R$+ $: $(dequote "" $&{client_addr} $) $| $1
R0 $| $* $@ ok no client addr: directly invoked
R$={LocalIP}$* $| $* $@ ok from here
# not local, check rcpt
R$* $| $* $: $>3 $2
# remove local part, maybe repeatedly
R$*<@$=w.>$* $>3 $1 $3
# still something left?
R$*<@$+>$* $#error $@ 5.7.1 $: 571 we do not relay
#^L
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980116141203.35607>
