<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1">Interestingly, most mail gets handled correctly,
only a few get through and show the odd scores and such.<br>
If I try and forward one of those that got through to another
account, they get handled properly and quarantined as spam ! <br>
So I am waiting for one of those odd-balls.<br>
It's perplexing to me. <br>
</font><br>
<div class="moz-cite-prefix">On 1/29/18 3:58 PM, Dino Edwards wrote:<br>
</div>
<blockquote type="cite"
cite="mid:13937A461B5E0A40810939402AE476D6018A16FB31@hdgexchange.deeztek.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If
you are using putty, can you enable logging in your session,
send an obviously spam message and send the debug output?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">
amavis-users
[<a class="moz-txt-link-freetext" href="mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org">mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org</a>]
<b>On Behalf Of </b>Computer Bob<br>
<b>Sent:</b> Monday, January 29, 2018 4:49 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a><br>
<b>Subject:</b> Re: Scoring questions<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-size:10.0pt">It starts with debug-sa, stays in
the console window and puts does not put debug-sa info into
mail.log but displays it at the console that called it.</span><o:p></o:p></p>
<div>
<p class="MsoNormal">On 1/29/18 2:33 PM, Dino Edwards wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Please
run amavisd in debug mode.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Stop
the service
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">/etc/init.d/amavis
stop</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Then
start in debug mode:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">/etc/init.d/amavis
debug</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Open
another session to your mail server and look at you
/var/log/mail.log and you should see the following upon
amavisd startup (or similar):</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:55.078 mail.domain.tld
/usr/sbin/amavisd-new[8330]: initializing
Mail::SpamAssassin (0)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:55.078 mail.domain.tld
/usr/sbin/amavisd-new[8330]: SpamAssassin debug
facilities: info</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:55.712 mail.domain.tld
/usr/sbin/amavisd-new[8330]: SA info: zoom: able to use
315/360 'body_0' compiled rules (87.5%)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:56.454 mail.domain.tld
/usr/sbin/amavisd-new[8330]: SpamAssassin loaded plugins:
AskDNS, AutoLearnThreshold, Bayes, BodyEval, Check, DCC,
DKIM, DNSEval, FreeMail, HTMLEval, HTTPSMismatch,
Hashcash, HeaderEval, ImageInfo, MIMEEval, MIMEHeader,
Pyzor, Razor2, RelayEval, ReplaceTags, Rule2XSBody, SPF,
SpamCop, URIDNSBL, URIDetail, URIEval, VBounce, WLBLEval,
WhiteListSubject</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:56.455 mail.domain.tld
/usr/sbin/amavisd-new[8330]: SpamControl: init_pre_fork on
SpamAssassin done</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jan
29 15:30:56.455 mail.domain.tld
/usr/sbin/amavisd-new[8330]: extra modules loaded after
daemonizing/chrooting:
/usr/lib/perl5/auto/NetAddr/IP/InetBase/inet_n2dx.al,
Mail/SpamAssassin/CompiledRegexps/body_0.pm,
Mail/SpamAssassin/Plugin/FreeMail.pm, Net/DNS/RR/OPT.pm</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">
Computer Bob [<a href="mailto:bob@inter-control.com"
moz-do-not-send="true">mailto:bob@inter-control.com</a>]
<br>
<b>Sent:</b> Monday, January 29, 2018 3:24 PM<br>
<b>To:</b> Dino Edwards <a
href="mailto:dino.edwards@mydirectmail.net"
moz-do-not-send="true"><dino.edwards@mydirectmail.net></a>;
<a href="mailto:amavis-users@amavis.org"
moz-do-not-send="true">amavis-users@amavis.org</a><br>
<b>Subject:</b> Re: Scoring questions</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Changes
made, amavis restarted.<br>
I have seen the following on all mails, I just was too
lazy to include it because I had to blank the server
name...skuza..
</span><o:p></o:p></p>
<pre>X-Virus-Scanned: Debian amavisd-new at M1-2.myorganization.org<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<div>
<p class="MsoNormal">On 1/29/18 2:15 PM, Dino Edwards wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Please
try
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">$sa_tag_level_deflt
= undef;</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">In</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">/etc/amavis/conf.d/50-user</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Do
you see the
</span><span
style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#474B51;background:white">X-Virus-Scanned
header in the emails that amavisd processes?</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#474B51;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">
amavis-users [<a
href="mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org"
moz-do-not-send="true">mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org</a>]
<b>On Behalf Of </b>Computer Bob<br>
<b>Sent:</b> Monday, January 29, 2018 2:40 PM<br>
<b>To:</b> <a href="mailto:amavis-users@amavis.org"
moz-do-not-send="true">amavis-users@amavis.org</a><br>
<b>Subject:</b> Re: Scoring questions</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I also agree that at this point auto
learn should be off and cleared as I have done.<span
style="font-size:10.0pt"><br>
</span>But I still continue to get garbage mails through
showing headers such as:<o:p></o:p></p>
<pre>X-Spam-Flag: NO<o:p></o:p></pre>
<pre>X-Spam-Score: 0.61<o:p></o:p></pre>
<pre>X-Spam-Level:<o:p></o:p></pre>
<pre>X-Spam-Status: No, score=0.61 tagged_above=-9999 required=5<o:p></o:p></pre>
<pre> tests=[HTML_FONT_LOW_CONTRAST=0.001, HTML_IMAGE_RATIO_04=0.61,<o:p></o:p></pre>
<pre> HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,<o:p></o:p></pre>
<pre> T_REMOTE_IMAGE=0.01, T_RP_MATCHES_RCVD=-0.01]<o:p></o:p></pre>
<pre> autolearn=no autolearn_force=no<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt">And as I
said, when I run them through SA at the command line they
seem to score correctly.
<br>
The scores being given in the headers can't be correct as
they all are similarly low and wrong.
<br>
An interesting note is that if I try and forward one of
these received, they get flagged and sent to spam.<br>
Without knowing the intricacies of the amavis procedural
steps, or were to start, it is not possible for me to
troubleshoot.<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On 1/29/18 1:20 PM, Dino Edwards
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>I disagree it's bad advice considering it's autolearn that seems to be creating at least some of the problems he's experiencing. <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>However, I do agree, the AutoLearn Threshold should definitely be set IF you are going to be using autolearn but in my experience auto-learn creates more problems than it solves. I believe that only humans should be be used for training the bayes database. Auto-learning has the tendency to exaggerate issues over time.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Keep it simple for now and train your bayes database and after you've trained it and it's scoring well, then consider using autolearn.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: amavis-users [<a href="mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org" moz-do-not-send="true">mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org</a>] On Behalf Of Benny Pedersen<o:p></o:p></pre>
<pre>Sent: Monday, January 29, 2018 1:06 PM<o:p></o:p></pre>
<pre>To: <a href="mailto:amavis-users@amavis.org" moz-do-not-send="true">amavis-users@amavis.org</a><o:p></o:p></pre>
<pre>Subject: Re: Re: Scoring questions<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Computer Bob skrev den 2018-01-29 18:57:<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>I assume you mean bayes_auto_learn in local.cf. I set it to 0 from 1 <o:p></o:p></pre>
<pre>and restarted.<o:p></o:p></pre>
</blockquote>
<pre> <o:p></o:p></pre>
<pre>yes its just bad advise, but setting this is what disables autolearn<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>i suggest see autolearnthreashold instaed<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre><a href="https://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Plugin_AutoLearnThreshold.html" moz-do-not-send="true">https://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Plugin_AutoLearnThreshold.html</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>bayes_auto_learn_threshold_nonspam -5<o:p></o:p></pre>
<pre>bayes_auto_learn_threshold_spam 7.5<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>let the spammers win now :)<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>