SpamAssassin 3.3.0 on Ubuntu Karmic 9.10

I did an update for my Spamassassin installation to version 3.3.0 here on my Ubuntu Karmic Kaola 9.10 driven mail server.

Spamassassin and spamd were already installed via aptitude. Here is what the version query shows:

spamassassin -V
SpamAssassin version 3.2.5
running on Perl version 5.10.0

spamd -V
SpamAssassin Server version 3.2.5
running on Perl 5.10.0
with zlib support (Compress::Zlib 2.011)

A short check shows the location of both files.

which spamassassin spamd
/usr/bin/spamassassin
/usr/sbin/spamd

So i had to do these steps:

Enable perl to compile the new version of the spamassassin filter

aptitude install build-essential

Now wget the tarball, untar it, change to the extracted directory and do

perl Makefile.PL
make
make install

Remove orginal spamassassin

apt-get remove spamassassin

and link the newly created files

ln /usr/local/bin/spamd /usr/sbin/spamd
ln /usr/local/bin/spamc /usr/bin/spamc
ln /usr/local/bin/spamassassin /usr/bin/spamassassin

Finally fetch the new rule set

sa-update -D

and restart the daemon if enabled in /etc/default/spamassassin

/etc/init.d/spamassassin restart

Final checks:

spamassassin --lint

Ok - no messages. Now call it directly - type some text and finish with "Ctrl-D"

spamassassin

type some text

Ctrl-D

You should see a typical spamassassin log.

And a version check:
spamassassin --version
SpamAssassin version 3.3.0
running on Perl version 5.10.0

spamd --version

SpamAssassin Server version 3.3.0
running on Perl 5.10.0
with zlib support (Compress::Zlib 2.011)

And check for the hard link create above - the "2" in the 2nd colon of the directory listing
indicates a hard link.

ls -la /usr/bin/
spamassassin
-r-xr-xr-x 2 root root 29620 2010-01-28 19:27 /usr/bin/spamassassin

ls -la /usr/sbin/spamd

-r-xr-xr-x 2 root root 105334 2010-01-28 19:27 /usr/sbin/spamd

Is spamd up and running?

pgrep spamd
15192
15193
15194

Did it work for you - any comments? Drop them here!


Comments

Anonymous said…
and link the newly created files

ln /usr/local/bin/spamd /usr/sbin/spamd
ln /usr/local/bin/spamassassin /usr/bin/spamassassin


didnt work for me, after removing spamassassin with aptitude these files were gone...
Anonymous said…
which files were gone?

There should be the stuff in /usr/local/bin

ls -la /usr/local/bin/spam*

aptitude removes the stuff from /usr/(s)bin.

dpkg -l(-L) spamassassin
Anonymous said…
Thanks, it worked perfectly.

Only the pre files had to be moved from /etc/spamassassin (previous installation) to /etc/mail/spamassassin/ (new installation).

Popular Posts