<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><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:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]--></head><body bgcolor=white lang=ES-MX link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hello computer Bob <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 lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>You can try for basic troubleshooting with SpamAssassin </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="https://www.ijs.si/software/amavisd/#faq-spam"><span lang=EN-US>https://www.ijs.si/software/amavisd/#faq-spam</span></a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Also, Amavis doesn't put all the headers in the mail, some you have to explicitly configure amavis to include them<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#7030A0'>Hugo</span></b><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Ojendiz<o:p></o:p></span></b></p></div><p class=MsoNormal><span lang=EN-US 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 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'> amavis-users [mailto:amavis-users-bounces+ojendizhm=halmex.com.mx@amavis.org] <b>On Behalf Of </b>Dino Edwards<br><b>Sent:</b> viernes, 27 de abril de 2018 03:07 a.m.<br><b>To:</b> bob@inter-control.com; amavis-users@amavis.org<br><b>Subject:</b> RE: amavis-new X-Spam-Status question<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Amavisd-new does not use spamd. It calls SA directly through perl. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Does  your /etc/postfix/master.cf contain an extra smtp listener for amavis to re-inject email back to postfix?:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>127.0.0.1:10025 inet    n       -       y       -       -       smtpd<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o content_filter=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o local_recipient_maps=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o relay_recipient_maps=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtpd_restriction_classes=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtpd_helo_restrictions=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtpd_sender_restrictions=<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtpd_recipient_restrictions=permit_mynetworks,reject<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o mynetworks=127.0.0.0/8<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o strict_rfc821_envelopes=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>amavis unix - - - - 2 smtp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtp_data_done_timeout=1200<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>        -o smtp_send_xforward_command=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Does /etc/postfix/main.cf have a content filter line in order for postfix to inject email to amavis (assuming amavis is listening on port 10026):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><pre><span lang=EN-US>content_filter = smtp-amavis:[127.0.0.1]:10026<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US 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 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>From:</span></b><span lang=EN-US 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">mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org</a>] <b>On Behalf Of </b>Computer Bob<br><b>Sent:</b> Thursday, April 26, 2018 5:31 PM<br><b>To:</b> <a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a><br><b>Subject:</b> amavis-new X-Spam-Status question<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:10.0pt'>Greetings, <br>I have an Ubuntu 16.04 server running Postfix, Dovecot, Clamav, Amavis-new, Spamassassin.<br>Mails are passing spam checks and the headers do not show Razor and other settings that are in the spamassassin configs and used by spamassassin.<br>If I run the mail through spamassassin as user amavis, spamd, recipient, or the virtual mail folder owner, I get the following all the same:<br><br></span><span lang=EN-US style='font-size:7.5pt'>X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on (</span><span lang=EN-US style='font-size:10.0pt'>Redacted</span><span lang=EN-US style='font-size:7.5pt'>)<br>X-Spam-Flag: YES<br>X-Spam-Level: ********************<br>X-Spam-Status: Yes, score=20.1 required=4.0 tests=KAM_ASCII_DIVIDERS,<br>        MISSING_DATE,MISSING_FROM,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,<br>        NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,<br>        SHARK_TANK_BODY,URIBL_DBL_SPAM,URIBL_RED,URIBL_SBL_A autolearn=spam<br>        autolearn_force=no version=3.4.1<br><br>Content analysis details:   (20.1 points, 4.0 required)<br><br> pts rule name              description<br>---- ---------------------- --------------------------------------------------<br> 2.5 URIBL_DBL_SPAM         Contains a spam URL listed in the Spamhaus DBL<br>                            blocklist<br>                            [URIs: nourishingmomsnaturally.com]<br> 0.0 URIBL_RED              Contains an URL listed in the URIBL redlist<br>                            [URIs: nourishingmomsnaturally.com]<br> 1.2 MISSING_HEADERS        Missing To: header<br>-0.0 NO_RELAYS              Informational: message was not relayed via SMTP<br> 7.0 SHARK_TANK_BODY        BODY: No description available.<br> 2.4 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%<br>                            [cf: 100]<br> 1.7 RAZOR2_CHECK           Listed in Razor2 (<a href="http://razor.sf.net/">http://razor.sf.net/</a>)<br> 0.1 URIBL_SBL_A            Contains URL's A record listed in the Spamhaus SBL<br>                            blocklist<br>                            [URIs: candybars.nourishingmomsnaturally.com]<br>-0.0 NO_RECEIVED            Informational: message has no Received headers<br> 0.1 MISSING_MID            Missing Message-Id: header<br> 1.8 MISSING_SUBJECT        Missing Subject: header<br> 0.8 KAM_ASCII_DIVIDERS     Spam that uses ascii formatting tricks<br> 1.0 MISSING_FROM           Missing From: header<br> 1.4 MISSING_DATE           Missing Date: header<br> 0.0 NO_HEADERS_MESSAGE     Message appears to be missing most RFC-822 headers<br><br></span><span lang=EN-US>Yet the mail headers as received are all showing as similar to this:<br><br></span><span lang=EN-US style='font-size:10.0pt'>X-Virus-Scanned: Debian amavisd-new at (Redacted)<br>X-Spam-Flag: NO<br>X-Spam-Score: 0.01<br>X-Spam-Level:<br>X-Spam-Status: No, score=0.01 required=4 tests=[HTML_MESSAGE=0.001,<br>        SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01,<br>        URIBL_RED=0.001] autolearn=unavailable autolearn_force=no<br></span><span lang=EN-US><br>It does not appear that the same checks are being run, for instance no Razor.<br><br>Could someone explain in detail how spamd or spamassassin is being called vi amavis and the associated configs so I can troubleshoot ?<o:p></o:p></span></p></div></body></html>