Hello.
Thank you for the anwer. $sa_tag_level_deflt is already set to 2.0. Here the
headers of the message relative the score:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on av9.infracom.it
X-Spam-Level: *
X-Spam-Status: No, score=1.9 required=5.0 tests=BASE64_LENGTH_79_INF,BAYES_00,
HTML_IMAGE_ONLY_20,HTML_MESSAGE,MIME_HTML_ONLY,MISSING_MIME_HB_SEP,
MPART_ALT_DIFF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,
TO_NO_BRKTS_HTML_IMG,T_REMOTE_IMAGE autolearn=no autolearn_force=no
version=3.4.0
Delivered-To: spam-quarantine
X-Envelope-To: <[email protected]<mailto:[email protected]>>
X-Envelope-To-Blocked: <[email protected]<mailto:[email protected]>>
X-Quarantine-ID: <BknEtFAN2Yh1>
X-Amavis-Alert: BAD HEADER SECTION, Non-encoded non-ASCII data (and not UTF-8)
(char B0 hex): Subject: Annullamento Ordine n\x{B0} 217026098 del
[...]
So the thing to be clarified is the difference between the ‘score’ reported by
spamassassin (and X-Spam-Status header) and the Hits reported by the amavisd
log.
Could someone explain the difference?
Regards,
RS
Da: amavis-users
[mailto:[email protected]] Per conto
di Dominic Raferd
Inviato: giovedì 20 luglio 2017 07:18
A: [email protected]
Oggetto: Re: R: R: R: R: Message quarantined as SPAM
You can set $sa_tag_level_deflt (different from $sa_tag2_level_deflt) to lower
level - mails with scores above $sa_tag_level_deflt will have spam info header
added; this header shows how amavis has calculated the score.
On 19 July 2017 at 14:02, Scappatura Rocco
<[email protected]<mailto:[email protected]>> wrote:
Thank you for the answer.
Yes, you are right. Anyway I set ‘$sa_kill_level_deflt = 6.31’ too in amavis
configuration.
I could agree for the differnce of the score of the message assigned by amavis
and the score of the SA test of the quarantined message..
But, I would like to understand why amavis assigns a so high score (7.946) to a
harmless message ..
Regards,
RS
Da: amavis-users
[mailto:amavis-users-bounces+rocco.scappatura<mailto:amavis-users-bounces%2Brocco.scappatura>[email protected]<mailto:[email protected]>]
Per conto di Dominic Raferd
Inviato: mercoledì 19 luglio 2017 14:28
A: [email protected]<mailto:[email protected]>
Oggetto: Re: R: R: R: R: Message quarantined as SPAM
On 19 July 2017 at 12:56, Scappatura Rocco
<[email protected]<mailto:[email protected]>> wrote:
Hello.
Even after the changes done to the amavis configuration, I still notice that
some messages has been blocked as SPAM. For example:
Jul 18 12:04:55 zzz amavis[18242]: (18242-14) Blocked SPAM
{DiscardedInbound,Quarantined}, [195.245.231.137]:39849 [193.67.127.189]
<[email protected]<mailto:[email protected]>> ->
<[email protected]<mailto:[email protected]>>, quarantine:
B/spam-BknEtFAN2Yh1.gz, Queue-ID: 31099D5C4B, Message-ID:
<[email protected]<mailto:[email protected]>>,
mail_id: BknEtFAN2Yh1, Hits: 7.946, size: 170434, 551 ms
while the score I get while testing the messages is much lower that
$sa_tag2_level_deflt (1.9 < 6.31):
...
Where is the problem? Why the message is tagged as SPAM and quarantined?
It is not $sa_tag2_level_deflt that determines whether message is quarantined,
this only determines whether to add 'spam detected' headers in the emails.
Score above $sa_kill_level_deflt triggers evasive action (i.e. according to
$spam_quarantine_method).
Also I am not sure you can rely on getting same spam calculation when you
re-test a quarantined email as when it arrives from outside, perhaps this is
why header shows score of 7.946 but retest only 1.9?