On Wednesday 17 March 2004 6:22 pm, Frank Barton wrote:
> I am running Spammassassin 2.53 through MIMEDefang (obviously a system-wide
> install) and am trying to set it up such that it can learn via sa-learn.
>
> So far I have taught it from my user using sa-learn --spam and --ham as the
> case may be for well over 200 messages each, and haven't had any luck.
You need to teach it as the MIMEDefang user (probably defang). Optionally,
you can set bayes_path in your SA config to define a single system-wide Bayes
database, and use bayes_file_mode to allow other users to update it.
For example, in /etc/mail/spamassassin/local.cf:
use_bayes 1
bayes_path /var/spool/spamassassin/bayes
bayes_file_mode 777
auto_learn 1
...with the directory /var/spool/spamassassin owned by defang. (Don't use 777
if you have local users you don't want messing with the database, though.)
--
Kelson Vibber
SpeedGate Communications, <www.speed.net>