Wednesday January 26, 2005 $CFDIR/README for background and all sorts of details on these,
where $CFDIR is one of:
/etc/mail/cf on Solaris 10
/usr/lib/mail on Solaris 7, 8 or 9
cf sub-directory of the sendmail distribution for people
"rolling their own"
These techniques are in the form of FEATURE and HACK m4 macros (the difference being that the former are provided and blessed by sendmail.org / Solaris whereas the latter are not, though a HACK may evolve into a FEATURE in a future release). For a HACK, one would use
HACK(`hack-name')dnl
in one's .mc file, likewise
FEATURE(`feature-name')dnl
When installing hacks, one must create $CFDIR/hack (if it does
not already exist) and place hack-name.m4 in that directory.
Note that the sendmail distribution comes with such a sub-directory but
Solaris does not.
Also, to explain some terms used below: the access list is enabled by the
FEATURE(`access_db') macro; details on this are in
$CFDIR/README, both in its sub-section in the FEATURES section,
and in the ANTI-SPAM CONFIGURATION CONTROL section. And
FEATURE(`delay_checks') is strongly recommended, as it is needed
to enable the overrule by an OK entry in the access list that I mention in a
few places; this feature is also described in its subsection in the FEATURES
section, as well as in the "Delay all checks" sub-section of the ANTI-SPAM
CONFIGURATION CONTROL section.
Anyway, onto the details. In the order I started deploying them:
.".
This rejects any such transmissions. The upside is that I have found
it to block a good amount of spam, with no false positives for me.
A couple of users of my personal domain have had some small number of false
positives with it, though. And the down side is that it cannot be overruled
by an OK entry in the access list. Bart has had a lot of troubles with
this rule; apparently old versions of Netscape and early version of Mac's
Mail.App got this wrong.
FEATURE(`enhdnsbl', `bl.spamcop.net',
`"Spam blocked see: http://spamcop.net/bl.shtml?"$&{client_addr}',
`t')dnl
while Bart uses
FEATURE(`dnsbl', `sbl-xbl.spamhaus.org')dnlBoth have proven extremely effective with very few false positives, and this feature, using whichever list, has the added virtue of allowing an OK override in the access list.
Overall, spam getting thru my personal domain's mail server to my users (including myself, my wife, my siblings, our mom, etc.) has dropped about 90% since I started using these techniques, despite the ever-increasing spam trends on the rest of the Internet.