[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: customizing spamassassin reports



Benedict Verheyen wrote:
Hi,

currently every mail is tagged with these headers
X-Spam-Score and X-Spam-Report.

I want to have the same headers as they are added by the debian mailing list: X-Spam-Checker-Version, X-Spam-Flag, X-Spam-Level and X-Spam-Status.
This is my /etc/spamassassin/local.cf

================================= local.cf ============================
use_terse_report 1
report_safe 0
use_bayes 1
auto_learn 1
bayes_path /var/mail/.spamassassin/bayes
bayes_file_mode 0664
score MICROSOFT_EXECUTABLE 6.0
lock_method flock

clear_headers
remove_header X-Spam-Report
remove_header X-Spam-Score

#X-Spam-Checker-Version: SpamAssassin 2.60-cvs (1.188-2003-05-24-exp)
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_

#X-Spam-Flag: YES
add_header spam Flag _YESNOCAPS_

#X-Spam-Level: *************
add_header all Level _STARS(*)_

#X-Spam-Status: Yes, score=14.0 required=5.0 tests=BAYES_99,CALL_FREE
#       DATE_IN_PAST_12_24,DCC_CHECK,DRASTIC_REDUCED,FROM_HAS_MIXED_NUMS
#       FROM_HAS_MIXED_NUMS3,HOME_EMPLOYMENT,INVALID_DATE,INVALID_MSGID
#       LINES_OF_YELLING,MSGID_HAS_NO_AT,NO_REAL_NAME,ONCE_IN_LIFETIME
#       UNDISC_RECIPS autolearn=spam version=2.60-cvs
add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_"
================================= local.cf ============================

It tried to add
  clear_headers
  remove_header X-Spam-Report
  remove_header X-Spam-Score

to get rid of these headers but they are still placed in the mail even after restarting the spamd daemon.

Do i need to customize 10_misc.cf to get the behaviour i want? I tought the headers i want where going to be added anyway as they are in that file 10_miscf.cf also. But apparently they arent.

Anybody know what i need to do to get the desired headers?

Thanks,
Benedict




hhhm, the headers are generated by exim. Excerpt from the /etc/exim4/conf.d/acl/40_exim4-config_check_data file:

   warn message = X-Spam-Score: $spam_score ($spam_bar)
        condition = ${if <{$message_size}{80k}{1}{0}}
        spam    = nobody:true

   warn message = X-Spam-Report: $spam_report
        condition = ${if <{$message_size}{80k}{1}{0}}
        spam    = nobody:true

   warn message = X-Spam-Flag: YES
        spam    = nobody

   #deny message = This message scored $spam_score spam points
   #     spam    = nobody:true
   #    condition = ${if >{$spam_score_int}{120}{1}{0}}

deny message = This message contains a virus or other harmful content ($malware_name)
        demime  = *
        malware = *

So how do i get my headers? Can i remove the blocks containing X-Spam-Score and X-Spam-Report? Why didn't the settings in my /etc/spamassassin/local.cf result in adding the headers that i want then?

Regards,
Benedict



Reply to: