Hits calculation issue
Konstantin
myownletters at gmail.com
Tue Sep 27 18:57:53 CEST 2016
Hi Guys!
I am using amavisd-new-2.11.0 and found a problem with hits calculation.
How to reproduce the issue:
1) sender at domain.com is at recipient1 at 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 sender at domain.com -t recipient1 at example.com,recipie
nt2 at example.com,recipient3 at 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 <sender at domain.com> -> <
recipient1 at example.com>, Message-ID: <865558.509805368-sendEmail at mailhost>,
mail_id: KDM2kRxplshP, Hits: -50.001..49.999, size: 1127, queued_as:
3s16cl03QGz1x1B, Subject: "50 test score", From: "sender at domain.com"_<
sender at 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 <sender at domain.com> -> <
recipient2 at example.com>,<recipient3 at example.com>, Message-ID:
<865558.509805368-sendEmail at mailhost>, mail_id: KDM2kRxplshP, Hits:
-50.001..49.999, size: 1127, Subject: "50 test score", From: "
sender at domain.com"_<sender at 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: recipient2 at example.com,recipient3 at 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*.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160927/d241d5e9/attachment.html>
More information about the amavis-users
mailing list