Hi Guys! I am using amavisd-new-2.11.0 and found a problem with hits calculation.
How to reproduce the issue: 1) sen...@domain.com is at recipie...@example.com whitelist (score_sender_maps). 2) Spamassassin have a test rule to add 50 points based on subject. It is just to tag message as spam. 3) Send a message to a list of recipient sendEmail -f sen...@domain.com -t recipie...@example.com,recipie n...@example.com,recipie...@example.com -s mailhost -m test -u "50 test score" MTA(Postfix) responded with: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT Amavis log content: amavis[7598]: (07598-01) Passed SPAM {NoBounceInternal,RelayedInternal,Quarantined}, MYNETS LOCAL [127.0.0.1]:35454 <sen...@domain.com> -> < recipie...@example.com>, Message-ID: <865558.509805368-sendEmail@mailhost>, mail_id: KDM2kRxplshP, Hits: -50.001..49.999, size: 1127, queued_as: 3s16cl03QGz1x1B, Subject: "50 test score", From: "sen...@domain.com"_< sen...@domain.com>, Tests: [ALL_TRUSTED=-0.001,AM.WBL=-100,TEST_50=50], 424 ms amavis[7598]: (07598-01) Blocked SPAM {NoBounceInternal,RelayedInternal,Quarantined}, MYNETS LOCAL [127.0.0.1]:35454 <sen...@domain.com> -> < recipie...@example.com>,<recipie...@example.com>, Message-ID: <865558.509805368-sendEmail@mailhost>, mail_id: KDM2kRxplshP, Hits: -50.001..49.999, size: 1127, Subject: "50 test score", From: " sen...@domain.com"_<sen...@domain.com>, Tests: [ALL_TRUSTED=-0.001,AM.WBL=-100,TEST_50=50], 424 ms Here are the problems: 1) Hits calculated as "-50.001..49.999". In my mail server as example i had messages which calculated with Hits "-94.74..5.26". Hits should be calculated more precisely. For accepted message it is "-50.001" For rejected it is "49.999" 2) For accepted message amavisd action logged as "Passed SPAM". I suppose the action should be "Passed CLEAN". And my last question is it possible to extend MTA response and change it from: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT to: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3s2wc36Q4xz1x3V, but 2 REJECT: recipie...@example.com,recipie...@example.com In this way a sender can see a list of recipient which were rejected. Thanks. -- *This message was delivered using 100% recycled electrons*.