On 10/9/2014 9:40 AM, Axb wrote:
On 10/09/2014 03:30 PM, Bowie Bailey wrote:
On 10/8/2014 5:03 PM, Axb wrote:
On 10/08/2014 10:48 PM, Robert A. Ober wrote:
On 9/22/14 4:20 PM, RW wrote:
On Mon, 22 Sep 2014 15:11:44 -0500
Robert A. Ober wrote:


*Yes,  my test messages and SPAM hit the rules but ignore the score.*
What score does it have?

Could it be that the score got set after spamd was restarted?
__________________________________

What is the easiest way to know what score is applied per rule? Neither
the server log nor the header breaks it down.
I think the SA's docs show you how

http://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.txt

TEMPLATE TAGS
_REPORT_          terse report of tests hit (for header reports)

put this in you local.cf :

add_header all Report _REPORT_

iirc, this will add a nice  X-Spam-Report:  header with a list of rules
AND scores.
This should already be the default for messages marked as spam.  The
line above will add the report to ham messages as well.
I don't see that in the default templates in 10_default_prefs.cf
am I missing something? blind?

if you use report_safe 0 does it really add the full reports?

It's been years since I've used an aboslutely default SA.

I don't know where you would find it in the templates. I just know that by default, SA adds an X-Spam-Report header to spam. It looks like this (blacklisted ip addresses removed to avoid spam filters):

X-Spam-Report:
    *  0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server
    *      [xx.xx.xx.xx listed in dnsbl.sorbs.net]
    * -1.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3)
    *      [xx.xx.xx.xx listed in wl.mailspike.net]
    *  2.0 BAYES_80 BODY: Bayes spam probability is 80 to 95%
    *      [score: 0.8911]
    *  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
    *      valid
    * -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
    *  0.0 TVD_SPACE_RATIO No description available.
* 0.8 BODY_URI_ONLY Message body is only a URI in one line of text or for
    *      an image
    *  2.8 TVD_SPACE_RATIO_MINFP No description available.
    *  0.2 AWL AWL: From: address is in the auto white-list

Ah!  Apparently, this is only done with a setting of report_safe 0.

From the report_safe section of the Mail::SpamAssassin::Conf man page:
If this option is set to 0, incoming spam is only modified by adding some "X-Spam-" headers and no changes will be made to the body. In addition, a header named X-Spam-Report will be
        added to spam.

The line:
        add_header all Report _REPORT_
will add this header to all messages regardless of spam status.

--
Bowie

Reply via email to