<html><BODY><DIV style="font-family: Tahoma; font-size: 14px;">Great Dino! ;) I think you got to the point :)<BR><BR>My traning is almost just spam, we never feed ham to learn.<BR>Do you think I can clear just the ham database? Is there any way?<BR>I would like to retain the spam learnt.<BR><BR>
<DIV id="wt-mailcard">
<DIV style="font-family: Arial;">----------------------------------------------------------------------------------------</DIV>
<DIV style="font-family: Arial;"><STRONG>Sonicle S.r.l. </STRONG>: <A href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</A></DIV>
<DIV style="font-family: Arial;"><STRONG>Music: </STRONG><A href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</A></DIV>
<DIV style="font-family: Arial;"><STRONG>Quantum Mechanics : </STRONG><A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</A></DIV>
</DIV>
<BR><HR></HR><BR><BR><SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: small;"><STRONG>Da:</STRONG> Dino Edwards <dino.edwards@mydirectmail.net><BR><STRONG>A:</STRONG> amavis-users@amavis.org<BR><STRONG>Data:</STRONG> 29 giugno 2017 14.14.57 CEST<BR><STRONG>Oggetto:</STRONG> RE: RE: RE: RE: different spamassassin behaviours<BR></SPAN><BR><BR>
<BLOCKQUOTE style="border-left: #000080 2px solid; margin-left: 5px; padding-left: 5px;">
<DIV class="WordSection1">
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">As you can see, this particular message has auto trained the bayes database that It’s ham (</SPAN><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;">autolearn=ham)</SPAN><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> when in fact it’s supposed to be spam. </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Here’s what I recommend:</SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoListParagraph" style="text-indent: -.25in; mso-list: l0 level1 lfo1;"><![if !supportLists]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><SPAN style="mso-list: Ignore;">1.<SPAN style="font: 7.0pt 'Times New Roman';"> </SPAN></SPAN></SPAN><![endif]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Turn off autolearn</SPAN></P>
<P class="MsoListParagraph" style="text-indent: -.25in; mso-list: l0 level1 lfo1;"><![if !supportLists]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><SPAN style="mso-list: Ignore;">2.<SPAN style="font: 7.0pt 'Times New Roman';"> </SPAN></SPAN></SPAN><![endif]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Clear your bayes database and start over fresh</SPAN></P>
<P class="MsoListParagraph" style="text-indent: -.25in; mso-list: l0 level1 lfo1;"><![if !supportLists]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><SPAN style="mso-list: Ignore;">3.<SPAN style="font: 7.0pt 'Times New Roman';"> </SPAN></SPAN></SPAN><![endif]><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Train your bayes database with legitimate ham and spam</SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">It looks to me that the major issue you are having is your bayes database is completely jacked and the problem gets worse as each message comes in and incorrectly trains the bayes database.</SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">The levels really depend on your setup, there is no magic levels per se. Train your database properly and you will be able to adjust them to a level that’s good for your environment.</SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<DIV>
<DIV style="border: none; border-top: solid #E1E1E1 1.0pt; padding: 3.0pt 0in 0in 0in;">
<P class="MsoNormal"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">From:</SPAN></STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> Gabriele Bulfon [mailto:gabriele.bulfon@sonicle.com] <BR> <STRONG>Sent:</STRONG> Thursday, June 29, 2017 7:58 AM<BR> <STRONG>To:</STRONG> Dino Edwards <dino.edwards@mydirectmail.net>; amavis-users@amavis.org<BR> <STRONG>Subject:</STRONG> RE: RE: RE: different spamassassin behaviours</SPAN></P>
</DIV>
</DIV>
<P class="MsoNormal"> </P>
<DIV>
<P class="MsoNormal"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;">I will check your suggestions (sa_tag_level_deflt , bayes_auto_learn ).<BR> <BR> BTW, what are the level you would suggest, instead of my 5.0,10.0,10?<BR> <BR> Meanwhile, look at the email I attached: even manually, spamassassin does not detect anything, while it's and evident spam...</SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="margin-bottom: 12.0pt;"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;">Here are the manual result:<BR> <BR> X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_20,HTML_MESSAGE,<BR> RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,TVD_RCVD_SPACE_BRACKET,UNPARSEABLE_RELAY<BR> autolearn=ham autolearn_force=no version=3.4.1<BR> <BR> </SPAN></P>
<DIV id="wt-mailcard">
<DIV>
<P class="MsoNormal"><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">------------------------------------------------------------------------------------------</SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Sonicle S.r.l. </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">: <A href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Music: </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"><A href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Quantum Mechanics : </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"><A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</A></SPAN></P>
</DIV>
</DIV>
<P class="MsoNormal"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;"> </SPAN></P>
<DIV class="MsoNormal" style="text-align: center;" align="center"><HR align="center" size="2" width="100%"></HR></DIV>
<P class="MsoNormal" style="margin-bottom: 12.0pt;"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;"><BR> <BR> </SPAN><STRONG><SPAN style="font-family: 'Arial',sans-serif;">Da:</SPAN></STRONG><SPAN style="font-family: 'Arial',sans-serif;"> Dino Edwards <<A href="#" onclick='parent.WT.app.handleMailClick("dino.edwards@mydirectmail.net"); return false;'>dino.edwards@mydirectmail.net</A>><BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">A:</SPAN></STRONG> <A href="#" onclick='parent.WT.app.handleMailClick("amavis-users@amavis.org"); return false;'> amavis-users@amavis.org</A><BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">Data:</SPAN></STRONG> 28 giugno 2017 20.12.17 CEST<BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">Oggetto:</SPAN></STRONG> RE: RE: RE: different spamassassin behaviours<BR> <BR> </SPAN><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;"></SPAN></P>
<BLOCKQUOTE style="border: none; border-left: solid navy 1.5pt; padding: 0in 0in 0in 4.0pt; margin-left: 3.75pt; margin-top: 5.0pt; margin-bottom: 5.0pt;">
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Right off the bat, the following should be set like below:</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_tag_level_deflt = undef;</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Setting it as such will add spam info headers to all email not just ones that score 2 or above. After you set this setting, do a test email normally and paste the headers generated and then run the same email manually and paste the headers. I would love to see the difference between the two to see what drives up the scores and what doesn’t.</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">The following settings seem really high to me</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_kill_level_deflt = 10.0; # triggers spam evasive actions (e.g. blocks mail)</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">You may want to add these settings:</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_spam_modifies_subj = 1;</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">$sa_spam_subject_tag = '[SPAM]';</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Also I suggest you completely turn off auto learn in your SA until you get this figured out. As a matter of fact, I never turn it on because it has caused MAJOR issues for me in the past where the bayes database gets really screwy and things don’t get tagged correctly. Up to you.</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">#bayes</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">bayes_path /path/to/your/bayes/database</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">bayes_file_mode 0777</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">use_bayes 1</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">use_bayes_rules 1</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">bayes_auto_learn 0</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">----------------</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Dino Edwards</SPAN></STRONG></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">----------------</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><IMG id="Picture_x0020_2" src="cid:image002.jpg@01D2F018.8BACE190" alt="hermes_logo3" width="132" height="49" border="0"></SPAN></STRONG></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Hermes Secure Email Gateway</SPAN></STRONG></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Hermes Secure Email Gateway is a Free Open Source (Hermes SEG Community Only) Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. Hermes Secure Email Gateway combines Open Source technologies such as Postfix, Apache SpamAssassin, ClamAV, Amavisd-new and CipherMail under one unified web based Web GUI for easy administration and management of your incoming and ougoing email for your organization. It can be deployed to protect your in-house email solution as well as cloud email solutions such as Google Mail and Microsoft Office 365.</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></STRONG></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Learn More & Download the free open-source appliance at:</SPAN></STRONG></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"><A href="https://www.deeztek.com/hermes-secure-email-gateway/" target="_new"><SPAN style="color: #0563c1;">https://www.deeztek.com/hermes-secure-email-gateway/</SPAN></A></SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"> </SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">From:</SPAN></STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> Gabriele Bulfon [<A href="#" onclick='parent.WT.app.handleMailClick("gabriele.bulfon@sonicle.com"); return false;'>mailto:gabriele.bulfon@sonicle.com</A>] <BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">Sent:</SPAN></STRONG> Tuesday, June 27, 2017 10:24 AM<BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">To:</SPAN></STRONG> Dino Edwards <<A href="#" onclick='parent.WT.app.handleMailClick("dino.edwards@mydirectmail.net"); return false;'>dino.edwards@mydirectmail.net</A>>; <A href="#" onclick='parent.WT.app.handleMailClick("amavis-users@amavis.org"); return false;'>amavis-users@amavis.org</A><BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">Subject:</SPAN></STRONG> RE: RE: different spamassassin behaviours</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </P>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">Here it is, thanks!</SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"> </SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; margin-bottom: 12.0pt;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">Gabriele</SPAN></P>
<DIV id="wt-mailcard">
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">-------------------------------------------------------------------------------------------</SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">Sonicle S.r.l. </SPAN></STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">: <A href="http://www.sonicle.com/" target="_new"> http://www.sonicle.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">Music: </SPAN></STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"><A href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;">Quantum Mechanics : </SPAN></STRONG><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"><A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</A></SPAN></P>
</DIV>
</DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"> </SPAN></P>
<DIV class="MsoNormal" style="text-align: center;" align="center"><HR align="center" size="2" width="100%"></HR></DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; margin-bottom: 12.0pt;"><SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"><BR> <BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">Da:</SPAN></STRONG> Dino Edwards <<SPAN>dino.edwards@mydirectmail.net</SPAN>><BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">A:</SPAN></STRONG> Gabriele Bulfon <<SPAN>gabriele.bulfon@sonicle.com</SPAN>> <SPAN>amavis-users@amavis.org</SPAN> <BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">Data:</SPAN></STRONG> 27 giugno 2017 15.37.22 CEST<BR> <STRONG><SPAN style="font-family: 'Arial',sans-serif;">Oggetto:</SPAN></STRONG> RE: RE: different spamassassin behaviours</SPAN></P>
<BLOCKQUOTE style="border: none; border-left: solid navy 1.5pt; padding: 0in 0in 0in 4.0pt; margin-left: 3.75pt; margin-top: 5.0pt; margin-bottom: 5.0pt;">
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">the x-spam-status headers should always be present Spam or not. So what you are saying is that the x-spam-status headers are not present when email goes through normally or when they are run manually?</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;">Can you paste your amavis config here?</SPAN></P>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">From:</SPAN></STRONG><SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> Gabriele Bulfon [<SPAN>mailto:gabriele.bulfon@sonicle.com</SPAN>] <BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">Sent:</SPAN></STRONG> Tuesday, June 27, 2017 9:03 AM<BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">To:</SPAN></STRONG> Dino Edwards <<SPAN>dino.edwards@mydirectmail.net</SPAN>>; <SPAN>amavis-users@amavis.org</SPAN><BR> <STRONG><SPAN style="font-family: 'Calibri',sans-serif;">Subject:</SPAN></STRONG> [SUSPECTED SPAM]RE: different spamassassin behaviours</SPAN></P>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; margin-bottom: 12.0pt;"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;">The x-spam-status headers on that cases are not present, because the score is too low, and is considered non-spam.<BR> Is there any way I can force the injection of the x-spam-status header even for low scores? This may help.<BR> <BR> I meant that all the cf files (the rules files) are taken from the same place by spamassassin, both manually and automatically during postfix injection, as I can see it from the spam taken.<BR> <BR> And finally, yes, I can find the logs you say, where the mail (that manually scores 18.0+) passes as "CLEAN" in amavis and back into postfix.<BR> <BR> I attach an example email, and here is the relative log while passing in:<BR> <BR> Jun 27 14:30:15 cloudserver amavis[28190]: [ID 702911 mail.notice] (28190-16) Passed CLEAN, [107.175.149.43] [107.175.149.43] <<SPAN>VIVINT.Premier-Provider@tmess.us</SPAN>> -> <<SPAN>davide.dicosola@eurovetrocap.com</SPAN>>, Message-ID: <<SPAN>037996f410ef6dcfefa9bbb8b98e2681.3964721.19453093@tmess.us_ys9</SPAN>>, mail_id: tW7q84X98Ieq, Hits: -0.347, size: 5698, queued_as: 9C78D27B16D, 1781 ms</SPAN></P>
<DIV id="wt-mailcard">
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">-------------------------------------------------------------------------------------------</SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Sonicle S.r.l. </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">: <A href="http://www.sonicle.com/" target="_new"> http://www.sonicle.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Music: </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"><A href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</A></SPAN></P>
</DIV>
<DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;">Quantum Mechanics : </SPAN></STRONG><SPAN style="font-size: 10.5pt; font-family: 'Arial',sans-serif;"><A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</A></SPAN></P>
</DIV>
</DIV>
<P class="MsoNormal" style="mso-margin-top-alt: auto; margin-bottom: 12.0pt;"><SPAN style="font-size: 10.0pt; font-family: 'Courier New';"><BR> <BR> <BR> <TT>----------------------------------------------------------------------------------</TT><BR> <BR> <TT>Da: Dino Edwards <<SPAN>dino.edwards@mydirectmail.net</SPAN>></TT><BR> <TT>A: <SPAN>amavis-users@amavis.org</SPAN> </TT><BR> <TT>Data: 27 giugno 2017 13.59.37 CEST</TT><BR> <TT>Oggetto: RE: different spamassassin behaviours</TT></SPAN></P>
<BLOCKQUOTE style="border: none; border-left: solid navy 1.5pt; padding: 0in 0in 0in 4.0pt; margin-left: 3.75pt; margin-top: 5.0pt; margin-bottom: 5.0pt;">
<P class="MsoNormal" style="mso-margin-top-alt: auto; margin-bottom: 12.0pt;"><TT><SPAN style="font-size: 10.0pt;">Can you provide the x-spam-status headers for the same email when run through Postfix normally and then manually so we can see the differences?</SPAN></TT><SPAN style="font-size: 10.0pt; font-family: 'Courier New';"><BR> <BR> <BR> <TT>Also, I'm a little confused, what do you mean when you say " All the files are taken from /sonicle/etc/mail/spamassassin and /sonicle/share/spamassassin"?</TT><BR> <BR> <TT>Also, in your mail log, do you say a lines similar to below? The first one is Amavis passing the message as CLEAN and then re-injecting it back to Postfix on port 10025 for delivery. Your port config may vary.</TT><BR> <BR> <TT>Jun 27 07:55:32 smtp amavis[22662]: (22662-15) Passed CLEAN [198.241.162.22]:12141 [198.241.162.22] <<SPAN>noreply@visaprepaidprocessing.com</SPAN>> -> <someone@domaintld>, Queue-ID: D19FC40B0A, Message-ID: <<SPAN>d5360d$6ue5tu@cportal1.visa.com</SPAN>>, mail_id: X1sVYvfQoUFh, Hits: -0.877, size: 2490, queued_as: 250 2.6.0 Message received, dkim_sd=cportal:visaprepaidprocessing.com, 1280 ms</TT><BR> <BR> <BR> <TT>Jun 27 07:55:32 smtp postfix/smtp[22949]: D19FC40B0A: to=<<SPAN>someone@domain.tld</SPAN>>, relay=127.0.0.1[127.0.0.1]:10021, delay=2.6, delays=1.3/0/0/1.3, dsn=2.6.0, status=sent (250 2.6.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.6.0 Message received)</TT><BR> <BR> <BR> <BR> <BR> <TT>From: Gabriele Bulfon [<SPAN>mailto:gbulfon@sonicle.com</SPAN>] </TT><BR> <TT>Sent: Tuesday, June 27, 2017 2:35 AM</TT><BR> <TT>To: Dino Edwards <<SPAN>dino.edwards@mydirectmail.net</SPAN>>; <SPAN>amavis-users@amavis.org</SPAN></TT><BR> <TT>Subject: RE: different spamassassin behaviours</TT><BR> <BR> <TT>Hi, thanks for your response.</TT><BR> <BR> <TT>There are a lot of things rising the score manually:</TT><BR> <BR> <TT>X-Spam-Status: Yes, score=18.1 required=5.0 tests=BAYES_50,CUSTOM_MANY_BL,</TT><BR> <TT>HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MIME_HTML_ONLY,RCVD_IN_DNSBL_INPS_DE,</TT><BR> <TT>RCVD_IN_HOSTKARMA_BL,RCVD_IN_MSPIKE_H2,RCVD_IN_UCEPROTECT2,</TT><BR> <TT>RCVD_IN_UCEPROTECT3,RCVD_IN_WPBL,SPF_HELO_PASS,TVD_RCVD_SPACE_BRACKET,</TT><BR> <TT>T_REMOTE_IMAGE,UNPARSEABLE_RELAY,URIBL_ABUSE_SURBL,URIBL_DBL_SPAM</TT><BR> <TT>autolearn=spam autolearn_force=no version=3.4.1</TT><BR> <BR> <TT>All the files are taken from /sonicle/etc/mail/spamassassin and /sonicle/share/spamassassin, and they looks to be read both manually and during postfix run, as many of the mails are caught and contains X-Spam-Status with tags taken from there (sare cf files, kam file, fili_br file etc).</TT><BR> <TT>Also, many of the auto-learnt mails get spammed after being trained.</TT><BR> <TT>The bayes is configured as :</TT><BR> <BR> <TT>use_bayes 1</TT><BR> <TT>bayes_auto_learn 1</TT><BR> <TT>bayes_path /sonicle/var/spamassassin/bayes_db/bayes</TT><BR> <TT>bayes_file_mode 0777</TT><BR> <BR> <TT>and here are the files:</TT><BR> <BR> <TT>sonicle@www:~$ ls -l /sonicle/var/spamassassin/bayes_db</TT><BR> <TT>total 12699</TT><BR> <TT>-rw-rw-rw- 1 snclamav snclamav 25680 Jun 27 08:28 bayes_journal</TT><BR> <TT>-rw-rw-rw- 1 snclamav snclamav 10567680 Jun 27 07:58 bayes_seen</TT><BR> <TT>-rw-rw-rw- 1 snclamav snclamav 5128192 Jun 27 07:58 bayes_toks</TT><BR> <BR> <TT>here are the amavis processes:</TT><BR> <BR> <TT>sonicle@www:~$ ps -ef | grep amavisd</TT><BR> <TT>snclamav 23517 20393 0 07:43:58 ? 0:04 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...</TT><BR> <TT>snclamav 20393 6278 0 May 12 ? 0:49 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...</TT><BR> <TT>snclamav 29614 20393 0 08:28:49 ? 0:00 /sonicle/bin/perl -T /sonicle/sbin/amavisd -u snclamav -c /sonicle/etc/amavis/a...</TT><BR> <BR> <TT>is there any way I can run amavisd manually exactly as postfix would do during an incoming email?</TT><BR> <TT>I bet I need debugging output, but enabling it live may fill my mail logs, and I would have to wait for some spam to get in.</TT><BR> <BR> <TT>Thanks again,</TT><BR> <TT>Gabriele</TT><BR> <BR> <BR> <BR> <BR> <TT>------------------------------------------------------------------------------------------</TT><BR> <TT>Sonicle S.r.l. : <A href="http://www.sonicle.com" target="_new">http://www.sonicle.com</A></TT><BR> <TT>Music: <A href="http://www.gabrielebulfon.com" target="_new">http://www.gabrielebulfon.com</A></TT><BR> <TT>Quantum Mechanics : <A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new"> http://www.cdbaby.com/cd/gabrielebulfon</A></TT><BR> <BR> <TT>________________________________________</TT><BR> <BR> <BR> <TT>Da: Dino Edwards <<SPAN>dino.edwards@mydirectmail.net</SPAN>></TT><BR> <TT>A: <SPAN>amavis-users@amavis.org</SPAN></TT><BR> <TT>Data: 26 giugno 2017 19.08.11 CEST</TT><BR> <TT>Oggetto: RE: different spamassassin behaviours</TT><BR> <BR> <TT>Do you know for a fact that the bayes database is making those scores get higher when you run it in debug? If so, where is your bayes database stored and who is the owner of that path? Do you know for a fact that Amavis calls Spamassassin to scan emails?</TT><BR> <BR> <BR> <BR> <BR> <BR> <TT>----------------</TT><BR> <BR> <TT>Hermes Secure Email Gateway</TT><BR> <TT>Hermes Secure Email Gateway is a Free Open Source (Hermes SEG Community Only) Email Gateway that provides Spam, Virus and Malware protection, full in-transit and at-rest email encryption as well as email archiving. Hermes Secure Email Gateway combines Open Source technologies such as Postfix, Apache SpamAssassin, ClamAV, Amavisd-new and CipherMail under one unified web based Web GUI for easy administration and management of your incoming and ougoing email for your organization. It can be deployed to protect your in-house email solution as well as cloud email solutions such as Google Mail and Microsoft Office 365.</TT><BR> <BR> <TT>Learn More & Download the free open-source appliance at:</TT><BR> <TT><A href="https://www.deeztek.com/hermes-secure-email-gateway/" target="_new">https://www.deeztek.com/hermes-secure-email-gateway/</A></TT><BR> <BR> <TT>From: amavis-users [<SPAN>mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org</SPAN>] On Behalf Of Gabriele Bulfon</TT><BR> <TT>Sent: Monday, June 26, 2017 11:57 AM</TT><BR> <TT>To: <SPAN>amavis-users@amavis.org</SPAN></TT><BR> <TT>Subject: different spamassassin behaviours</TT><BR> <BR> <TT>Hi,</TT><BR> <BR> <TT>I have some installation of amavis+postfix, where I discovered that some spam is coming in with a very low score, but if I run spamassassin in debug mode on the same emails they get a very high score.</TT><BR> <BR> <TT>On my installations, amavisd runs under the "snclamav" user, while the smtp-amavis postfix daemons run under the "snclmail" user.</TT><BR> <TT>I run the bayes learn using the snclamav user, and also run spamassassin debug mode using the same user, that stores the bayes database in a specific path.</TT><BR> <BR> <TT>Any idea what may happen in amavisd spawn spamassassin that does not happen in manual debug mode?</TT><BR> <BR> <TT>Thanks for any help</TT><BR> <BR> <TT>Gabriele</TT><BR> <TT>------------------------------------------------------------------------------------------</TT><BR> <TT>Sonicle S.r.l. : <A href="http://www.sonicle.com" target="_new">http://www.sonicle.com</A></TT><BR> <TT>Music: <A href="http://www.gabrielebulfon.com" target="_new">http://www.gabrielebulfon.com</A></TT><BR> <TT>Quantum Mechanics : <A href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new"> http://www.cdbaby.com/cd/gabrielebulfon</A></TT><BR> <BR> <BR> <TT><<<SPAN>image002.jpg@01D2EE7D.41BA0B40</SPAN>>></TT></SPAN></P>
</BLOCKQUOTE>
</DIV>
</DIV>
</BLOCKQUOTE>
</DIV>
</DIV>
<P class="MsoNormal"><SPAN style="font-size: 10.5pt; font-family: 'Tahoma',sans-serif;"><BR> <BR> <<<A href="#" onclick='parent.WT.app.handleMailClick("image002.jpg@01d2f018.8bace190"); return false;'>image002.jpg@01D2F018.8BACE190</A>>></SPAN></P>
</BLOCKQUOTE>
</DIV>
<P class="MsoNormal" style="margin-bottom: 12.0pt;"> </P>
<P class="MsoNormal">Young student dreams about sex with two men.<BR> Ready to go to any city and country for quality sex.<BR> <BR> <A href="http://ax000.alienearmusic.com/extend.php?utm_source=1grdazu&utm_medium=z0h16yw&utm_campaign=pmwh4hp&utm_term=ar3ixvp&utm_content=62fztz87vj" target="_new">My profile is here, i’m waiting.</A></P>
<P class="MsoNormal" style="margin-bottom: 12.0pt;"> </P>
</DIV>
</BLOCKQUOTE>
</DIV></BODY></html><BR><BR>