I wish I got 100 spams a day. Even 1000 would be nice. That might sound crazy at first, but even getting 1000 a day would be an improvement. Therefore, I welcome anything that helps me combat the inevitable flood. That's where milters come in.
A milter is an email filter designed especially for sendmail. However, using sendmail as your Mail Transfer Agent is not a requirement benefiting from this book. All of the example code is written in C, but milters can be written in other languages, like Perl.
When I first opened the book I found that about a quarter of it was more or less dedicated to simply talking about spam, as well as setting up a "test" environment. This seemed a bit superfluous at first, because every one knows what spam is, right? Well, conceptually, yes, but there is a lot more to how it is done than meets the eye. First, there is a discussion of the different kinds of spam, then there are details on the tricks that spammers use to not only get their message into your inbox, but to get you to open it. This all gives you a good understanding about what it is you are trying to fight. ("Know thine enemy.") I found this to be both interesting and eye-opening.
The next section deals with setting up web and email servers to "bait" spammers into sending you email. The goal here is to provide you with enough examples of spam to be able to write your milters successfully.
The bulk of the book describes programming the actual milters. You are given code examples that deal with every aspect of the email message. Because so much spam is sent as HTML, the book also talks in detail about dealing with email sent as HTML, as well as how to deal with encoded attachments.
Although the code examples are generally straight forward, I lost myself in the code a couple of times. This is simply because code of this nature really needs to be written for efficiency and not for the novice C coder. To get the most out of this book, you really need to have a fairly strong understanding of C. Despite this, I found the explanation of the code very easy to follow, and the authors were careful to point out potential problems.
Bryan Costales and Marcia Flynt
329 pages
Addison-Wesley, 0-321-21333-5
£ 28.99, US$ 39.99, EUR 33.50
|