https://bugs.contribs.org/show_bug.cgi?id=10251

            Bug ID: 10251
           Summary: no more spamassassin tag stats
    Classification: Contribs
           Product: SME Contribs
           Version: Futur
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-mailstats
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

since update to the last qpsmtpd or at least since 
/usr/bin/spamfilter-stats-7.pl Version : 0.6.29 I do not see anymore
"Spamassassin Rules:" table



from reading the code it seams that it has been commented out.

from searching in qpsmtpd log it seamms thta the plugin does not report anymore
the tags.

previoulsy

@4000000058faf92f15facafc 23137 spamassassin plugin (data_post): check_spam:
Yes, hits=8.1, required=4.0,
tests=BASE64_LENGTH_79_INF,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FROM_EXCESS_BASE64,HTML_IMAGE_RA
TIO_02,HTML_MESSAGE,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI,MPART_ALT_DIFF,RP_MATCHES_RCVD,URIBL_ABUSE_SURBL,URIBL_BLACK
@4000000058faf92f15fad2cc 23137 logging::logterse plugin (deny): `
212.129.57.113       e35.chant-des-parfums.fr        e35.chant-des-parfums.fr  
     <[email protected]>     <[email protected]>    spamassassin   
901     spam score exceeded threshold (#5.6.1)  Yes, hits=8.1 required=4.0_



now:

@4000000058fe9176224fab24 27188 (data_post) spamassassin: karma -1 (-1)
@4000000058fe9176228fec5c 27188 (data_post) spamassassin: fail, Spam, 104.3, >
8, learn=no
@4000000058fe9176228ffbfc 27188 (deny) logging::logterse: ` 212.83.168.232     
front.koozali.org       mx.koozali.org  <[email protected]> <[email protected]>
spamassassin    901     spam score exceeded threshold   Yes, score=104.3
required=4.0 autolearn=no autolearn_force=n



to investigate, but this seems related to the update of the plugin


in the meantime the information could be available in the spamd log 

@4000000058fe917228607aac Apr 25 01:59:36.677 [3880] info: spamd: checking
message <[email protected]> for qpsmtpd:1005
@4000000058fe917621d7bc04 Apr 25 01:59:40.568 [3880] info: spamd: result: Y 104
- BAYES_20,HTML_MESSAGE,PLING_QUERY,RCVD_IN_SBL_CSS,USER_IN_BLACKLIST
scantime=3.9,size=2417,user=qpsmtpd,uid=1005,required_score=4.0,rhost=127.0.0.1,raddr=127.0.0.1,rport=52404,mid=<[email protected]>,bayes=0.129125,autolearn=no
autolearn_force=no

--- Comment #3 from Brian Read <[email protected]> ---
Are you suggesting we modify the spamassassin qpsmtpd plugin?  what does the
team think about that?

--- Comment #2 from Brian Read <[email protected]> ---
Are you suggesting we modify the spamassassin qpsmtpd plugin?  what does the
team think about that?

--- Comment #1 from Jean-Philippe Pialasse <[email protected]> ---
spamassasin plugin has been changed deeply

the magic line was :
  $self->log(LOGNOTICE, "check_spam: $flag, hits=$hits, required=$required, " .
                             "tests=$tests");


in "sub hook_data_post { # check_spam" which does not exist anymore.


best place to put something similar could be in parse_spamd_response sub   or 
insert_spam_headers subs or after them to parse the line "X-Spam-Status: Yes,
score=7.2 required=4.0 autolearn=no autolearn_force=no"
this could also be using $new_headers->{$name} if ($name eq 'X-Spam-Status')
or $headers->{$name} directly in the data post handler.


$headers->{'X-Spam-Status'} 
"X-Spam-Status: Yes, score=7.2 required=4.0 autolearn=no autolearn_force=no"

this could get the $flag, hits=$hits, required=$required


$headers->{'X-Spam-Details'}
"X-Spam-Details: *  0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd
level mail
                *      domains are different
                *  1.6 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before
Received: date
                * -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover
relay domain
                *  1.8 TVD_PH_REC BODY: Message includes a phrase commonly used
in phishing
                *       mails
                *  1.5 HTML_IMAGE_ONLY_20 BODY: HTML: images with 1600-2000
bytes of words
                *  1.5 BAYES_60 BODY: Bayes spam probability is 60 to 80%
                *      [score: 0.7766]
                *  0.0 HTML_MESSAGE BODY: HTML included in message
                *  0.7 MIME_HTML_ONLY BODY: Message only has text/html MIME
parts
                *  0.0 T_REMOTE_IMAGE Message contains an external image"

this needs parse to get the $tests
something based on \*  -?\d+\.\d ([A-Z0-9_]+)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to