Meddling in the Affairs of Wizards
John Beck's Weblog
Archives
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today
XML
Search

Links

Today's Page Hits: 98

« what is relaying? | Main | Adding command-line... »
20050126 Wednesday January 26, 2005
building a better spam trap
I've spent a lot of time over the past couple of months trying out some new (and some not so new) anti-spam techniques. Note that this article assumes some familiarity with sendmail m4 macros; see $CFDIR/README for background and all sorts of details on these, where $CFDIR is one of:

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:

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.


Jan 26 2005, 04:16:42 PM PST Permalink Comments [5]

Trackback URL: http://blogs.sun.com/jbeck/entry/building_a_better_spam_trap
Comments:

I'm *very* interested in the last of these two - I run sendmail to handle the email for my personal domain, and although the Thunderbird adaptive spam filtering works quite well, I'd prefer to cut the spam off earlier. Any chance of an Idiot's Guide of exactly how to set this on on S10? I've read the comments in require_rdns.m4 and I'm not quite sure what 'access table entries' are, or what FEATURE(`delay_checks') does, and why I would want it. Thanks!

Posted by Alan Burlison on January 27, 2005 at 03:13 AM PST #

Off topic, I just implemented bogofilter with tie-ins to my MUA (mutt) and my MDA (procmail). W0rks pretty darn cool.

Posted by sbank on January 31, 2005 at 07:12 AM PST #

Why don't you use Postfix?

Posted by 84.248.21.30 on April 19, 2005 at 07:05 AM PDT #

Hi,

The require_rdns.m4 file seems to have gone AWOL!

Rgds

Damon

Posted by Damon Hart-Davis on September 02, 2006 at 05:53 AM PDT #

Just found something odd, when you have: HACK(`dnswl',`nlwhitelist.dnsbl.bit.nl')dnl HACK(require_rdns)dnl My thoughts would be whenever an ip is listed in the whitelist rbl, it should be excluded from the require_dns hack. Atm whitelisted ips without rdns are also being blocked. Any ideas?

Posted by Gerwin on October 10, 2006 at 02:57 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed