Bayes DB
Martin Hepworth
martinh at SOLID-STATE-LOGIC.COM
Fri Apr 16 14:45:22 IST 2004
Gib
SA 2.55 is very old - I'd upgrade to 2.63 (cpan will do this for you).
you'll prob want a chown in the script before the MailScanner start, to
make sure the bayes files are writable/owned by the user specified in
the MailScanner.conf.
if there are still problems try turning on the debug for MS and SA in
the MailScanner.conf and running check_mailscanner as the user required.
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Gib Gilbertson Jr. wrote:
> 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"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
More information about the MailScanner
mailing list