bayes auto expire question
Hi all I have some quetions on bayes auto expire. During the expire operation (compress and lock) does the SA engine use the bayes_toks to check the email? SA logs: warn: bayes: cannot open bayes databases /var/spamassassin/bayes_db/bayes_* R/W: lock failed: Interrupted system call info: prefork: child states: IBBIBIB Sometime the expire operation don't work properly, it seems that the compression failed (the byes_db size don't decrease) while the lock persists and the spam child in busy (B) status increase. What is the reason for this issue? Are there any information on SA log about this? I would like perform a cronjob in order to expire the byes_db. Have i to stop the MTA service before? My server: Slackware 10.2.0 Linux 2.6.34 #1 SMP Tue May 25 12:08:19 CEST 2010 i686 unknown unknown GNU/Linux SpamAssassin version 3.3.2 Perl version 5.8.7 Qmail 1.03 Spamassassin configurathion: bayes_learn_to_journal1 bayes_journal_max_size102400 bayes_expiry_max_db_size25 bayes_auto_expire1 Ask me if you need more information Thanks Leonardo -- Leonardo Verzetti Product Engineer Shared Hosting Products RD - Dada.pro leonardo.verze...@register.it
Re: bayes auto expire question
On Tue, 28 Aug 2012 16:48:29 +0200 Leonardo Verzetti wrote: Sometime the expire operation don't work properly, it seems that the compression failed (the byes_db size don't decrease) while the lock persists and the spam child in busy (B) status increase. What is the reason for this issue? Are there any information on SA log about this? There are known problems with autoexpiry due its being carried out as a side effect of scanning a mail, and hence under the same timeouts. Switching to expiry from cron is the right thing to do. You may want to check for any cruft in the bayes directory. I would like perform a cronjob in order to expire the byes_db. Have i to stop the MTA service before? Shouldn't be needed.
Re: bayes auto expire question
Il 28/08/2012 16:48, Leonardo Verzetti ha scritto: I would like perform a cronjob in order to expire the byes_db. Have i to stop the MTA service before? My server: Slackware 10.2.0 Linux 2.6.34 #1 SMP Tue May 25 12:08:19 CEST 2010 i686 unknown unknown GNU/Linux SpamAssassin version 3.3.2 Perl version 5.8.7 Qmail 1.03 Spamassassin configurathion: bayes_learn_to_journal1 bayes_journal_max_size102400 bayes_expiry_max_db_size25 bayes_auto_expire1 Change your local.cf to bayes_auto_expire 0 and run in crontab sa-learn --force-expire. When we run this cron we stop spamassassin to run the process faster, but should works also when spamassassin is still running. -- Alessio Cecchi is: @ ILS - http://www.linux.it/~alessice/ on LinkedIn - http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/ @ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it