[exim] question regarding spamassassin in exim, especially h…

Góra strony
Delete this message
Reply to this message
Autor: David Mathog
Data:  
Dla: exim-users
Temat: [exim] question regarding spamassassin in exim, especially headers
spamassassin has a huge set of configuration files, on my system it
looks in these three places, plus at a user config file:

/usr/share/spamassassin/
/var/lib/spamassassin/3.002005/updates_spamassassin_org/
/etc/mail/spamassassin

Nevertheless, none of the headers defined by "add_header" in any of
those many configuration files actually show up in the messages.
Instead the only headers created are those defined in exim.conf in this
section:

acl_check_data:
  deny  message = This message contains malware ($malware_name)
        malware = *
  accept  condition = ${if >={$message_size}{20k}{yes}{no}}
  warn  message = X-Spam-Scanned: locally
        spam = nobody:true
  warn  message = X-Spam-Score: LOCAL_SCORE $spam_score ($spam_bar)
        spam = nobody:true
  warn  message = X-Spam-Report: $spam_report
        spam = nobody
        add_header = Subject: [SPAM] $h_Subject:
  warn message = X-Spam-Flag: YES
       spam = nobody
  deny  message = This message scored $spam_score points. Congratulations!
        spam = nobody:true
        condition = ${if >{$spam_score_int}{120}{1}{0}}
  accept


And it runs acl_check_data because this line is also in exim.conf:

acl_smtp_data = acl_check_data

When this is run

spamassassin --lint -D

it shows all the many configuration files being read.

Is there a different exim configuration that would let spamassassin use
the headers defined in its configuration files instead? In particular I
want the X-Spam-Status header that results from:

add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_
tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_"

which is defined in those configuration files but isn't showing up in
the scanned email messages.

Thank you,

David Mathog
mathog@???
Manager, Sequence Analysis Facility, Biology Division, Caltech