LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10:46 AM   #1
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 53

Rep: Reputation: 14
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, 11:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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 11:13 AM.
 
1 members found this post helpful.
Old 05-14-2010, 12:01 PM   #3
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 53

Original Poster
Rep: Reputation: 14
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, 03:10 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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



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 09:33 PM
Spamassassin v3.1.7 and and OpenProtect sa-update channel problem ganick Linux - Server 0 02-22-2007 10:15 AM
yum update and SpamAssassin dependancy vara Red Hat 1 05-17-2005 09:55 PM
PERL update -> broke Spamassassin froedi Linux - Software 0 01-23-2005 08:08 AM
spamassassin fails after update blaroe Linux - Software 2 04-14-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:20 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
Open Source Consulting | Domain Registration