LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 05-14-2010, 11:46 AM   #1
Ladowny
LQ Newbie
 
Registered: Oct 2006
Distribution: Debian, OpenBSD
Posts: 19

Rep: Reputation: 0
spamassassin sa-update does not update the rules in /usr/share/spamassassin


Hi

I have spamassassin installed some time ago. It's debian package version, default install, just enabled it in /etc/default/spamassassin and also enabled sa-update cron job.

The cronjob executes just fine and updates rules in /var/lib/spamassassin/3.002005/updates_spamassassin_org - the problem is that spamassassin uses rules from /usr/share/spamassassin .

the manual for sa-update says
Quote:
/By default, sa-update (and spamassassin) expect to find updates in the /var/lib/spamassassin/<spamassassin version> directory,
Which seems to be true true for sa-update only

I solved the problem by copying rules from /var/lib/spamassassin/3.002005/updates_spamassassin_org to /usr/share/spamassassin , but I'm looking for a neat solution that would automate the update process. I'd rather not use script to copy files, as at some point this may break my spamassassin install if they change something I cannot forsee now.
 
Old 05-14-2010, 12:07 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
I solved the problem by copying rules from /var/lib/spamassassin/3.002005/updates_spamassassin_org to /usr/share/spamassassin ,
Wrong move.
If spamassassin finds /var/lib/spamassassin/<version-number>/updates_spamassassin_org it uses that instead of /usr/share/spamassassin
So don't touch anything. You may delete /usr/share/spamassassin if you want.

Regards

Last edited by bathory; 05-14-2010 at 12:13 PM.
 
1 members found this post helpful.
Old 05-14-2010, 01:01 PM   #3
Ladowny
LQ Newbie
 
Registered: Oct 2006
Distribution: Debian, OpenBSD
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks. Wasn't sure if I can delete that, but now I did and SA works fine. For some reason new installation of SA Debian package creates this folder but rules in it are not updated.

Just checked on a Suse box and it looks the same. Is there a way of finding out which rules is SA actually using ? Mine was using the ones from /usr/share/spamassassin/ untill I deleted the folder
 
Old 05-14-2010, 04:10 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
Is there a way of finding out which rules is SA actually using ? Mine was using the ones from /usr/share/spamassassin/ untill I deleted the folder
You can use:
Code:
spamassassin -D --lint
How did you know that SA used the rules from /usr/share/spamassassin before?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassassin sa-update lasantha Linux - Server 1 05-05-2008 10:33 PM
Spamassassin v3.1.7 and and OpenProtect sa-update channel problem ganick Linux - Server 0 02-22-2007 11:15 AM
yum update and SpamAssassin dependancy vara Red Hat 1 05-17-2005 10:55 PM
PERL update -> broke Spamassassin froedi Linux - Software 0 01-23-2005 09:08 AM
spamassassin fails after update blaroe Linux - Software 2 04-14-2004 12:02 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration