Anti-Spam and email tools

This is a short list of tools I use to manage my mail servers (and mailboxes). The main building blocks for my system are
* [http://www.ogre.com|sendmail] for the MTA, with support for [http://www.milter.org|Milters]
* [http://asg.web.cmu.edu/cyrus/|Cyrus IMAP] server for IMAP over SSL
* Server side mail filters using [http://asg.web.cmu.edu/cyrus/sieve|Sieve]
* Webmail access using [http://www.squirrelmail.org/|SquirrelMail]
!!! sendmail
I'm running sendmail v8.13.1 currently, supporting a number of domains and users. sendmail uses the Cyrus mailer for delivery, which in turns talks to an [http://www.faqs.org/rfcs/rfc2033.html|LMTP] server. This injects the new messages directly into the IMAP folders. As an extra benefit, I also get the __+__ style addressing support automatically, meaning I can sort into sub-folders by the envelope address. For instance, if you send an email to

{CODE()}
leif+other.spam@ogre.com
{CODE}

it is automatically sorted into my IMAP folder named __other.spam__.
!!! Cyrus IMAP
Cyrus has been my choise of IMAP server for quite a while, way back when there was really no comparison in features and performance. Netscape Mail server was very promising, but unfortunately died during the AOL and Sun massacres. Cyrus supports SASL of course, but also a somewhat unknown sub-system called [http://asg.web.cmu.edu/cyrus/sieve|Sieve]. This is a 100% server side mail filtering language, and it's quite powerful, much more so than I can document here. But, here's an example filter file:

{CODE()}
require "fileinto";

if header :is "X-Spam-Flag" ["YES"] {
fileinto "INBOX.zSpam";
} elsif address :is :all ["from", "to", "cc", "bcc"] ["foo@ogre.com", "bar@ogre.com"] {
fileinto "INBOX.filtered.giants";
} elsif address :is :all ["to", "cc", "bcc"] ["dist-update@perldap.org"] {
fileinto "INBOX.filtered.dist";
} elsif header :contains "List-Id" "some_mail_list" {
fileinto "INBOX.mailists.games";
}
{CODE}

!!! Spam tools
I use a few sendmail milters to help get rid some of the worst spam:
* [http://www.mimedefang.org/|MIMEDefang]
* Snert's [http://www.milter.info/milter-spamc/index.shtml|milter-spamc]

I'm fully aware that MIMEdefang supports [http://www.spamassassin.org|SpamAsassasin], but I prefer to run these two systems independently. In fact, I wish MIMEdefang would make it easier to disable the user of SA! For SpamAssassin I use pretty much every bell and whistle there is, including:
* DCC
* Pyzor
* Razor

!!! Anti-virus
Although MIMEDefang does some AV already, it also supports "pluggable" virus detectors. I currently use
* [http://www.clamav.net/|ClamAV]

Hacking: