Gleen helped me, thank you all especially Gleen.<br><br><br>--<br>Cheer,<br>Nenad Vijatov<br><br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 1:22 PM, Nenad Vijatov <span dir="ltr"><<a href="mailto:nenad.vijatov@gmail.com" target="_blank">nenad.vijatov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, If I understand you, steps are:<br><br>1. rename <a href="http://local.cf" target="_blank">local.cf</a> to local.cf_whatever in /etc/mail/spamassassin/<br>
2. make symbolic link /etc/MailScanner/spam.assassin.prefs.conf to /etc/mail/spamassassin/<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a><br>
3. restart MailScanner<br><br>Am I right? :)<br>So spamassassin ONLY read config files from /etc/mail/spamassassin by default, and because of that we need config file on that path?<br><br><br>--<br>Cheers! <br><span class="HOEnZb"><font color="#888888">Nenad Vijatov</font></span><div class="HOEnZb">
<div class="h5"><br>
<br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 12:54 PM, Glenn Steen <span dir="ltr"><<a href="mailto:glenn.steen@gmail.com" target="_blank">glenn.steen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>MS call SA directly, via the perl function, yes.<br>
Verify if you have thevstandard symbolic link with:<br>
ls -l /etc/mail/spamassassin/<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a></p>
<p>If not present, create it with some tävling like:<br>
ln -s /path/to/spam.assassim.prefs.conf /etc/mail/spamassassin/<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a><br>
... where you replace /path/to/ with the files actual location on your system.</p><span><font color="#888888">
<p>-- <br>
-- Glenn</p>
</font></span><div class="gmail_quote"><span><font color="#888888">Den 1 jun 2012 12:43 skrev "Nenad Vijatov" <<a href="mailto:nenad.vijatov@gmail.com" target="_blank">nenad.vijatov@gmail.com</a>>:</font></span><div>
<div><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As I know, my MailScanner is running under postfix user.<br>I dont have softlink, so I suppose that you mean to link /etc/mail/spamassassin/<a href="http://local.cf" target="_blank">local.cf</a> to /etc/MailScanner/spam.assassin.prefs.conf? I also think that MailScanner does not use spamd by default, but call spamassasssin via perl API? Am I right?<br>
<br><br>--<br>Greetings,<br>Nenad Vijatov<br><br><br><br><div class="gmail_quote">On Thu, May 31, 2012 at 1:28 PM, Joolee <span dir="ltr"><<a href="mailto:mailscanner@joolee.nl" target="_blank">mailscanner@joolee.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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't, changing the spam.assassin.prefs.conf will produce weird results.<br>
<br>Are you aware that Mailscanner doesn't use spamd but runs spamassassin directly by its perl API?<br><br><div class="gmail_quote"><div><div>On 31 May 2012 11:49, Nenad Vijatov <span dir="ltr"><<a href="mailto:nenad.vijatov@gmail.com" target="_blank">nenad.vijatov@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>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 & Cheers!<br><br><br><br>
<br></div></div><span><font color="#888888">--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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></font></span></blockquote></div><br>
<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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>
<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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></div></div>
<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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>
</div></div></blockquote></div><br>