Spam training in Mountain Lion Server


For some reason Spamassassin in Mountain Lion Server isn’t set up for scheduled spam/ham training, even though the hooks are there for it.
So you can a) configure that correctly and schedule it yourself or b) go for Spamtrainer, which works a lot smoother, automagically finds your spam and ham boxes and has enough options to run it as you please.
I really love the -i option which asks you a bunch of questions on how and when you want to run the training and then sets the schedule up for you.

WordPress attachment spam

One year later and I still have to manually edit a core WordPress file after every release because they STILL haven’t patched it themselves, meaning that even if you set comments to closed after a certain period, all the attachment pages under the post still get hit by spam comments.
Come on WP…

Fighting comment spam

As I mentioned before, I’m being hit by comment spam at a rate of hundreds a day. Akismet flags them as spam thank god, but I’d still prefer them not to even get recorded to begin with.
It seems automated and hitting older posts, so in an attempt to stop the tide I’ve disabled comments on posts older than 90 days. Unfortunately WordPress disregards its own settings when it comes to attachment pages, for this I had to sneak into wp-includes/comment.php and modify 2 lines.
In my current version (3.3.2) it’s lines 1963 & 2002, where I changed
$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );
$post_types = apply_filters( 'close_comments_for_post_types', array( 'post', 'attachment' ) );
Fingers crossed.

Whoops x3

1. Whoops, a whole month gone by without any posts. My bad. Not that it matters because,
2. Whoops, the site was down for pretty much the entire past week without me or anyone else noticing. It was due to a corrupt db as this server is getting older and older and crashes more often. Upon fixing it I was greeted with the above screen…
3. Whoops, nearly 15000 spam comments in just a week or two?! To put it into context, Akismet has stopped about 114000 spam comments in the past 6 or so years that I’ve been using it. So 15000 is absurd much.

Work in progress... not home!
Trying to get all/most of the new code working before I start on the eyecandy.