Bayes DB
Gib Gilbertson Jr.
gib at TMISNET.COM
Fri Apr 16 14:37:16 IST 2004
Hi All.
I am still having problems with the Bayes database getting corrupted. I was
originally running a script that expired the database daily without
shutting down MailScanner. Then I configured MailScanner to do the
expiration, then I created a script to shutdown MailScanner, force a
database rebuild, then restart MailScanner.
In all 3 instances above, on the 3rd day I get the following errors when
it's time for an expiry. When I check the /var/spool/spamassassin directory
there are quite a few bayes.lock.XXX files and the only recourse at this
point is to delete all the bayes files and start again.
The below is the output of the script that is mailed to me when the error
occurs.
Stopping MailScanner...
Cannot open bayes_path /var/spool/spamassassin/bayes R/O: Inappropriate
file type or format
Cannot open bayes_path /var/spool/spamassassin/bayes R/W: Inappropriate
file type or format
Starting MailScanner...
Any ideas as to why this still happens?
In my MailScanner.conf file I have:
Rebuild Bayes Every = 0
Wait During Bayes Rebuild = no
In spam.assassin.prefs.conf I have:
bayes_auto_expire 0
And finally my script for stopping MailScanner, expiring bayes, and
starting MailScanner
#!/bin/csh
/usr/local/etc/rc.d/mailscanner.sh stop
sa-learn -C /usr/local/etc/MailScanner/spam.assassin.prefs.conf --force-expire
/usr/local/etc/rc.d/mailscanner.sh start
System is:
FreeBSD 4.9
MailScanner 4.26.8
SpamAssassin 2.55
Thanks
gib
Gib Gilbertson Jr.
Tierramiga Info Systems
619-287-8647 Support
http://www.tmisnet.com
San Diego's "Friendly ISP"
More information about the MailScanner
mailing list