Re: Score Ignored

2014-10-09 Thread Bowie Bailey

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.


--
Bowie


Re: Score Ignored

2014-10-09 Thread Axb

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.



Re: Score Ignored

2014-10-09 Thread Bowie Bailey

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


Re: Score Ignored

2014-10-08 Thread Robert A. Ober

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.


Not sure what you mean by the score set after spamd was restarted. Don't 
know how that would happen.


To answer earlier ideas/questions,  I have retyped and the rules are not 
duplicated.


Baffled and annoyed,
Robert A. Ober


Re: Score Ignored

2014-10-08 Thread Axb

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.


and when in doubt, rtfm:
http://spamassassin.apache.org/full/3.4.x/doc/
and/or in the local box via perldoc spamassassin




Re: Score Ignored

2014-10-08 Thread Karsten Bräckelmann
On Wed, 2014-10-08 at 15:48 -0500, Robert A. Ober 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 is the easiest way to know what score is applied per rule? Neither 
 the server log nor the header breaks it down.

Wait. If there's no Report, if you do not have the list of rules hit and
its respective scores, how do you tell your custom rule's score is
ignored by SA?


Besides the Report as mentioned by Axb already, you also can modify the
default Status header to include per-rule scores.

add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ 
tests=_TESTSSCORES(,)_ autolearn=_AUTOLEARN_ version=_VERSION_


-- 
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;il;i++){ i%8? c=1:
(c=*++x); c128  (s+=h); if (!(h=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



Re: Score Ignored

2014-09-22 Thread Alex Regan



This working elsewhere for me but on my own server the score for the
rules I wrote are being ignored.  Example rule:

header SUBJECT_NOTIFICATION  Subject =~ /\bNotification\b/i
score  SUBJECT_NOTIFICATION  3.0

Spamd uses the rule but does not apply the score.  I am on 3.3.2 on
Mageia 3 with Postfix and Procmail.


What file do you have this rule stored in? Are you sure it's being read 
on start-up?


Have you tried to lint your rules?

# spamassassin --lint

Use spamassassin -t -D  myfile 21 |less and read through the debug 
output for any possible errors and a reference to your cf file.


Regards,
Alex





Any ideas?

Thanks,
Robert A. Ober*

--
Folks,
Please be aware that I am not always watching email so text me
or go old school and call me at 281-772-3596 if you need help within a few 
hours.




Re: Score Ignored

2014-09-22 Thread Robert A. Ober

On 9/22/14, 12:56 PM, Alex Regan wrote:



This working elsewhere for me but on my own server the score for the
rules I wrote are being ignored.  Example rule:

header SUBJECT_NOTIFICATION  Subject =~ /\bNotification\b/i
score  SUBJECT_NOTIFICATION  3.0

Spamd uses the rule but does not apply the score.  I am on 3.3.2 on
Mageia 3 with Postfix and Procmail.


What file do you have this rule stored in?

__

*local.cf*

Are you sure it's being read on start-up?


_

*Yes,  my test messages and SPAM hit the rules but ignore the score.*


Have you tried to lint your rules?

# spamassassin --lint

_

*That gave me a bunch of redefined errors in IP.pm so I am updating that.*


Use spamassassin -t -D  myfile 21 |less and read through the 
debug output for any possible errors and a reference to your cf file.

__

*So that is fun;-)  Lots to read.   Anyway,  what is to be substituted 
for myfile?  A test message?The local.cf?**

**
**Thanks Much,**
**Robert A. Ober*



Re: Score Ignored

2014-09-22 Thread Bowie Bailey

On 9/22/2014 4:11 PM, Robert A. Ober wrote:




header SUBJECT_NOTIFICATION  Subject =~ /\bNotification\b/i
score  SUBJECT_NOTIFICATION  3.0


*Yes,  my test messages and SPAM hit the rules but ignore the score.*


Double-check your rule and score lines for any minor typos -- 
particularly in the name of the rule.


--
Bowie


Re: Score Ignored

2014-09-22 Thread David B Funk

On Mon, 22 Sep 2014, Bowie Bailey wrote:


On 9/22/2014 4:11 PM, Robert A. Ober wrote:




header SUBJECT_NOTIFICATION  Subject =~ /\bNotification\b/i
score  SUBJECT_NOTIFICATION  3.0


*Yes,  my test messages and SPAM hit the rules but ignore the score.*


Double-check your rule and score lines for any minor typos -- particularly in 
the name of the rule.


AND make sure you don't have a subsequent rule that has the same name.
The rule parsing system says last man wins so if there's a subsquent
rule (either in that same file or in another file that is included later
in the parsing process) with the same name it will over-ride your
rule in question.


--
Dave Funk  University of Iowa
dbfunk (at) engineering.uiowa.eduCollege of Engineering
319/335-5751   FAX: 319/384-0549   1256 Seamans Center
Sys_admin/Postmaster/cell_adminIowa City, IA 52242-1527
#include std_disclaimer.h
Better is not better, 'standard' is better. B{


Re: Score Ignored

2014-09-22 Thread RW
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?