I recently implemented blacklists in my sendmail.cf.
I've been 100% happy with it. Everyday I block about 4000 messages out
of about 5500 total messages with this setup.
Today I had my first request for a whitelist.
My sendmail.cf spamblocking section looks like this:
# 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 from SpamCop"
My question is, how to I whitelist an IP address?