Bayes Rebuild not happening

Eric Dantan Rzewnicki rzewnickie at RFA.ORG
Tue Mar 23 20:37:38 GMT 2004


MailScanner 4.28.6, SpamAssassin 2.63, debian woody.

I have these set in MailScanner.conf:
Rebuild Bayes Every = 86400
Wait During Bayes Rebuild = no

and this in spam.assassin.prefs.conf:
bayes_auto_expire 0

If I understand correctly, this should cause MailScanner to schedule a
daily rebuild and force-expire of my bayes database. Have I missed
something or done something wrong?

The logs show these 3 lines each day roughly 24-27 hours apart (it seems
to be happenning later each night):
Mar 23 02:47:00 scotty MailScanner[7751]: Bayes database rebuild is due
Mar 23 02:47:01 scotty MailScanner[7751]: SpamAssassin Bayes database rebuild preparing
Mar 23 02:47:01 scotty MailScanner[7751]: SpamAssassin Bayes database rebuild starting


But expiry doesn't appear to be happening:

# sa-learn --dump magic -p /opt/MailScanner/etc/spam.assassin.prefs.conf
0.000          0          2          0  non-token data: bayes db version
0.000          0      14458          0  non-token data: nspam
0.000          0      31835          0  non-token data: nham
0.000          0     272940          0  non-token data: ntokens
0.000          0 1075925447          0  non-token data: oldest atime
0.000          0 1080071560          0  non-token data: newest atime
0.000          0 1080070932          0  non-token data: last journal sync atime
0.000          0 1079477438          0  non-token data: last expiry atime
0.000          0     345600          0  non-token data: last expire atime delta
0.000          0       1515          0  non-token data: last expire reduction count
# date +%s
1080071600

That's roughly six days difference. 6 days ago I did a manual
--force-expire. Am I correct in thinking that last expiry atime is the
last time expiry was done?

I did another manual expire ...
#sa-learn --force-expire -p /opt/MailScanner/etc/spam.assassin.prefs.conf
synced Bayes databases from journal in 0 seconds: 2366 unique entries
(3541 total entries)
..............................................................................................
..............................................................................................
....................................................................................expired
old Bayes database entries in 51 seconds
139019 entries kept, 133941 deleted
token frequency: 1-occurence tokens: 47.53%
token frequency: less than 8 occurrences: 31.93%


And now the expiry atime has been updated:

# sa-learn --dump magic -p /opt/MailScanner/etc/spam.assassin.prefs.conf
0.000          0          2          0  non-token data: bayes db version
0.000          0      14461          0  non-token data: nspam
0.000          0      31836          0  non-token data: nham
0.000          0     139019          0  non-token data: ntokens
0.000          0 1079726288          0  non-token data: oldest atime
0.000          0 1080071939          0  non-token data: newest atime
0.000          0 1080071964          0  non-token data: last journal sync atime
0.000          0 1080071941          0  non-token data: last expiry atime
0.000          0     345600          0  non-token data: last expire atime delta
0.000          0     133941          0  non-token data: last expire reduction count
# date +%s
1080072023


Any ideas? Anyone else seen this?

Thanks,
Eric Rz.



More information about the MailScanner mailing list