Re: [exim] SPAM report

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Wolfgang Breyha
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] SPAM report
Александр Кириллов via Exim-users wrote on 01/10/2018 13:33:
> Well, I've tried this padding thing:
>
> warn add_header = X-Spam-Score: $spam_score\n\
>                   X-Spam-Report:
> --------------------------------------------------------------\n\
>                   ${map{<\n $spam_report}{ ${length_77:$item
>                                                               }}}

>
> And this is the best I could do:

You can try to use my:
http://www.blafasel.at/exim/ZIDReport.pm

This module "encodes" many values into $spam_report to be extracted by Exim
ACLs. The report itself is nicely formated.

To use it put it in your SpamAssassin config folder and add
--------
loadplugin ZIDReport ZIDReport.pm
clear_report_template
report _ZIDREPORT_
-------
to your local.cf.

Then use parts of...
   add_header  = X-Spam-Score: $spam_score\n\
                 X-Spam-Score-Int: $spam_score_int\n\
                 X-Spam-Level: $spam_bar\n\
                 X-Spam-Checker-Version: ${extract{version}{$spam_report}}\n\
                 X-Spam-Status: ${extract{status}{$spam_report}}\n\
                 X-Spam-Languages: ${extract{langs}{$spam_report}}\n\
                 X-Spam-Relay-Countries: ${extract{reltlds}{$spam_report}}\n\
                 X-Spam-Report: ${extract{report}{$spam_report}}
... to add headers.


Greetings, Wolfgang
--
Wolfgang Breyha <wbreyha@???> | https://www.blafasel.at/
Vienna University Computer Center | Austria