Not sure about that error message, but you'll want to run sa-learn
as user
clamav.
From Apple's script in 10.4 server:
su - clamav -c "sa-learn --spam --no-sync
etc.
Where did you get that? On page 51 of the Mail Service manual, it
suggests:
sa-learn --showdots --spam <junk mail directory>/*
I think the one you are listing is for automatic training. I am
trying to do it manually.
Have a look at the script,
cat /etc/mail/spamassassin/learn_junk_mail
When I look at that script, at line 12 it validates that the user is
root and rejects if not.... The script I'm using is /usr/bin/sa-learn.
I checked the files in /var/amavis/.spamassassin to see if they
changed after the script is run. The mod dates seem to change every
minute (presumably every time a message is processed). After I ran
another batch of training on 60 spams, an ls shows that those files
did not change in size at all. But I'm really sure those are the only
relevant files to check. Does anyone know where the database of
baysean rules is stored?
P.S. For those just joining this thread, the error I'm seeing when
training is:
mail:~ root# sa-learn --showdots --spam /var/spool/imap/user/
[PathToSpam]/*
.............Use of uninitialized value in pattern match (m//) at /
System/Library/Perl/Extras/5.8.6/Mail/SpamAssassin/Message.pm line 225.
...
Learned from 14 message(s) (16 message(s) examined).
mail:~ root#
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden