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