Why is spamd trying to write to bayes_journal?

evil_smurf

Verified User
Joined
Mar 3, 2006
Messages
112
In spamd I have:

# Bayesian classifier auto-learning (default: 1)
#
# bayes_auto_learn 1
bayes_auto_learn 0



However, when spam is identified spamd is trying to write to bayes_journal:

Dec 9 00:21:11 server1 spamd[28021]: spamd: setuid to xxx succeeded
Dec 9 00:21:12 server1 spamd[28021]: spamd: processing message <[email protected]> for xxx:507
Dec 9 00:21:12 server1 spamd[28021]: bayes: cannot write to /home/blah/.spamassassin/bayes_journal, bayes db update ignored: Permission denied
Dec 9 00:21:13 server1 spamd[28021]: spamd: identified spam (10.2/5.0) for xxx:507 in 2.0 seconds, 2579 bytes.
Dec 9 00:21:13 server1 spamd[28021]: spamd: result: Y 10 - BAYES_50,FB_GET_MEDS,FH_HOST_EQ_D_D_D_D,HTML_MESSAGE,INVALID_DATE,RCVD_IN_PBL,RCVD_IN_XBL,URIBL_JP_SURBL,URIBL_OB_SUR
BL scantime=2.0,size=2579,user=xxx,uid=507,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=39908,mid=<[email protected]>,bayes=0.456065,au
tolearn=disabled



Why is it attempting to write anything when I told it I want autolearn disabled?
 
If you have bayes enabled then SA will update the journal each time a token is found in a scanned message - basically it isn't to do with learning but rather to do with automatic expiry.

The only ways round this problem would be to either dissable bayes completey, live with the error messages in your logs, or switch to a SQL database rather than DBM (which doesn't use a journal).
 
Ah okay ty. I'll just give it permissions to write to the file.

As long as it isn't trying to automatically teach itself, I'm happy :)
 
Back
Top