Re: [exim] Exim/Exiscan and Spamassassin headers

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Thomas Hochstein
Datum:  
To: exim-users
Betreff: Re: [exim] Exim/Exiscan and Spamassassin headers
Matthew Daubenspeck schrieb:

> Is there a way to add the old X-Spam-Status header with Exim/Exiscan? It
> used to look like:
>
> X-Spam-Status: No, hits=0.5 required=4.0 tests=AWL,IMPRONONCABLE_1                                  
>         autolearn=no version=2.63


Yes. You can hack the contents of the SpamAssassin "report" in
/etc/spamassasin/local.cf, so $spam_report will contain s.th. else:

| clear_report_template
| report _YESNO_, hits=_SCORE_ required=_REQD_ tests=_TESTS(,)_ autolearn=_AUTOLEARN_ version=_VERSION_


You would then user
|   warn  message = X-Spam-Score: $spam_score ($spam_bar)
|         spam = nobody:true
|   warn  message = X-Spam-Status: $spam_report
|         spam = nobody:true

in your ACL.

You loose the verbose $spam_report that way, though.

(But if you like, you can combine the old X-Spam-Status and a slightly
less verbose version of X-Spam-Report - it's up to you.)

-thh