> >why isnt my autolearn working?(ok so it was one quick questiona nd one not > >so quick) > > Check to see if you have all the DB modules bayes needs to run. > > The debug output should show you if SA is skipping bayes entirely because > it can't find DB_File or some other reason... > > > spamassassin --lint -D > > I'm getting the "autolearn=unavailable" once and a while, so I'm trying to solve this too.
Looks like the 2 failed requires shouldn't be an issue. And it is finding the DB_File: debug: diag: module not installed: DBI ('require' failed)^M debug: diag: module installed: DB_File, version 1.809^M debug: diag: module not installed: Net::LDAP ('require' failed)^M Then it mentions it's tie-ing the database : debug: bayes: 66203 tie-ing to DB file R/O /usr/local/etc/spamassassin/bayes_tok s^M debug: bayes: 66203 tie-ing to DB file R/O /usr/local/etc/spamassassin/bayes_see n^M debug: bayes: found bayes db version 3^M And later its looking corpuscular : debug: bayes corpus size: nspam = 9986, nham = 4484^M And says it can't use bayes, but thats because of tokens, no? debug: cannot use bayes on this message; not enough usable tokens found^M debug: bayes: not scoring message, returning undef^M debug: bayes: 66203 untie-ing^M debug: bayes: 66203 untie-ing db_toks^M debug: bayes: 66203 untie-ing db_seen^M So looks normal to me. Thanks, Tuc