<div dir="ltr">I'm a bit closer to the solution now. Here is what I have found in the message headers:<br><br><pre>X-shopzeus-MailScanner-SpamCheck: spam, JUNKEMAIL<br><br></pre><pre>And there is a JUNKEMAIL RBL list setting indeed:<br><br><br># grep JUNKE spam.lists.conf<br>JUNKEMAIL                       <a href="http://hostkarma.junkemailfilter.com">hostkarma.junkemailfilter.com</a>.<br><br></pre><pre>I have realized that most of the false positives came from this RBL.<br>After removing JUNKEMAIL RBL list from the checks, most non-spam mails are not classified as spam.<br>This still does not explain why spamassassin is giving different results when ran from the command line.<br><br>The strangest thing is that I cannot find any blacklisting of any of the addresses at junkemail.<br><br></pre><pre>The problem is almost solved, but I'm really curious. What is happening here?<br></pre><pre><br></pre><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-11 14:33 GMT+02:00 Les <span dir="ltr"><<a href="mailto:nagylzs@gmail.com" target="_blank">nagylzs@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> What's next?<br>
<br>
Is /usr/local/etc/MailScanner a valid spamassassin configuration directory ?<br></blockquote></span><div>It's not. <br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I think what you want is<br>
<br>
su postfix -c 'spamassassin -p /usr/local/etc/MailScanner/spam.assassin.prefs.conf < /tmp/test.eml '<br></blockquote><br></span></div>Also need the -t option.<br><span style="font-family:monospace,monospace"><br>su postfix -c 'spamassassin -p /usr/local/etc/MailScanner/spam.assassin.prefs.conf -t < /tmp/test.eml '</span><br><br></div><div class="gmail_extra">Result is this:<br><br><br><span style="font-family:monospace,monospace"><span class="">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 href="http://www.dnswl.org/" target="_blank">http://www.dnswl.org/</a>, high<br>                            trust<br>                            [8.8.178.116 listed in <a href="http://list.dnswl.org" target="_blank">list.dnswl.org</a>]<br></span> 0.0 T_TVD_MIME_EPI         BODY: No description available.</span><br><br></div><div class="gmail_extra">So it is still identified as ham. But the live server has identified it as spam. :-(<br></div></div>
</blockquote></div><br></div>