As Arjan stated, use sa-learn with sudo to run it in the same user as Mailscanner uses.<br><br>Also, there should be a softlink in your /etc/spamassassin folder to /etc/MailScanner/spam.assassin.prefs.conf. If there isn&#39;t, changing the spam.assassin.prefs.conf will produce weird results.<br>

<br>Are you aware that Mailscanner doesn&#39;t use spamd but runs spamassassin directly by its perl API?<br><br><div class="gmail_quote">On 31 May 2012 11:49, Nenad Vijatov <span dir="ltr">&lt;<a href="mailto:nenad.vijatov@gmail.com" target="_blank">nenad.vijatov@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br><br>I have a problem with spamassassin bayes autolearn, exactly the problem is I have different bayed db:<br>

<br><font><span style="font-family:courier new,monospace">sa-learn --dump magic:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">0.000          0          3          0  non-token data: bayes db version</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">0.000          0         27          0  non-token data: nspam</span><br style="font-family:courier new,monospace">


<span style="font-family:courier new,monospace">0.000          0          0          0  non-token data: nham</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">0.000          0      28179          0  non-token data: ntokens</span></font><br>


<br><span style="font-family:courier new,monospace">sa-learn --dump magic -p /etc/MailScanner/spam.assassin.prefs.conf:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">0.000          0          3          0  non-token data: bayes db version</span><br style="font-family:courier new,monospace">


<span style="font-family:courier new,monospace">0.000          0         89          0  non-token data: nspam</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">0.000          0        135          0  non-token data: nham</span><br style="font-family:courier new,monospace">


<span style="font-family:courier new,monospace">0.000          0      21025          0  non-token data: ntokens</span><br><br>Is this a problem with wrong configuration, does my spamassassin use spam.assassin.prefs.conf or not? And how I can be sure that my spamassassin uses spam.assassin.prefs.conf or not, and which one of those two dumps are the right one that spamassassin use?<br>


<br><br>Thank you &amp; Cheers!<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" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></blockquote></div><br>