I have SA 2.60 running on a Redhat 8 system with CommuniGate Pro. The setup works very well except that auto-learning doesn't work. When I send myself a ham that is below the threshold, I see the Bayesian attempting to learn, only to fail on creating a temporary lockfile:
Oct 22 16:25:47 14853 spamd[20281]: debug: DNS MX records found: 1
Oct 22 16:25:47 14853 spamd[20281]: debug: RBL: success for 1 of 1 queries
Oct 22 16:25:47 14853 spamd[20281]: debug: running meta tests; score so far=0
Oct 22 16:25:47 14853 spamd[20281]: debug: auto-learn? ham=1, spam=10.5, body-hits=0, head-hits=0
Oct 22 16:25:47 14853 spamd[20281]: debug: auto-learn: currently using scoreset 1. no need to recompute.
Oct 22 16:25:47 14853 spamd[20281]: debug: auto-learn? yes, ham (0 < 1)
Oct 22 16:25:47 14853 spamd[20281]: debug: Learning Ham
Oct 22 16:25:47 14853 spamd[20281]: debug: uri tests: Done uriRE
Oct 22 16:25:47 14853 spamd[20281]: debug: bayes: 20281 untie-ing
Oct 22 16:25:47 14853 spamd[20281]: debug: auto-learning failed: lock: 20281 cannot create tmp lockfile /opt
/mail/spam/bayes.lock.14853.net.20281 for /opt/mail/spam/bayes.lock: Permission denied
I have seen a previous message on this list regarding this error, but it turns out the poster had incorrect permissions. My permissions should be correct:
$ ls -ld /opt/mail/spam drwxrwxr-x 6 spamd spamd 4096 Oct 22 15:54 /opt/mail/spam/ $ ls -l /opt/mail/spam total 24 drwxrwxr-x 2 spamd spamd 4096 Oct 17 14:02 awl/ drwxrwxr-x 2 spamd spamd 4096 Oct 22 15:16 bayes_old/ drwxrwxr-x 3 spamd spamd 4096 Oct 21 11:54 helper_home/ -rwxrwxr-x 1 spamd spamd 241 Oct 22 15:51 spamd.sh* -rwxrwxr-x 1 spamd spamd 3435 Oct 13 11:25 spamscan.sh* drwxrwxr-x 3 spamd spamd 4096 Oct 13 11:20 userconfigs/
I created a user and group "spamd", and I invoke spamd with "-u spamd". I even tried making the /opt/mail/spam directory world-writeable, but I still got the lockfile error. For completeness, the relevant part of my local.cf is below:
### Bayesian bayes_path /opt/mail/spam/bayes bayes_auto_learn 1 bayes_auto_learn_threshold_spam 10.5 bayes_auto_learn_threshold_nonspam 1.0 #bayes_min_ham_num 200 #bayes_min_spam_num 200 bayes_min_ham_num 5 bayes_min_spam_num 5 bayes_journal_max_size 1024000 bayes_expiry_max_db_size 110000 bayes_auto_expire 1 ###
Any help would be much appreciated.
Thanks, Peter
------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk