Gene Heskett wrote:
On Tuesday 21 July 2009, Bowie Bailey wrote:
If permissions are 0700 and sa-update cannot read the directory, then
sa-update is not running as the user "saupdate". Double-check which
user sa-update runs as and chown the directory to that user.
Here is the line, in the display of:
su saupdate -c "crontab -e":
45 2 * * 2 /usr/bin/sa-update --gpghomedir /var/lib/spamassassin/keys
So it should be running as saupdate.
This is executed silently:
[r...@coyote linux-2.6.30-rc8]# su saupdate -c "/usr/bin/sa-update --gpghomedir
/var/lib/spamassassin/keys"
[r...@coyote linux-2.6.30-rc8]#
And I have not received an email from it, so I assume that 0700 fixed it.
However, I haven't been impressed with the sa-learn operation recently, I
have fed it at least 100 messages from one site, and still can't get a score
over 3 for those.
First off, sa-learn and sa-update have absolutely nothing to do with
each other. sa-update downloads new rules and sa-learn trains the Bayes
subsystem. Just wanted to clarify this since your last message seemed
to imply that you thought they were connected somehow.
Are you getting BAYES_XX hits for the messages? Bayes needs to learn
from at least 200 ham and 200 spam before it will start scoring. Also,
make sure that you are running sa-learn as the same user SA is running
as. A classic mistake is to run SA as one user and then run sa-learn as
a different user. What happens is that you are not training the
database that is actually being used. Keep in mind that if SA is
running per-user, then you must run sa-learn for each user.
--
Bowie