The latest version of the plugin is 0.6.2 released 6 Feb 2005. It has been relegated to the dustbin of history by Bad Behavior and therefore is no longer available. Users of this plugin should migrate to Bad Behavior as soon as possible.
People who are still interested in using SpamAssassin on blogs should investigate BlogSpamAssassin.
I hate spam. I really hate spam. And I hate comment spam on my blog. I thought I was fairly well protected against comment spam, but the spammers are getting smarter. So I decided to raise the stakes a bit. Introducing the WordPress SpamAssassin plugin.
SpamAssassin is a nice program designed for ISP mail servers that immediately rejects incoming spam before it ever gets anywhere near your inbox. However, it also has its own wire protocol, so you can write custom programs to speak to it. And that’s exactly what I did.
This plugin filters all of your blog comments through SpamAssassin, recognized as the Internet’s best spam killer. If you are using WordPress 1.5, it will also filter all of your trackbacks and pingbacks. It is so good at sorting spam from legitimate mail that adapting it to blogs seemed like a natural thing to do, especially since I ran into trouble with every other solution out there.
The WordPress SpamAssassin Plugin feeds all of your blog comments (and with 1.5, trackbacks and pingbacks) to SpamAssassin for analysis. Messages which aren’t spam are allowed through. Messages which are suspicious are sent to the moderation queue, and those which are certainly spam are discarded entirely. A message will be written to the error log (or syslog, depending on your PHP configuration) whenever SpamAssassin screens a comment.
The prerequisites for running the WordPress SpamAssassin Plugin are:
You will need to have a running SpamAssassin server in order to use this plugin. Your web hosting provider may already be running SpamAssassin for their mail; contact them to find out the hostname for the SpamAssassin server and fill this in to the plugin. It’ll probably be the same as your SMTP server. If you’re self-hosted, you need to install SpamAssassin on your server, if it isn’t already installed. Some distributions of Linux include it, for instance.
After determining where your SpamAssassin server is, edit the wp-spamassassin.php file and place its location in the appropriate place. To support suspicious message moderation, we add a spam tag to any suspicious message. You will need to add this tag to your moderation keywords. I don’t currently do this automatically, so as to avoid inserting blank lines, removing your other entries, etc. There are also a few other customizations you can make there. Upload the file into your wp-content/plugins directory and activate it. That’s it!
Thanks to the following people for their contributions of ideas, feedback, code, cash, etc.: