Hi, I'm using SA 2.60 and have trained with about ~5.000 spams over the last weeks and months. I've started with 2.50 and switched to 2.60 a few weeks ago. Currently there are some ~300K tokens in the database which I'd like to expire with the following settings:
bayes_expiry_max_db_size 300000 bayes_journal_max_size 0 bayes_learn_during_report 0 So in fact I use bayes like this: Collect spam all over they day at two mailservers, feed them once to "sa-learn" and copy back the resulting database to the two mailservers (both are configured without autolearning). If I turn on "-D" setting in sa-learn I can see that the expiry does not work, the relevant logs: ------------------------------------------------------------------------ debug: bayes: 25815 tie-ing to DB file R/O /usr/local/scanmail/sa_bayes/bayes_toks debug: bayes: 25815 tie-ing to DB file R/O /usr/local/scanmail/sa_bayes/bayes_seen debug: bayes: found bayes db version 2 debug: Score set 2 chosen. debug: Initialising learner debug: Initialising learner debug: Syncing Bayes journal and expiring old tokens... debug: lock: 25815 created /usr/local/scanmail/sa_bayes/bayes.lock.miyako.all-about-shift.com.25815 debug: lock: 25815 trying to get lock on /usr/local/scanmail/sa_bayes/bayes with 0 retries debug: lock: 25815 link to /usr/local/scanmail/sa_bayes/bayes.lock: link ok debug: bayes: 25815 tie-ing to DB file R/W /usr/local/scanmail/sa_bayes/bayes_toks debug: bayes: 25815 tie-ing to DB file R/W /usr/local/scanmail/sa_bayes/bayes_seen debug: bayes: found bayes db version 2 debug: bayes: expiry check keep size, 75% of max: 225000 debug: bayes: token count: 294992, final goal reduction size: 69992 debug: bayes: First pass? Current: 1066478572, Last: 1066478473, atime: 1382400, count: 30427, newdelta: 600958, ratio: 2.30032536891577 debug: bayes: something fishy, calculating atime (first pass) debug: bayes: couldn't find a good delta atime, need more token difference, skipping expire. debug: Syncing complete. ------------------------------------------------------------------------ Call to sa-learn: /usr/local/bin/sa-learn --force-expire -D -C sa_learn.conf ------------------------------------------------------------------------ I searched the list archive for this issue but could not found anything regarding "something fishy", and what's that about "no good delta time". I tried to explain it myself from the §EXPIRATION" section in sa-learn...but now I'm writing to this list ,-)) Thanks for any hints, Soeren Gerlach ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk