postfix@mailbeta:/root$ cat /etc/MailScanner/MailScanner.conf | grep Bayes<br># If you are using the Bayesian statistics engine on a busy server,<br># you may well need to force a Bayesian database rebuild and expiry<br>Rebuild Bayes Every = 1
<br># The Bayesian database rebuild and expiry may take a 2 or 3 minutes<br>Wait During Bayes Rebuild = no<br>postfix@mailbeta:/root$<br>----------------<br><br>postfix@mailbeta:/root$ cat /etc/MailScanner/spam.assassin.prefs.conf | grep bayes_auto
<br>bayes_auto_learn 1<br>bayes_auto_expire 0<br>postfix@mailbeta:/root$<br>--------------<br>postfix@mailbeta:/root$ sa-learn --dump magic<br>0.000 0 3 0 non-token data: bayes db version<br>0.000
0 735 0 non-token data: nspam<br>0.000 0 1018 0 non-token data: nham<br>0.000 0 57513 0 non-token data: ntokens<br>0.000 0 1188655746 0 non-token data: oldest atime
<br>0.000 0 1189092763 0 non-token data: newest atime<br>0.000 0 1189091016 0 non-token data: last journal sync atime<br>0.000 0 1189091016 0 non-token data: last expiry atime
<br>0.000 0 0 0 non-token data: last expire atime delta<br>0.000 0 0 0 non-token data: last expire reduction count<br>postfix@mailbeta:/root$<br><br><br><div><span class="gmail_quote">
2007/9/6, Gareth <<a href="mailto:list-mailscanner@linguaphone.com">list-mailscanner@linguaphone.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Lets see what method is used for automatic bayes expiry :-<br><br>cat /etc/MailScanner/MailScanner.conf | grep Bayes<br>cat /etc/MailScanner/spam.assassin.prefs.conf | grep bayes_auto<br><br>Lets see the bayes statistics :-
<br>su postfix<br>sa-learn --dump magic<br><br>On Thu, 2007-09-06 at 16:03, infolistas listas wrote:<br>> root@mailbeta:~# su postfix<br>> postfix@mailbeta:/root$ sa-learn --force-expire<br>> bayes: synced databases from journal in 0 seconds: 1720 unique entries
<br>> (3957 total entries)<br>> postfix@mailbeta:/root$<br>><br>><br>> 2007/9/6, Gareth <<a href="mailto:list-mailscanner@linguaphone.com">list-mailscanner@linguaphone.com</a>>:<br>> Try suing to the postfix user and then doing a manual bayes
<br>> expire :-<br>><br>> su postfix<br>> sa-learn --force-expire<br>><br>> On Thu, 2007-09-06 at 15:37, infolistas listas wrote:<br>> > root@mailbeta:~# ls -la /var/lib/MailScanner
<br>> > total 324<br>> > drwxr-x--- 2 postfix postfix 4096 2007-09-06 10:46 .<br>> > drwxr-xr-x 58 root root 4096 2007-09-01 22:42 ..<br>> > -rw------- 1 postfix postfix 45056 2007-09-01 09:35
<br>> auto-whitelist<br>> > -rw------- 1 postfix postfix 12288 2007-09-01 09:31<br>> bayes_seen<br>> > -rw------- 1 postfix postfix 335872 2007-09-01 09:31<br>> bayes_toks
<br>> > root@mailbeta:~#<br>> ><br>> ><br>> > 2007/9/6, Gareth <<a href="mailto:list-mailscanner@linguaphone.com">list-mailscanner@linguaphone.com</a>>:<br>> > Can you post the output of the following in that
<br>> case ( i.e<br>> > the directory<br>> > containing the bayes files).<br>> ><br>> > ls -la /var/lib/MailScanner<br>> >
<br>> ><br>> > On Thu, 2007-09-06 at 15:08, infolistas listas<br>> wrote:<br>> > > the file it self /bayes doesnt exist there I have<br>> > > bayes_seen , bayes_toks and auto_whitelists
<br>> > ><br>> > > 2007/9/6, Gareth<br>> <<a href="mailto:list-mailscanner@linguaphone.com">list-mailscanner@linguaphone.com</a>>:<br>> > > Can you post the output from :-
<br>> > > ls -la /var/lib/MailScanner/bayes<br>> > ><br>> > > On Thu, 2007-09-06 at 14:53, infolistas<br>> listas<br>> > wrote:
<br>> > > > My bayes is stored on<br>> > > > /var/lib/MailScanner/bayes<br>> > > ><br>> > > > Cant open them ...
<br>> > > ><br>> > > > 2007/9/5, Matt Hayes<br>> > <<a href="mailto:mailscanner@slackadelic.com">mailscanner@slackadelic.com
</a>>:<br>> > > > Scott Silva wrote:<br>> > > > >>><br>> > > > >>> infolistas listas spake
<br>> the<br>> > following on<br>> > > 9/4/2007<br>> > > > 12:35 PM:<br>> > > > >>> > Guys I think mail
<br>> scanner isnt<br>> > releasing<br>> > > my mail<br>> > > > that are on<br>> > > > >>> queue and
<br>> > > > >>> > its stopping all mail<br>> to go out<br>> > and in<br>> > > > >>> >
<br>> > > > >>> > c logs<br>> > <a href="http://rapido.mfplan.com.br">http://rapido.mfplan.com.br</a><br>> > > > >>> >
<br>> > > > >>> It looks like it is<br>> choking on<br>> > your bayes<br>> > > rebuild.<br>> > > > Look in your
<br>> > > > >>> bayes<br>> > > > >>> directory for a bunch of<br>> files<br>> > with expire
<br>> > > in their<br>> > > > name. You might<br>> > > > >>> need to<br>> > > > >>> run an expiry run with
<br>> mailscanner<br>> > stopped<br>> > > as the<br>> > > > mailscanner user.<br>> > > > >>>
<br>> > > > >>> --<br>> > > > >>><br>> > > > >>> MailScanner is like
<br>> deodorant...<br>> > > > >>> You hope everybody uses<br>> it, and<br>> > > > >>> you notice quickly if
<br>> they<br>> > don't!!!!<br>> > > > >>><br>> > > > >> where do I find this bayes
<br>> directory ,<br>> > its<br>> > > getting worse<br>> > > > every moment<br>> > > > >> now even rebooting the system
<br>> or using<br>> > the<br>> > > postsuper -r<br>> > > > ALL it isnt<br>> > > > >> working... how to I stop
<br>> holding them<br>> > so long???<br>> > > Thnaks<br>> > > > >><br>> > > >
<br>> > > ><br>> > > ><br>> > > ><br>> > > > The bayes directory depends on
<br>> where you<br>> > put it when<br>> > > you<br>> > > > configure<br>> > > > MailScanner. You need to read
<br>> your<br>> > > etc/spam.assassin.prefs<br>> > > > file to see<br>> > > > where you put it or where its
<br>> trying to<br>> > put it.<br>> > > ><br>> > > > -Matt<br>> > > > --
<br>> > > > MailScanner mailing list<br>> > > ><br>> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info
</a><br>> > > ><br>> > ><br>> ><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner
</a><br>> > > ><br>> > > > Before posting, read<br>> > > <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting
</a><br>> > > ><br>> > > > Support MailScanner development<br>> - buy the<br>> > book off<br>> > > the
<br>> > > > website!<br>> > > ><br>> > > ><br>> > > ><br>> > > >
<br>> > ><br>> ><br>> ______________________________________________________________________<br>> > > > --<br>> > > > MailScanner mailing list
<br>> > > > <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>> > > ><br>> ><br>>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>> > > ><br>> > > > Before posting, read
<br>> > <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>> > > ><br>> > > > Support MailScanner development - buy
<br>> the book off<br>> > the<br>> > > website!<br>> > ><br>> > > --<br>> > > MailScanner mailing list
<br>> > > <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>> > ><br>> ><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">
http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>> > ><br>> > > Before posting, read<br>> > <a href="http://wiki.mailscanner.info/posting">
http://wiki.mailscanner.info/posting</a><br>> > ><br>> > > Support MailScanner development - buy the<br>> book off<br>> > the<br>> > > website!
<br>> > ><br>> > ><br>> > ><br>> > ><br>> ><br>> ______________________________________________________________________
<br>> > > --<br>> > > MailScanner mailing list<br>> > > <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>
<br>> > ><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>> > ><br>> > > Before posting, read
<br>> <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>> > ><br>> > > Support MailScanner development - buy the book off
<br>> the<br>> > website!<br>> ><br>> > --<br>> > MailScanner mailing list<br>> > <a href="mailto:mailscanner@lists.mailscanner.info">
mailscanner@lists.mailscanner.info</a><br>> ><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>> >
<br>> > Before posting, read<br>> <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>> ><br>> > Support MailScanner development - buy the book off
<br>> the<br>> > website!<br>> ><br>> ><br>> ><br>> ><br>> ______________________________________________________________________
<br>> > --<br>> > MailScanner mailing list<br>> > <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>> > <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">
http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>> ><br>> > Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>> >
<br>> > Support MailScanner development - buy the book off the<br>> website!<br>><br>> --<br>> MailScanner mailing list<br>> <a href="mailto:mailscanner@lists.mailscanner.info">
mailscanner@lists.mailscanner.info</a><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>><br>> Before posting, read
<a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>><br>> Support MailScanner development - buy the book off the<br>> website!<br>><br>><br>><br>> ______________________________________________________________________
<br>> --<br>> MailScanner mailing list<br>> <a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">
http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>><br>> Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>><br>> Support MailScanner development - buy the book off the website!
<br><br>--<br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner
</a><br><br>Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website!<br></blockquote></div><br>