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

Re: [cobalt-users] Anti-Relay Filtering



On Tue, 4 Sep 2001, Ron Harden wrote:

> I need to set up anti-relay filtering on my RaQ2 and have been unable to
> find anything on how to do that in the knowledge base. Any suggestions?

If you mean blocking inbound mail from open relays, this may help

You need to make a small edit to /etc/sendmail.cf , note that this is not
the 'right way' , but for the raq2's it's easier....

find a line reading ###  check_mail -- check SMTP `MAIL FROM:' .......

2 lines ABOVE that , add this:

# DNS based IP address spam list rbl.maps.vix.com
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 by open relay database"

----
**IMPORTANT! the spaces before the left and right colums MUST be tabs ,
The last line is wrapped due to email, it is one line starting R<?>$+ and
enfing database"...

Be sure to read www.ordb.org first and see what this will do , you will
occasionally block email that is legitimite....

ps: you can also generate this from the mc file , and i have verified that
the above line is the result of macro expansion, but the raq2's didnt'
used to have a mc file...anyhow it's quickier and easier for just this
case to hack the .cf file...

pps: save a copy of your config file, system updates will replace it

gsh