I suggest using a directory that is readable by the defang user.
By defang, only root can access files inside /root

So, here is the my recomended setup:
in sa-mimedefang.conf put this lines:
bayes_path /var/db/spamassassin/bayes/bayes
bayes_file_mode 664

Then, create the directory
mkdir -p /var/db/spamassassin/bayes/
chown defang.defang -R /var/db/spamassassin/bayes

Look the bayes files grow:
ls -l /var/db/spamassassin/bayes/bayes*
-rw-rw-r-- 1 defang defang 52464 Feb 3 13:32 /var/db/spamassassin/bayes/bayes_journal -rw-rw-rw- 1 defang defang 83968000 Feb 3 13:30 /var/db/spamassassin/bayes/bayes_seen -rw-rw-r-- 1 defang defang 5414912 Feb 3 13:30 /var/db/spamassassin/bayes/bayes_toks -rw-rw-r-- 1 defang defang 5390336 Aug 4 2006 /var/db/spamassassin/bayes/bayes_toks.expire25608

Then run sa-learn with:
sa-lean -p /etc/mail/sa-mimedefang.conf

HTH
Oliver

Pierre Forget wrote:
Hi,

I already had two servers configured the same way with Mimedefang and BAYES is working with those two servers.

I have a third one, which I think is a similar setup, but I can't make BAYES to work.

If I use sa-learn to learn ham or spam, I see the result with sa-learn --dump magic. 3483 spam and 207 ham. Which is fine. But I never see a BAYES in the SPam scores.

BAYES files are in /root/.spamassassin. Spamassassin is used with Mimedefang server wide.

--
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to