Hi

/usr/share/spamassassin   - contains version release time rules, always used 
unless next dir exists.

/var/lib/spamassassin/<version>/  - contains 'sa-update'ed rules to bring 
release time rules upto date without needing a full version release

/etc/mail/spamassassin - contains site wide rules and settings.

~/.spamassassin contains user specific rules.

So copying rules from /usr/share/spamassassin to ~/.spamassassin will achieve 
nothing.
 
Get the idea now?
-- 
martin

-----Original Message-----
From: aladdin <[EMAIL PROTECTED]>
Sent: Sunday, September 14, 2008 3:13 PM
To: users@spamassassin.apache.org
Subject: Re: Spamassassin Letting a Lot of Spams Through

On Sunday 14 September 2008 10:06, aladdin wrote:
> On Sunday 14 September 2008 05:07, you wrote:
> > On Sun, 2008-09-14 at 01:05 -0400, aladdin wrote:
> > > > So, evidently, it can't find my bayes database.  So, since I want to
> > > > use a system-wide database, where is it (/usr/share/spamassassin?,
> > > > which has a lot of likely looking files in it), and how do I tell
> > > > spamd to use it?
> >
> > By default it is in the .spamassassin directory of the user SA runs in.
> >
> > Using /usr/share/spamassin sounds like a bad idea to me: you're
> > attempting to mix site-specific data with system files.
> >
> >
> > Martin
>
> Hmmm!  Oddly enough, that's where apt (the Debian package manager) put
> them. So, I guess that leads to two more areas of questions:
>
> 1. Is there no precedent for stopping spam using system-wide files?  I am
> almost the sole user of this machine and would like to do this, if it's
> possibe.  Why would apt put them there otherwise?
>
> 2. If question one leads to user-specific files & directories, do I just
> take the contents of /usr/share/spamassassin and copy it into
> ~/.spamassassin? The contents of /usr/share/spamassassin are:
> ###########################################################
> total 676
> drwxr-xr-x   2 root root   4096 2008-09-07 19:24 ./
> drwxr-xr-x 256 root root  12288 2008-09-07 19:24 ../
> -rw-r--r--   1 root root   5681 2007-02-15 00:28 10_misc.cf

                                 <snip>

> -rw-r--r--   1 root root  18944 2007-02-15 00:28 triplets.txt
> -rw-r--r--   1 root root   1843 2007-02-15 00:28 user_prefs.template
> ####################################################################
> Are these the files to be copied to ~/.spamassassin?

As it turns out, I do have a ~/.spamassassin directory.  It's current contents 
are:
#################################################################
-rw-------  1 anw anw 1306624 2008-09-14 03:38 auto-whitelist
-rw-------  1 anw anw   88190 2008-07-28 16:52 bayes_journal
-rw-------  1 anw anw  684032 2008-07-28 16:52 bayes_seen
-rw-------  1 anw anw 5283840 2008-07-28 16:52 bayes_toks
-rw-r--r--  1 anw anw    1487 2008-07-28 16:52 user_prefs
#################################################################

Should I just copy the above into it and change the owner/group, and that's 
how spamassassin is supposed to work?

-- 
Thanks and regards,
anw

**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the 
addressee only and may be confidential. If they come to you in error 
you must take no action based on them, nor must you copy or show them 
to anyone. Please advise the sender by replying to this e-mail 
immediately and then delete the original from your computer.
Opinion : Any opinions expressed in this e-mail are entirely those of 
the author and unless specifically stated to the contrary, are not 
necessarily those of the author's employer.
Security Warning : Internet e-mail is not necessarily a secure 
communications medium and can be subject to data corruption. We advise 
that you consider this fact when e-mailing us. 
Viruses : We have taken steps to ensure that this e-mail and any 
attachments are free from known viruses but in keeping with good 
computing practice, you should ensure that they are virus free.

Red Lion 49 Ltd T/A Solid State Logic
Registered as a limited company in England and Wales 
(Company No:5362730)
Registered Office: 25 Spring Hill Road, Begbroke, Oxford OX5 1RU, 
United Kingdom
**********************************************************************

Reply via email to