Upgrading spamassassin

Randal, Phil phil.randal at hoopleltd.co.uk
Thu Aug 21 11:02:22 IST 2014


A peek in MailWatch's sa_rules_update.php reveals that it looks for SpamAssassin rules in:

SA_RULES_DIR
/usr/share/spamassassin
/usr/local/share/spamassassin
/etc/MailScanner/spam.assassin.prefs.conf
/opt/MailScanner/etc/spam.assassin.prefs.conf
/usr/local/etc/mail/spamassassin
/etc/mail/spamassassin
/var/lib/spamassassin

and subdirectories of the above.

So the out of the (virtual) box defaults should just work.

Cheers,

Phil

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Randal, Phil
Sent: 21 August 2014 10:23
To: MailScanner discussion
Subject: RE: Upgrading spamassassin

After installing spamassassin, you need to do an sa-update, or, preferably, sa-update -D

My MailWatch works with

define('SA_RULES_DIR', '/usr/share/spamassassin/');

even though the rules are elsewhere.  It knows where to look.

Cheers,

Phil

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kevin Miller
Sent: 21 August 2014 00:53
To: 'MailScanner discussion'
Subject: RE: Upgrading spamassassin

I uninstalled 3.3.1 first, then installed from the tarball.  It seemed to go fine.  Thanks for the heads up on the /usr/local/bin change.  Had to edit a few files to get sa-update and sa-compile to work but nothing insurmountable.

I also added in a couple missing optional perl modules.  Par for the course I suppose.

I am using MailWatch, but the only reference to spamassassin in conf.php is:
  define('SA_RULES_DIR', '/usr/share/spamassassin/'); which doesn't exist.  Not sure what to replace that with.  If I had to hazard a guess I'd say /var/lib/spamassassin/3.004000/ or maybe /var/lib/spamassassin/compiled/5.010 but I don't really know.  On a different box that's still on 3.3.1 it exists but there's not much in it:
-rw-r--r--   1 root root 101479 Mar 24  2011 languages
-rw-r--r--   1 root root   4777 Mar 24  2011 sa-update-pubkey.txt
-rw-r--r--   1 root root   1869 Mar 24  2011 user_prefs.template

Certainly not any rules.  I don't know if this is an issue or not.

Also had a bug in razor2.pm but a google search quickly put that to rights...

...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500 Registered Linux User No: 307357


-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Tracy Greggs
Sent: Tuesday, August 19, 2014 11:54 AM
To: 'MailScanner discussion'
Subject: RE: Upgrading spamassassin

This is one of those things where I gave up on the repo's quite some time ago and install from source.

Centos 5.x and 6.x

Source installs the binary in /usr/local/bin/ so you might need a symlink for /usr/bin/spamassassin if you are using Mailwatch or you might need to edit your MailWatch conf.php for the location of SA.

It is a pretty quick install and I personally have had no issues with installing from source.  Agreed not as easy as yum update spamassassin but it has been totally painless anyway.

Best of luck,

Tracy


-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kevin Miller
Sent: Tuesday, August 19, 2014 1:55 PM
To: MailScanner List (mailscanner at lists.mailscanner.info)
Subject: Upgrading spamassassin

Historically I've used Jules' prepackaged spamassassin tarballs to install/upgrade.  Those seem to have fallen by the wayside now however.  I'm on spamassassin 3.3.1.  What's the best way to get current?

The OS varies by email host:
        centOS 5.10
        centOS 6.5
        SLES 10.4 & 11.2

Any caveats to just downloading from spamassassin.org and installing?  RPMs are so much more convenient, but they seem to be stagnant an awful lot of the time.  My test server has both epel and rpmforge repos added but they're "stale" as well.

TIA...

...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500 Registered Linux User No: 307357


--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!

--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.


--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!
Hoople Ltd, Registered in England and Wales No. 7556595 Registered office: Plough Lane, Hereford, HR4 0LE

"Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it."
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list