[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Sendmail 8.9.3 and ORDB



Thanks, this is probably much more simpler???

I have the following _ABOVE_ the mentioned lines...

######################################################################
###  check_relay -- check hostname/address on SMTP startup
######################################################################

SLocal_check_relay
Scheck_relay
R$*                     $: $1 $| $>"Local_check_relay" $1
R$* $| $* $| $#$*       $#$3
R$* $| $* $| $*         $@ $>"Basic_check_relay" $1 $| $2

SBasic_check_relay
# check for deferred delivery mode
R$*                     $: < ${deliveryMode} > $1
R< d > $*               $@ deferred
R< $* > $*              $: $2

R$+ $| $+               $: $>LookUpDomain < $1 > <?> < $2 >
R<?> < $+ >             $: $>LookUpAddress < $1 > <?> < $1 >
R<?> < $+ >             $: $1
R<OK> < $* >            $@ OK
R<RELAY> < $* >         $@ RELAY
R<REJECT> $*            $#error $@ 5.7.1 $: "550 Access denied"
R<DISCARD> $*           $#discard $: discard
R<$+> $*                $#error $@ 5.7.1 $: $1


...so now just add the portion of
# SPAM CONTROL BEGINS ...to
# SPAM CONTROL ENDS ???

...do I still need the line  R$*<TAB><TAB>$: $&{client_addr} with what
I already have above?

- Mike

On Wed, 19 Mar 2003, Tomislav Crnicki wrote:

> Hi Mike!
> 
> You are in the same position I was a few weeks ago.
> 
> Yes, you can make it work with .mc file but it requires to do some stuff I rather wouldn't do. You can search the archives for mc and you will find a step by step guide.
> 
> But there is a simple way. And in reality has the exactly same effect.
> 
> In short:
> 
> 1. Telnet/SSH to your RAQ. su to root.
> 
> 2. Make a copy of your sendmail.cf file. (RAQ3: /etc/sendmail.cf, RAQ4: /etc/mail/sendmail.cf)
> 
> # cd /etc [RAQ3]
> # cd /etc/mail [RAQ4]
> 
> # cp sendmail.cf sendmail.cf.2003031901
> 
> 3. Edit sendmail.cf
> 
> # pico -w sendmail.cf
> 
> 
> 4. Search for:
> 
> ######################################################################
> ###  check_mail -- check SMTP `MAIL FROM:' command argument
> ######################################################################
> 
> 5. Add *ABOVE* these lines something like the following. I use the relay blacklist you mention but also some others and I have knocked down spam to close to nothing on 
> our production machine. Our customers are more than satisfied.
> 
> Please note that all after "R<?>$+." and up to the next comment line - #, comes into the same line. Also all between R and $ are <TAB>s and not spaces, f.i.
> 
> R$*<TAB><TAB>$: $&{client_addr}
> 
> 
> 6. After you add this kill all sendmail processes (when your server isn't busy) and restart sendmail:
> 
> # killall sendmail
> # /etc/rc.d/init.d/sendmail start
> 
> I hope this helps! You can contact me directly if you need more help.
> 
> Best regards,
> 
> Tomi Crnicki - Abacus, Croatia
> 
> 
> 
> 
> # SPAM CONTROL BEGIN
> 
> # dnsbl.njabl.org
> R$*		$: $&{client_addr}
> R$-.$-.$-.$-	$: <?> $(host $4.$3.$2.$1.dnsbl.njabl.org. $: OK $)
> R<?>OK          	$: OKSOFAR
> R<?>$+.	$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused. CONSULT YOUR ISP. See http://www.njabl.org/";
> 
> # bl.spamcop.net
> R$*		$: $&{client_addr}
> R$-.$-.$-.$-	$: <?> $(host $4.$3.$2.$1.bl.spamcop.net. $: OK $)
> R<?>OK          	$: OKSOFAR
> R<?>$+.	$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused: CONSULT YOUR ISP. See http://spamcop.net/bl.shtml";
> 
> # proxies.blackholes.wirehub.net
> R$*		$: $&{client_addr}
> R$-.$-.$-.$-	$: <?> $(host $4.$3.$2.$1.proxies.blackholes.wirehub.net. $: OK $)
> R<?>OK          	$: OKSOFAR
> R<?>$+.	$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused: Open proxy. CONSULT YOUR ISP. See http://spamcop.net/mky-proxies.html";
> 
> # proxies.relays.monkeys.com
> R$*		$: $&{client_addr}
> R$-.$-.$-.$-	$: <?> $(host $4.$3.$2.$1.proxies.relays.monkeys.com. $: OK $)
> R<?>OK          	$: OKSOFAR
> R<?>$+.	$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused: Open proxy. CONSULT YOUR ISP. See http://spamcop.net/mky-proxies.html";
> 
> # relays.ordb.org
> R$*		$: $&{client_addr}
> R$-.$-.$-.$-	$: <?> $(host $4.$3.$2.$1.relays.ordb.org. $: OK $)
> R<?>OK          	$: OKSOFAR
> R<?>$+.	$#error $@ 5.7.1 $: "Mail from " $&{client_addr} " refused: Open relay. CONSULT YOUR ISP. See http://www.ordb.org/";
> 
> # SPAM CONTROL END
>