[exim] Integrating exim, dspam, and spamassasin

Top Pagina
Delete this message
Reply to this message
Auteur: Marcin Mirosław
Datum:  
Aan: exim-users
Onderwerp: [exim] Integrating exim, dspam, and spamassasin
Hello!
I'd like to turn off bayes in SA and use dspam instead of them. I spend
some time for searching and i didn't found many solutions.
The main goal is: use dspam as plugin for SA.
I've found plugin which "translate" scores from dspam to scores:
http://eric.lubow.org/projects/dspam-spamassassin-plugin/
No doc found for it, it looks like message should have X-DSPAM...
headers. Ok, now i'm looking how to put X-DSPAM headers into message.
First attempt:
warn
 message         =  ${run{/usr/local/bin/dspam-wrapper.sh
${spool_directory}/scan/${message_id}/${message_id}.eml }{$value}{$value}}


cat wrapper:
/usr/bin/dspamc --client --mode=teft --user mail --stdout
--deliver=summary <"$1"

I'm getting: X-DSPAM-Result: mail; result="Spam"; class="Spam";
probability=1.0000; confidence=0.94; signature=4c4ed445259482569042550

The plugin mentioned above dosn't like it, it needs this format:
X-DSPAM-Result: Spam
X-DSPAM-Processed: Tue Jul 27 14:47:02 2010
X-DSPAM-Confidence: 0.9938
X-DSPAM-Improbability: 1 in 16108 chance of being ham
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 4c4ed546259481302212047
X-DSPAM-Factors: 15,

I'm continuuing searching... I found patch (
http://mta.org.ua/exim-patches/exim-4.67-dspam/ ) which uses
local_scan() to connect to dspam daemon. No doc found :( I can't found
who wrote patch, i don't know if patch is still mainained.
Maybe someone has idea how to do it?
Thanks,
regards!