<html><head></head><body><!-- This file has been automatically generated. See web/README.md -->
<div id="compose-container" style="direction: ltr" itemscope="" itemtype="https://schema.org/EmailMessage">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization">
<span itemprop="name" content="Outlook Mobile for iOS"></span>
</span>
<div>
<div><div style="direction: ltr;">Hi,</div><div><br></div><div style="direction: ltr;">I am in the process of moving he shop and DNS off the mail server, then I can wipe and reload, hopefully a clean system will solve the issues.</div><div><br></div><div style="direction: ltr;">The one I am using at the moment has several attempts at different things including a previous spam assassin attempt</div><div><br></div><div style="direction: ltr;">Thanks to you all who tried to help to resolve my mess.</div></div>
<div><br></div>
<div class="acompli_signature"><div>Regards </div><div><br></div><div><br></div><div>Toby Widdows</div></div>
</div>
</div><br><br><br>
<div class="gmail_quote">On Tue, Jun 19, 2018 at 7:53 PM +0100, "Shawn Iverson" <span dir="ltr"><<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>></span> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="3D"ltr"">
<div dir="ltr">Toby,<div><br></div><div>You can view the install.sh script to get an idea, but MailScanner isn't just the MailScanner rpm (which is unlikely to be the issue, anyways), it is the literally dozens of perl modules and various binaries that are used with MailSCanner. You could in theory, remove them all, but I am unsure it would be a fruitful effort.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 11, 2018 at 4:19 PM, Toby <span dir="ltr"><<a href="mailto:toby@rosecott.net" target="_blank">toby@rosecott.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi,</div><div><br></div><div>i have come to the conclusion that there is something seriously wrong with this deployment of mailscanner.</div><div><br></div><div>even though i can manually call spamassassin as the postfix user, using the mailscanner spamassassin config, and get successful result, when its all triggered as part of the mail route, its rubbish again. </div><div><br></div><div>I timed the manual scan and it took 11 seconds to complete. in the mail log, the time between spam checks starting and completing is 3 seconds at best.</div><div><br></div><div>blacklists are not working either, i have 4 email domains listed and am still getting emails from them.</div><div><br></div><div>this may be because the system already had an installation of spamassassin installed originally</div><div><br></div><div>is there a reliable way to remove all traces of mailscanner and spamassassin and start again (preferably without wiping the server which does dhcp and dns as well?)</div><div><br></div><div><br></div><div><br></div><div><br></div>
<div>------ Original Message ------</div>
<div>From: "Shawn Iverson" <<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>></div>
<div>To: "MailScanner Discussion" <<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.<wbr>mailscanner.info</a>></div>
<div>Sent: 09/06/2018 08:42:20</div>
<div>Subject: Re: Re[2]: Mailscanner - Spamassassin Issue</div><div><br></div>
<div id="m_4224206992129607022xfe99a5aceda44bb"><blockquote cite="http://CABu_8z+a_j0V1YkoZ5uYt+AC4A-ZaK0DdoRvQy2sVXaCm1sbmQ@mail.gmail.com" type="cite" class="m_4224206992129607022cite2">
<div dir="ltr">Toby,<div><br></div><div>Out of curiosity, what are these defined in your MailScanner.conf?</div><div><br></div><div>SpamAssassin Local Rules Dir</div><div>SpamAssassin Local State Dir<br></div><div>SpamAssassin Default Rules Dir<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 8, 2018 at 8:16 PM, Toby <span dir="ltr"><<a href="mailto:toby@rosecott.net" target="_blank">toby@rosecott.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="m_4224206992129607022m_-1319367504151341883plain"><div>Hi,</div><div><br></div><div>Thanks again for the work put in here, i have been looking at your reply :-</div><div><br></div><div>1. I would recommend removing the /var/spool/postfix/.spamassass<wbr>in/user_prefs file and maybe even the entire .spamassassin dir to avoid any confusion. The MailScanner service script should be starting as user root to read all of it's configs then lowering it's privs by switching to the postfix user.</div>
<div><br></div><div>i did this, and the folder was just recreated when i ran the command. I tried copying the user files from the root/.spamassassin folder that is mentioned in the good scan, but this had no effect</div><div><br></div><div>2. In the bad run, something is trying to open /etc/mail/spamassassin/MailSca<wbr><a href="http://nner.cf">nner.cf</a>. Does that exist with an uppercase "M"? It's supposed to be "<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a>" in /etc/mail/spamassassin all lowercase.</div><div><br></div><div>i checked the file, and it did exist with the capitalisation, interestingly i renamed it and the result log changed as well, but this had no effect on the result, so i changed it back again.</div><div><br></div><div>3. You need to track down what is pointing to the MailScanner.cf with a "grep -rl MailScanner.cf *" from / or something.</div><div> These are two very different files but I think something is crossed up in your configs:</div><div>/etc/mail/spamassassin/<a href="http://mailscanner.cf" target="_blank">mailsca<wbr>nner.cf</a></div><div>/etc/MailScanner/MailScanner.c<wbr>onf</div><div><br></div><div>i have no idea how to do the grep thing, i'm a noob to linux, so i did nothing about this, i have a colleague who may help with this if needs be.</div><div><br></div><div>So i was still no further forwards. i started comparing the results again, and noticed a difference in some lines above the user_prefs you mentioned.</div><div><br></div><div><bad results></div><div><b>Jun 9 01:03:34.495 [27253] dbg: config: using "/etc/MailScanner/spamassassin<wbr>.conf" for sys rules pre files</b></div><div><b>Jun 9 01:03:34.496 [27253] dbg: config: read file /etc/MailScanner/spamassassin.<wbr>conf</b></div><div><b>Jun 9 01:03:34.496 [27253] dbg: config: using "/etc/MailScanner/spamassassin<wbr>.conf" for default rules dir</b></div><div><b>Jun 9 01:03:34.497 [27253] dbg: config: read file /etc/MailScanner/spamassassin.<wbr>conf</b></div><div>Jun 9 01:03:34.498 [27253] dbg: config: using "/etc/mail/spamassassin" for site rules dir</div><div>Jun 9 01:03:34.499 [27253] dbg: config: read file /etc/mail/spamassassin/MailSca<wbr><a href="http://nner.cf">nner.cf</a></div><div>Jun 9 01:03:34.500 [27253] dbg: config: read file /etc/mail/spamassassin/<a href="http://local.cf" target="_blank">local.c<wbr>f</a></div><div>Jun 9 01:03:34.500 [27253] dbg: config: using "/var/spool/postfix/.spamassas<wbr>sin" for user state dir</div><div>Jun 9 01:03:34.501 [27253] dbg: config: using "/var/spool/postfix/.spamassas<wbr>sin/user_prefs" for user prefs file</div><div>Jun 9 01:03:34.502 [27253] dbg: config: read file /var/spool/postfix/.spamassass<wbr>in/user_prefs</div><div><br></div><div><Good results></div><div> <b>dbg: config: using "/var/lib/spamassassin/3.00400<wbr>1" for sys rules pre files</b></div><div><b> dbg: config: using "/var/lib/spamassassin/3.00400<wbr>1" for default rules dir</b></div><div><b> dbg: config: read file /var/lib/spamassassin/3.004001<wbr>/<a href="http://updates_spamassassin_org.cf" target="_blank">updates_spamassassin_org.cf</a></b></div><div> dbg: config: using "/etc/mail/spamassassin" for site rules dir</div><div> dbg: config: read file /etc/mail/spamassassin/MailSca<wbr><a href="http://nner.cf">nner.cf</a></div><div> dbg: config: read file /etc/mail/spamassassin/<a href="http://local.cf" target="_blank">local.c<wbr>f</a></div><div> dbg: config: using "/root/.spamassassin" for user state dir</div><div> dbg: config: using "/root/.spamassassin/user_pref<wbr>s" for user prefs file</div><div> dbg: config: read file /root/.spamassassin/user_prefs</div><div><br></div><div>This got me thinking and i found a load of NN_xxxxxxx.cf files in a folder beneath 3.004.001. i ended up copying these to the /etc/mail/Spamassassin folder. and now i have it working.</div><div><br></div><div>i don't think this is the correct solution, but it will hopefully point to the correct solution.</div><div><br></div><div>in the meantime thanks again for the help</div><div><br></div><div><br></div><div><br></div>
<div>------ Original Message ------</div>
<div>From: "David Jones via MailScanner" <<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner<wbr>.info</a>></div>
<div>To: <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a></div>
<div>Cc: "David Jones" <<a href="mailto:djones@ena.com" target="_blank">djones@ena.com</a>></div>
<div>Sent: 08/06/2018 22:32:48</div>
<div>Subject: Re: Mailscanner - Spamassassin Issue</div><div><br></div>
<div id="m_4224206992129607022m_-1319367504151341883xf48c4abba81f41d"><blockquote type="cite" class="m_4224206992129607022m_-1319367504151341883cite2">
<div>On 06/08/2018 03:25 PM, Toby wrote:</div>
<blockquote type="cite" class="m_4224206992129607022m_-1319367504151341883cite">
<div>Apologies, all public now</div>
<div> </div>
<div>------ Original Message ------</div>
<div>From: "David Jones via MailScanner" <<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner<wbr>.info</a>></div>
<div>To: <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a></div>
<div>Cc: "David Jones" <<a href="mailto:djones@ena.com" target="_blank">djones@ena.com</a>></div>
<div>Sent: 08/06/2018 20:45:20</div>
<div>Subject: Re: Mailscanner - Spamassassin Issue</div>
<div> </div>
<blockquote type="cite" class="m_4224206992129607022m_-1319367504151341883cite2">
<div>On 06/08/2018 02:21 PM, Toby wrote:</div>
<blockquote type="cite" class="m_4224206992129607022m_-1319367504151341883cite">
<div>Hi,</div>
<div> </div>
<div>Thanks for the replies, and the efforts so far.</div>
<div> </div>
<div>I checked the MailScanner.Conf, and it using postfix as the user and group.</div>
<div> </div>
<div>i have created several pastebins:-</div>
<div> </div>
<div>1: <a href="https://pastebin.com/07HcxD72" target="_blank">https://pastebin.com/07HcxD72</a> - Mailscanner --Version</div>
<div> </div>
<div>2: <a href="https://pastebin.com/eh3XmfWb" target="_blank">https://pastebin.com/eh3XmfWb</a> - MailScanner --lint</div>
<div> </div>
<div>3: <a href="https://pastebin.com/J6d8GBB4" target="_blank">https://pastebin.com/J6d8GBB4</a> - MailScanner.conf</div>
<div> </div>
<div>4: <a href="https://pastebin.com/XAjrPftG" target="_blank">https://pastebin.com/XAjrPftG</a> - Spamassassin.conf</div>
<div> </div>
<div>5: <a href="https://pastebin.com/BmTnp5SL" target="_blank">https://pastebin.com/BmTnp5SL</a> - Best scan results acheived with "sudo -u root -p -c spamassassin -D -t Testy.eml" - Score 9</div>
<div> </div>
<div>6: <a href="https://pastebin.com/dLi6QKjU" target="_blank">https://pastebin.com/dLi6QKjU</a> - Successfull scan as described previously "sudo -u postfix -p -c spamassassin -D -t Testy.eml" - score 7.4</div>
<div> </div>
<div>7: <a href="https://pastebin.com/yhwrbb2G" target="_blank">https://pastebin.com/yhwrbb2G</a> - Failed results as previously described "sudo -u postfix -p -c spamassassin -D -t -C /etc/MailScanner/spamassassin.<wbr>conf Testy.eml" - score 0</div>
<div> </div>
<div>8: <a href="https://pastebin.com/PtC30M5U" target="_blank">https://pastebin.com/PtC30M5U</a> - Defaults file from MailScanner</div>
<div> </div>
<div> </div>
<div>Hope this is enough to go forwards. As you can see i get different results for the same user, depending on whether i declare the mailscanner/spamassassin.conf file</div>
<div> </div>
</blockquote>
</blockquote>
</blockquote>
<div> </div>
<div>If you search for "user_prefs" in those 2 "spamassassin -D" runs you will see that it's using 2 different preferences file. That is the difference. Near the bottom of those runs you see that one is hitting BAYES_* while the lower score is not. That's the difference in the good scores.</div>
<div> </div>
<div>I would recommend removing the /var/spool/postfix/.spamassass<wbr>in/user_prefs file and maybe even the entire .spamassassin dir to avoid any confusion. The MailScanner service script should be starting as user root to read all of it's configs then lowering it's privs by switching to the postfix user.</div>
<div> </div>
<div>In the bad run, something is trying to open /etc/mail/spamassassin/MailSca<wbr><a href="http://nner.cf">nner.cf</a>. Does that exist with an uppercase "M"? It's supposed to be "<a href="http://mailscanner.cf" target="_blank">mailscanner.cf</a>" in /etc/mail/spamassassin all lowercase.</div>
<div> </div>
<div>You need to track down what is pointing to the MailScanner.cf with a "grep -rl MailScanner.cf *" from / or something.</div>
<div> </div>
<div>These are two very different files but I think something is crossed up in your configs:</div>
<div>/etc/mail/spamassassin/<a href="http://mailscanner.cf" target="_blank">mailsca<wbr>nner.cf</a></div>
<div>/etc/MailScanner/MailScanner.c<wbr>onf</div>
<div> </div>
<div>-- David Jones</div>
<div> </div>
<div> </div>
<div>-- MailScanner mailing list</div>
<div><a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a></div>
<div><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a></div>
<div> </div>
</blockquote></div>
</div><br><br><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a><br>
<br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_4224206992129607022gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson, CETL<div>Director of Technology</div><div>Rush County Schools</div><div>765-932-3901 x1171</div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ" width="89" height="96"></div><div><img src="https://docs.google.com/uc?export=download&id=1aBrlQou4gjB04FY-twHN_0Dn3GHVNxqa&revid=0Bw5iD0ToYvs_RnQ0eDhHcm95WHBFdkNRbXhQRXpoYkR6SEEwPQ" style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div>
</div><br><br>
<br>
-- <br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.<wbr>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson, CETL<div>Director of Technology</div><div>Rush County Schools</div><div>765-932-3901 x1171</div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ" width="89" height="96"></div><div><img src="https://docs.google.com/uc?export=download&id=1aBrlQou4gjB04FY-twHN_0Dn3GHVNxqa&revid=0Bw5iD0ToYvs_RnQ0eDhHcm95WHBFdkNRbXhQRXpoYkR6SEEwPQ" style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div>
</blockquote>
</div>
</body></html>