<div dir="ltr"><div><div><div><div>Strange, that gives me:<br><br><br>--<br>This message has been scanned for viruses and<br>dangerous content by MailScanner, and is<br>believed to be clean.<br>(no report template found)<br><br><br></div>There is a symbolic link from <a href="http://mailscanner.cf">mailscanner.cf</a> to /usr/local/etc/MailScanner/spam.assassin.prefs.conf<br></div>but executing<br><br></div>spamassassing -t test.eml -C /usr/local/etc/MailScanner<br><br></div>does not test the email. It starts processing the emails in the spool instead. :-(<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-10 17:37 GMT+02:00 Martin Hepworth <span dir="ltr"><<a href="mailto:maxsec@gmail.com" target="_blank">maxsec@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"><div><div>Laszio<br><br></div>make sure you're running the same configs by running as the same user that Mailscanners is (the RunAs parameter in mailscanner.conf) and using the same config so it's picking up the <a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a><br><br></div>spamassassin -t test.email -C /directory/where/<a href="http://mailscanner.cf/is" target="_blank">mailscanner.cf/is</a><br></div><div class="gmail_extra"><br clear="all"><div><div>-- <br>Martin Hepworth, CISSP<br>Oxford, UK</div></div>
<br><div class="gmail_quote"><div><div class="h5">On 10 September 2015 at 13:50, Les <span dir="ltr"><<a href="mailto:nagylzs@gmail.com" target="_blank">nagylzs@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 class="h5"><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" target="_blank">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 href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=148581" target="_blank">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 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></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 href="mailto:owner-freebsd-questions@freebsd.org" target="_blank">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>
<br><br>
<br></div></div><span class="HOEnZb"><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/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/listinfo/mailscanner</a><br>
<br>
<br></font></span></blockquote></div><br></div>
<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/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/listinfo/mailscanner</a><br>
<br>
<br></blockquote></div><br></div>