<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi Guys!<br><br>I am using amavisd-new-2.11.0 and found a problem with hits calculation.<br><br>How to reproduce the issue:<br>1) <a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a> is at <a href="mailto:recipient1@example.com" target="_blank">recipient1@example.com</a> whitelist (score_sender_maps).<br>2) Spamassassin have a test rule to add 50 points based on subject. It is just to tag message as spam.<br>3) Send a message to a list of recipient<br>sendEmail -f <a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a> -t <a href="mailto:recipient1@example.com" target="_blank">recipient1@example.com</a>,<a href="mailto:recipient2@example.com" target="_blank">recipie<wbr>nt2@example.com</a>,<a href="mailto:recipient3@example.com" target="_blank">recipient3@<wbr>example.com</a> -s mailhost -m test -u "50 test score"<br><br><br>MTA(Postfix) responded with:<br>250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT<br><br>Amavis log content:<br>amavis[7598]: (07598-01) Passed SPAM {NoBounceInternal,<wbr>RelayedInternal,Quarantined}, MYNETS LOCAL [127.0.0.1]:35454 <<a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a>> -> <<a href="mailto:recipient1@example.com" target="_blank">recipient1@example.com</a>>, Message-ID: <865558.509805368-sendEmail@<wbr>mailhost>, mail_id: KDM2kRxplshP, Hits: -50.001..49.999, size: 1127, queued_as: 3s16cl03QGz1x1B, Subject: "50 test score", From: "<a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a>"_<<a href="mailto:sender@domain.com" target="_blank">sender@<wbr>domain.com</a>>, Tests: [ALL_TRUSTED=-0.001,AM.WBL=-<wbr>100,TEST_50=50], 424 ms<br>amavis[7598]: (07598-01) Blocked SPAM {NoBounceInternal,<wbr>RelayedInternal,Quarantined}, MYNETS LOCAL [127.0.0.1]:35454 <<a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a>> -> <<a href="mailto:recipient2@example.com" target="_blank">recipient2@example.com</a>>,<<a href="mailto:recipient3@example.com" target="_blank">reci<wbr>pient3@example.com</a>>, Message-ID: <865558.509805368-sendEmail@<wbr>mailhost>, mail_id: KDM2kRxplshP, Hits: -50.001..49.999, size: 1127, Subject: "50 test score", From: "<a href="mailto:sender@domain.com" target="_blank">sender@domain.com</a>"_<<a href="mailto:sender@domain.com" target="_blank">sender@<wbr>domain.com</a>>, Tests: [ALL_TRUSTED=-0.001,AM.WBL=-<wbr>100,TEST_50=50], 424 ms<br><br><br>Here are the problems:<br>1) Hits calculated as "-50.001..49.999".<br>In my mail server as example i had messages which calculated with Hits "-94.74..5.26".<br>Hits should be calculated more precisely.<br>For accepted message it is "-50.001"<br>For rejected it is "49.999"<br><br>2) For accepted message amavisd action logged as "Passed SPAM".<br>I suppose the action should be "Passed CLEAN".<br><br>And my last question is it possible to extend MTA response and change it from:<br>250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT<br>to:<br>250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT: <a href="mailto:recipient2@example.com" target="_blank">recipient2@example.com</a>,<a href="mailto:recipient3@example.com" target="_blank">recipie<wbr>nt3@example.com</a><br><br></div>In this way a sender can see a list of recipient which were rejected.<br><div><br>Thanks.<span class="HOEnZb"><font color="#888888"><br></font></span><br></div></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)">This message was delivered using 100% recycled</span></span><span><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)"> electrons</span></span></span></span></b><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span></span></span></b>.<span style="color:rgb(0,0,128);font-family:arial,helvetica,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(253,248,219);display:inline!important;float:none"></span></div></div>
</div>