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

[cobalt-users] Re: whitelisting with sendmail.cf spamblocking config



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?

Add it to /etc/mail/access:

ip.ad.re.ss<tab>OK

Note you can also do this with domains, email addresses, etc. Valid options are: OK, REJECT, RELAY, DENY, or a custom message. See http://www.sendmail.org/tips/relaying.html and read the section "The Access Database"

Then rebuild the hash file:

makemap hash /etc/mail/access.db < /etc/mail/access