<div dir="ltr">Given a test file "test.eml" I can run this test:
<br>
<br>spamassassin -t test.eml
<br>
<br>and I get this:
<br>
<br><blockquote type="cite" style="color:rgb(0,0,0)">
<br>-- <br>This message has been scanned for viruses and
<br>dangerous content by MailScanner, and is
<br>believed to be clean.
<br>
<br>Spam detection software, running on the system "<a href="http://shopzeus.com">shopzeus.com</a>",
<br>has NOT identified this incoming email as spam.  The original
<br>message has been attached to this so you can view it or label
<br>similar future email.  If you have any questions, see
<br>The administrator of that system for details.
<br>
<br>Content preview:  We've run into ths bug: 
<a class="" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=148581">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=148581</a>
<br>   [libc] fopen(3) fails with EMFILE if there are more than SHORT_MAX 
fds open
<br>   [...]
<br>
<br>Content analysis details:   (-5.0 points, 5.0 required)
<br>
<br> pts rule name              description
<br>---- ---------------------- 
--------------------------------------------------
<br>-5.0 RCVD_IN_DNSWL_HI       RBL: Sender listed at 
<a class="" href="http://www.dnswl.org/">http://www.dnswl.org/</a>, high
<br>                            trust
<br>                            [8.8.178.116 listed in <a href="http://list.dnswl.org">list.dnswl.org</a>]
<br></blockquote>
<br>However, the very same email went through postfix/Mailscanner and 
resulted in these headers:
<br>
<br><blockquote type="cite" style="color:rgb(0,0,0)">X-shopzeus-MailScanner-Information: Please contact the ISP for more 
information
<br>X-shopzeus-MailScanner-ID: 4FFF48895E15.AB608
<br>X-shopzeus-MailScanner: Found to be clean
<br>X-shopzeus-MailScanner-SpamCheck: spam, JUNKEMAIL
<br>X-shopzeus-MailScanner-From: <a class="" href="mailto:owner-freebsd-questions@freebsd.org">owner-freebsd-questions@freebsd.org</a>
<br>X-Spam-Status: Yes
<br></blockquote>
<br>So the "spamassassin -t" command gives -5.0 score identifying as ham, 
but when the email actually comes in then it is identified as spam.
<br>
<br>Looks like spamassassin is using different rules/settings when it is ran 
from the mailscanner daemon. The configuration should be the same ( 
/usr/local/etc/mail/spamassassin is a symbolic link to 
/usr/local/etc/MailScanner/spam.assassin.prefs.conf )
<br>
<br>I cannot test spamassassin with the same user, because it is postfix 
which is disabled:
<br>
<br><blockquote type="cite" style="color:rgb(0,0,0)">
<br># su postfix " spamassassin -t test.eml "
<br>This account is currently not available.
<br></blockquote>
<br>
<br>How to overcome this problem? What is going on here?
<br>
<br>Mailscanner version: MailScanner-4.84.6
<br>Spamassassin version: 3.4.1
<br>
<br>Thanks
<br>
<br>   Laszlo
</div>