<br><br><div class="gmail_quote">On Mon, Jun 16, 2008 at 4:12 PM, Glenn Steen &lt;<a href="mailto:glenn.steen@gmail.com">glenn.steen@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">2008/6/16 Devon Harding &lt;<a href="mailto:devonharding@gmail.com">devonharding@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 16, 2008 at 2:46 PM, Glenn Steen &lt;<a href="mailto:glenn.steen@gmail.com">glenn.steen@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 2008/6/16 Devon Harding &lt;<a href="mailto:devonharding@gmail.com">devonharding@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Devon Harding wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;| I&#39;m getting alot of spam coming through and it seems like<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;the cause of<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;| this is BAYES_00 scoring messages with -2.60. &nbsp;I&#39;m running<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;MS 4.68.8<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;| with SA *Le Service des Technologies de l&#39;Information de<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;l&#39;UdeS veut vous mettre en garde contre &quot;3.2.4&quot; qui semble<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;être une tentative de fraude envers* <a href="http://3.2.4." target="_blank">3.2.4.</a> &lt;<a href="http://3.2.4" target="_blank">http://3.2.4</a>.&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;*Le Service des Technologies de l&#39;Information de l&#39;UdeS veut<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;vous mettre en garde contre &quot;3.2.4&quot; qui semble être une<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;tentative de fraude envers* <a href="http://3.2.4" target="_blank">http://3.2.4</a>.&gt; &nbsp;I&#39;ve already<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;trained hundreds of<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;| messages like these as spam and it doesn&#39;t seem to work.<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; What else can<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;| I do?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;My guess is that you are training the wrong database. You<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;train another<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;database and not the one you are using with MailScanner.<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Hugo.<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp;For MS, where is the Bayes DB path specified? &nbsp;My DB is located<br>
&gt;&gt; &gt;&gt;&gt;&gt; here:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp; &nbsp;/etc/MailScanner/.spamassassin<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; I think my BAYES is &nbsp;all messed up. &nbsp;How do I rebuild it from<br>
&gt;&gt; &gt;&gt;&gt;&gt; scratch?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Devon,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Look here for a starter kit: <a href="http://www.fsl.com/resources.html" target="_blank">http://www.fsl.com/resources.html</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Denis<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I&#39;ve restored the starter DB and I do see the new files in<br>
&gt;&gt; &gt;&gt; /etc/MailScanner/.spamassassin (I stopped MailScanner and removed the<br>
&gt;&gt; &gt;&gt; one<br>
&gt;&gt; &gt;&gt; ones first), but SA Bayes DB Info from Mailwatch shows nothing. &nbsp;When I<br>
&gt;&gt; &gt;&gt; do a<br>
&gt;&gt; &gt;&gt; lint from the Tools tab, i Get the following:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; [5637] dbg: bayes: no dbs present, cannot tie DB R/O:<br>
&gt;&gt; &gt;&gt; //.spamassassin/bayes_toks<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hmm....I thing Bayes IS working. &nbsp;I just ran MailScanner --debug<br>
&gt;&gt; &gt; --debug-sa<br>
&gt;&gt; &gt; after the restore and did see:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: tie-ing to DB file R/W<br>
&gt;&gt; &gt; /root/.spamassassin/bayes_toks<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: tie-ing to DB file R/W<br>
&gt;&gt; &gt; /root/.spamassassin/bayes_seen<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: found bayes db version 3<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: learned<br>
&gt;&gt; &gt; &#39;88a47a16459989c19d47893de31fec608aa8f41e@sa_generated&#39;, atime:<br>
&gt;&gt; &gt; 1213631520<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: untie-ing<br>
&gt;&gt; &gt; 11:52:13 [5879] dbg: bayes: files locked, now unlocking lock<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; It seems that MailWatch is the one thats not working right. &nbsp;Any way to<br>
&gt;&gt; &gt; relink this?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -Devon<br>
&gt;&gt; &gt;<br>
&gt;&gt; Make sure your apahce user (the one running your httpd processes...<br>
&gt;&gt; hence the one running MailWatch:-) can actually read the bayes<br>
&gt;&gt; files... &quot;su&quot; is your friend here... and if you want to be able to<br>
&gt;&gt; learn via MailWatch, make sure the same user can write them too.<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; --<br>
&gt;<br>
&gt; I have the right permissions set, the thing is MailWatch is not showing any<br>
&gt; data for &#39;Bayes Database Information&#39;. &nbsp;What is the tie in for MailWatch?<br>
&gt;<br>
&gt; -rw-rw---- 1 root apache &nbsp;78K Jun 16 15:17 bayes_journal<br>
&gt; -rw-rw---- 1 root apache &nbsp;895 Jun 16 15:17 bayes.mutex<br>
&gt; -rw-rw---- 1 root apache 172K Jun 16 15:17 bayes_seen<br>
&gt; -rw-rw---- 1 root apache 5.1M Jun 16 15:17 bayes_toks<br>
&gt;<br>
&gt; -Devon<br>
&gt;<br>
</div></div>But can the apache user access the directory?<br>
MailWatch isn&#39;t particularly &quot;magical&quot; here, it uses the same info as<br>
all else...<br>
<br>
Try something like &quot;su - apache -s /bin/bash&quot; and then &quot;cd<br>
/path/to/where/you/have/the/bayes/files&quot;... Might give a clue:-)<br>
<div><div></div><div class="Wj3C7c"><br>
Cheers<br>
--<br>
-- Glenn<br></div></div></blockquote><div><br>User apache can access this fine.&nbsp; I didn&#39;t see anything&nbsp; in the&nbsp; MailWatch .conf file on&nbsp; Bayes <br></div></div>