scohen wrote: > I am using spamassassin through mimedefang [snip] > I read through information and I read that to use SA's bayes I was > supposed to put something like this in /etc/spamassassin/local.cf: > > use_bayes 1 > bayes_auto_learn > bayes_path /var/spool/spamassassin/ > bayes_file_mode 0777 > > So that's what I did. I read that in the /var/spool/spamassassin/ > directory files named bayes-toks and bayes_seen would be created, yet > they are not there. Am I doing something wrong?
Yes, a few things. "bayes_path" isn't really a path in the usual sense, it's more of a "pathname prefix". You probably want: bayes_path /var/spool/spamassassin/bayes So far as I understand the code, it *should* be OK to just use a raw path, but apparently there's something that causes that to fail for a lot of people. I've never tried for myself. You shouldn't need the bayes_file_mode entry; although it doesn't do much harm to leave it in and makes life MUCH easier if you want to run sa-learn manually as a different user. bayes_auto_learn needs an argument; 1 or 0 for on or off repespectively. Since you're calling SA from MIMEDefang, you'll have to make /var/spool/spamassassin is owned by the same user MD is running as. I just put the Bayes files in /var/spool/MIMEDefang, which is created by the MD install and should already have correct permissions. The MD user (and maybe root) are the ONLY users which should need regular access to the Bayes files. You may want to set bayes_auto_learn_threshold_nonspam as well; I found that the default of 0.1 (for SA2.63) ended up causing very low-scoring spam to get autolearned as ham (!!). -kgd -- "Sendmail administration is not black magic. There are legitimate technical reasons why it requires the sacrificing of a live chicken." - Unknown
