spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karsten Bräckelmann <guent...@rudersport.de>
Subject Reporting matched Rules and Scores (was: Re: sa-exim Terse Rules)
Date Sat, 20 Apr 2013 02:39:31 GMT
On Thu, 2013-04-18 at 19:24 -0500, John Traweek CCNA, Sec+ wrote:
> I’m new to the list, so if there are web archives that are easily
> searchable where I can find this info please point me to it.  I am
> running sa-exim with SA 3.3.1.  I am trying for the life of me to turn
> on the Terse report options, so that in the email headers I can see
> what points are being attributed to each rule.

See M::SA::Conf docs [1] for all options outlined below. You've been
slightly vague, so it isn't clear which you're actually after.

The report_safe option, set to 0, will add an X-Spam-Report header
listing all triggered rules, their score and brief description.

This actually is the more verbose one, even though the respective
Template Tag's description calls it being the "terse" report. Probably
based on the report_safe default of 1, which wraps spam unaltered as
attachment to another MIME message. Which makes the Report header more
terse than wrapping, yet verbose on info.

If you want that header, regardless of the report_safe option, or maybe
regardless of the mail's spammyness (defaults to spam only), you can
enforce that header.

  add_header  all Report _REPORT_

The other option, and basically as terse as it can get, is the Template
Tag _TESTSSCORES_. The same as _TESTS_, the list of all rules hit,
though also including each rule's score. The latter is used by default
for the Status header.

You can easily overwrite the default and customize it using the more
verbose (yet really terse) variant with scores, by adding an add_header
option to your site config, similar to the one in 10_default_prefs.cf.


> It seems this has changed somewhat from version to version so I can’t
> seem to find anything specifically related to version and sa-exim when
> googling.  TIA.

Nope, this didn't change in a long time.

Please note though, that the above is about vanilla SA configuration. I
don't know sa-exim, and whether it requires specific options.


[1] http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html

-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0;
}}}


Mime
View raw message