<br><br><div class="gmail_quote">On Tue, Jun 15, 2010 at 11:03 AM, Martin Hepworth <span dir="ltr">&lt;<a href="mailto:maxsec@gmail.com">maxsec@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">On 15 June 2010 16:38, Dragon Slayr <span dir="ltr">&lt;<a href="mailto:dragonslayr@gmail.com" target="_blank">dragonslayr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div>On Tue, Jun 15, 2010 at 3:10 AM, Martin Hepworth <span dir="ltr">&lt;<a href="mailto:maxsec@gmail.com" target="_blank">maxsec@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div>On 15 June 2010 06:19, Dragon Slayr <span dir="ltr">&lt;<a href="mailto:dragonslayr@gmail.com" target="_blank">dragonslayr@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
I&#39;ve just built a box with Ubuntu Lucid. Everything now now going great in testing.<br>However, I attempted to import my old spamassassin database as root with this command.<br>sa-learn -p /etc/MailScanner/spam.assassin.prefs.conf --restore sa_bayes_backup.txt<br>




<br>That gave me a nice database in the /root directory. :(<br><br>So, I thought I&#39;d better ask. Should I run this as the postfix user like this?<br>sa-learn -u postfix -p /etc/MailScanner/spam.assassin.prefs.conf --restore sa_bayes_backup.txt<br>




<br>Also, now when I do sudo -u postfix spamassassin --lint -D, I get permission errors attempting to read root..   &lt;Sigh...&gt;<br><br>As you can see, I&#39;m a bit confused. For a last question, can change things so spamassassin just keeps a global database and forget all this user stuff?  It&#39;s a incoming mail server only. There are no local users.<br>




<br>Thanks in advance!<br><br><br>
<br></div></div>--<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>Hi<br><br>you need to make sure that the bayes files are pointing at the correct place in the mailscanner.conf for the user you are running mailscanner as, and also of course make sure the permissions on the bayes dir/files are good for the &#39;run as&#39; user.<br>


<font color="#888888">
<br clear="all"></font></blockquote></div></div><div>Thank You! For googling sake, I&#39;ll post what I did.<br><br>Run this line, with every spamassissin command<div><br>-p /etc/MailScanner/spam.assassin.prefs.conf<br>
<br></div>Then, after learning, the permissions were messed up on the bayes files in /var/lib/MailScanner. &quot;As shown my MailScanner --lint<br>
I changed them by doing &quot;chown postfix:www-data bayes*&quot;<br><br>Note, since I had deleted the /root/.spamassassin directory, to keep spamassassin from barfing, I relearned one spam message as root.<br><br><br><br>


<br></div></div></blockquote></div></div><div><br>you shouldn&#39;t need the -p anymore. Mailscanner now inserts a 
<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a> with a correct sym link back to 
/etc/MailScanner/spam.assassin.prefs.conf .....unless of course you&#39;re 
running a really really old MS.<br>
<br>make sure you do the sa-learns as the postfix account and you&#39;ll won&#39;t get SA messing with the perms of the bayes.<br><br></div></div></blockquote><div><br> </div><br>
How odd..  I do not seem to have a &quot;<a href="http://mailscanner.cf">mailscanner.cf</a>&quot; on the 
system. I am running version Installed: 4.79.11-2 obtained from here. 
<a href="http://debian.intergenia.de/debian/pool/main/m/mailscanner/mailscanner_4.79.11-2_all.deb">http://debian.intergenia.de/debian/pool/main/m/mailscanner/mailscanner_4.79.11-2_all.deb</a></div><br>