SpamAssassin and NetQMail

Web 4 Comments »

Spam in my inbox has slowly increased to an inconvenient amount. I’m using SpamAssassin and some spam emails even had a negative spam score, meaning they get a bonus to get through even when other spam criterions were met.

Most of these emails had the BAYES_00 rule, so I did some research. The bayesian filter in SpamAssassin (that’s the one that dynamically learns what kind emails you consider spam) has three outputs in SpamAssassin: BAYES_00 (meaning the bayesian filter thinks the email is good), BAYES_50 (meaning the bayesian filter thinks there’s a 50% probability of the email being spam) and BAYES_99 (of course meaning the email is spam with a 99% probability).

It looked like my bayesian filter had somehow learned to see spam emails as good emails. This surprised me, because I’ve set up two special folders in my IMAP inbox named ‘ham’ and ’spam’ into which I move any emails wrongly classified by SpamAssassin. An hourly cron task then picks up any emails moved into those folders and train my bayesian filter. So I assumed the darn thing would be well trained for the kind of spam I’m receiving.

What actually happened was that the cron task ran under the user account cron was using while SpamAssassin scanned my emails under another user account I had set up specifically for simscan, the utility I use to scan my emails at SMTP upload time (normal email servers accept all emails and then scan for spam; mine rejects spam right when it is being uploaded - this allows my email account to appear as being permanently unavailable or disabled for any spammer).

So, to make a long story short, all my efforts to train SpamAssassin’s bayesian filter for nearly two years have been for naught because I had trained cron’s bayesian database instead of the one used by simscan to scan incoming emails. Unattended, the bayesian filter slowly auto-trained itself to regard spam emails as good emails.

I cleared my bayesian filter’s database and I’m now hoping that this time, I will be able to properly train it. Here’s the shell script I’m now using:

#!/bin/sh

# ------------------------------------------------------------------
# Train SpamAssassin
#
for homedirectory in /home/*
do
  if [ -e $homedirectory/.maildir ]; then
    chmod +t $homedirectory/.maildir

    if [ -e $homedirectory/.maildir/.SpamAssassin.Spam ]; then
      if ls $homedirectory/.maildir/.SpamAssassin.Spam/cur/* >/dev/null 2>&1; then
        sa-learn \
          --username=simscan \
          --dbpath /var/spool/simscan/.spamassassin \
          --spam $homedirectory/.maildir/.SpamAssassin.Spam/cur/*
        mv $homedirectory/.maildir/.SpamAssassin.Spam/cur/* \
           $homedirectory/.maildir/.Trash/cur/
      fi
    fi

    if [ -e $homedirectory/.maildir/.SpamAssassin.Ham ]; then
      if ls $homedirectory/.maildir/.SpamAssassin.Ham/cur/* >/dev/null 2>&1; then
        sa-learn \
          --username=simscan \
          --dbpath /var/spool/simscan/.spamassassin \
          --ham $homedirectory/.maildir/.SpamAssassin.Ham/cur/*
        mv $homedirectory/.maildir/.SpamAssassin.Ham/cur/* \
           $homedirectory/.maildir/.Trash/cur/
      fi
    fi

    chmod -t $homedirectory/.maildir
  fi
done

MSVC 2008 Quality

Programming, General 1 Comment »

When I was working on an absolutely clean install of my Windows Vista development system so that I could create an image for later use, one of the many things that caused me to start all over again was Visual C++ 2008:

The .NET Framework 3.5 installer in the VC folder of the Visual Studio 2008 Express DVD is broken. It will take forever and then proclaim that setup failed. I had to manually install the .NET Framework 3.5 using the installer in the VC# folder before I could successfully run the VC 2008 setup.

Today I’ve downloaded the Windows SDK 2008. Any installation attempt fails because vcredist_x64.msi is broken. Attempts to manually run vcredist_x64.msi will result in a message box telling me that the installation package is broken.

Taking a look at all the trouble I’ve been having recently, I am very worried about Microsoft’s quality control.

Not too long ago I had the issue of Windows Vista crashing with a BSOD that’s 100% reproducible if you have 4 GB of RAM and your mainboard is equipped with a device that causes storport.sys to be loaded.

Windows Vista Pricing

General No Comments »

I was browsing through the Windows Vista homepage today, looking for informations what SP1 will actually do to my system. Of course I didn’t find what I was looking for, but I discovered this:

USA: Windows Vista Ultimate Full — $ 399.95

Now the same Windows Vista in a german shop:

Germany: Windows Vista Ultimate Full — € 499.- (= $ 727.- !)

Looks like I could save a whole lot of money by booking a flight to the USA, walking to the next retail store, buying Windows Vista Ultimate and enjoying a good meal before taking the plane back to germany.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login