In order to keep track of what spamassassin is doing,
I want to add a full spamassassin report to every mail,
even those that are not tagged as spam.
The way I call spamassassin now, is by adding the
following to the DATA ACL:
# Spamassassin acls.
warn
spam = Debian-exim:true
condition = ${if >={$spam_score_int}{40}}
message = X-Spam-Status: Yes, score=$spam_score required=4.0\n\
X-Spam-bar: $spam_bar\n\
X-Spam-Report: $spam_report
delay = 20s
control = fakereject
logwrite = :main: Classified as spam (score $spam_score)
logwrite = :reject: SPAM: $spam_report
warn
condition = ${if <{$spam_score_int}{40}}
message = X-Spam-Status: No, score=$spam_score required=4.0\n\
X-Spam-Report: $spam_report
The last line of which adds a report to non-spam that looks
like this:
X-Spam-Status: No, score=2.1 required=4.0
X-Spam-Report: Spam detection software, running on the system "ansset.alinoe.com", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Greetings Without more information on your setup I can't
give a finite solution (not being a guru I would hesitant to do it
anyway) but on my setup I simply create a list of email addresses comma
delimited in the "alias" field of the database. [...]
Content analysis details: (2.1 points, 4.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.3 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email
1.0 URI_NOVOWEL URI: URI hostname has long non-vowel sequence
3.0 URIBL_BLACK Contains an URL listed in the URIBL blacklist
[URIs: xxxxxxx.com]
-2.1 AWL AWL: From: address is in the auto white-list
Apart from that this "has identified this incoming email as possible spam" is
wrong - there is a lot more that I want to change in the headers. Things that ARE
possible if I can allow spamassassin to add/change the headers.
(This is how I want it to look like:
X-Spam-Checker-Version: SpamAssassin 3.0.6 (2005-12-07) on alinoe.com
X-Spam-Level:
X-Spam-Bayes: Hammy tokens: 0.019-+--HContent-class:content-classes, 0.019-+--HContent-class:message, 0.019-+--HContent-class:urn, 0.025-+--Wood, 0.026-1--helemaal, 0.026-1--hoop, 0.028-+--heb, 0.032-+--HX-MimeOLE:V6.5
Spammy tokens: 1.000-9--sub, 0.989-1--LCD, 0.989-1--lcd, 0.978-1--norm, 0.978-1--Solutions, 0.966-+--Technology, 0.962-+--men, 0.958-1--NUL
X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50=0.001 version=3.0.6
Mainly to keep an eye on what goes wrong with the bayesian checker.)
Normally I can do this by adding the following to /etc/spamassassin/local.cf
add_header all Bayes "Hammy tokens: _HAMMYTOKENS(8)_\nSpammy tokens: _SPAMMYTOKENS(8)_"
add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTSSCORES(,)_ version=_VERSION_"
but for some reason these headers do not appear in my mails with
this new setup with exim4 (before this I used qmail with qmail-scanner).
Can someone tell me how I can get spamd to add those headers again,
or where I can find the documentation explaining how to do so?
--
Carlo Wood <carlo@???>