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

Re: [cobalt-users] Sendmail features



Robbert Hamburg (HaVa Web- & Procesdesign) wrote:

This is what i added in sendmail.cf

######################################################################
###  check_relay -- check hostname/address on SMTP startup
######################################################################
<snipped>

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 ordb.org open relay database"

# DNS based IP address spam list bl.spamcop.net
R$*                             $: $&{client_addr}
R::ffff:$-.$-.$-.$-             $: <?> $(host $4.$3.$2.$1.bl.spamcop.net. $:
OK $)
R$-.$-.$-.$-                    $: <?> $(host $4.$3.$2.$1.bl.spamcop.net. $:
OK $)
R<?>OK                          $: OKSOFAR
R<?>$+                          $#error $@ 5.7.1 $: "Spam blocked see:
http://spamcop.net/bl.shtml?"; $&{client_addr}

the empty spaces are tabs in ssh

add it right above:

######################################################################
###  check_mail -- check SMTP `MAIL FROM:' command argument
######################################################################

restart sendmail and off you go.

Robbert


Thanks Robbert and others for advice.

I've gone and done this as you've outlined. Then copied my sendmail.cf.master file, and then copied the sendmail.cf file to the master one, so if I make gui changes things may stick. I haven't yet received any spam to this new server so won't know for a bit if it works. But thanks again.

Curious what it all means. I suppose it is on the sendmail website - that syntax that makes no sense to me. I would like to learn a little about it just so I know if I made a typo or not.. where to put spaces vs. tabs, ( vs. {, etc.. Maybe if I ever get any time I'll go do some reading..

cheers,

Jim D.