Bayes expiry, and bayes corruption
Gib Gilbertson Jr.
gib at TMISNET.COM
Mon May 3 15:13:53 IST 2004
Hi All.
Still trying to figure out problems with bayes db corruption.
I've found that when I --lint the spamassasin rules I get the following
when "bayes_auto_expire 0" is set in spam.assassin.prefs.conf
# /usr/local/bin/spamassassin --lint -C
/usr/local/etc/MailScanner/spam.assassin.prefs.conf
Failed to parse line in SpamAssassin configuration, skipping:
bayes_auto_expire 0
Is this anything to be concerned about, or is it just skipping this one
line in the conf file?
Also I'm still getting corrupted Bayes databases about every 2nd or 3rd day
even though I now stop MailScanner, wait 30 seconds (as per suggestions
from the list), remove any lock files, then run the force expire command,
wait another 30 seconds and then restart MailScanner.
Any ideas?
Here is my bayes-expire.sh script (run from cron), and the output (e-mailed
to me) from it.
#!/bin/csh
/usr/local/etc/rc.d/mailscanner.sh stop
echo "sleeping 30 seconds"
sleep 30
/bin/ls -la /var/spool/spamassassin
sleep 5
rm /var/spool/spamassassin/bayes.lock.*
sleep 5
sa-learn -C /usr/local/etc/MailScanner/spam.assassin.prefs.conf --force-expire
echo "sleeping 30 seconds"
sleep 30
/bin/ls -la /var/spool/spamassassin
sleep 5
/usr/local/etc/rc.d/mailscanner.sh start
and the output...
Stopping MailScanner...
sleeping 30 seconds
total 7508
drwxr-xr-x 2 root wheel 512 Apr 27 09:51 .
drwxr-xr-x 13 root wheel 512 Mar 24 15:47 ..
-rw------- 1 root wheel 150 Apr 26 20:13
bayes.lock.thumper.tmisnet.com.1023
-rw------- 1 root wheel 200 Apr 26 20:45
bayes.lock.thumper.tmisnet.com.5027
-rw------- 1 root wheel 25 Apr 26 20:45
bayes.lock.thumper.tmisnet.com.5042
-rw------- 1 root wheel 6768 Apr 27 02:16 bayes_journal
-rw------- 1 root wheel 905 Apr 27 02:16 bayes_msgcount
-rw------- 1 root wheel 5128192 Apr 27 02:16 bayes_seen
-rw------- 1 root wheel 5259264 Apr 26 18:23 bayes_toks
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
Cannot open bayes_path /var/spool/spamassassin/bayes R/W: Inappropriate
file type or format
sleeping 30 seconds
total 7502
drwxr-xr-x 2 root wheel 512 Apr 27 09:52 .
drwxr-xr-x 13 root wheel 512 Mar 24 15:47 ..
-rw------- 1 root wheel 6768 Apr 27 02:16 bayes_journal
-rw------- 1 root wheel 905 Apr 27 02:16 bayes_msgcount
-rw------- 1 root wheel 5128192 Apr 27 02:16 bayes_seen
-rw------- 1 root wheel 5259264 Apr 26 18:23 bayes_toks
Starting MailScanner...
It doesn't take long for the data base to start building up again, but the
fact that it gets corrupted every 2 or 3 days is kind of a pain.
Thanks
gib
Gib Gilbertson Jr.
Tierramiga Info Systems
619-287-8647 Support
http://www.tmisnet.com
San Diego's "Friendly ISP"
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list