Kai Schaetzl wrote:

I don't use MimeDefang, but I guess it should be possible to tell MD to use a specific configuration file when calling SA (depends on how it calls SA).

Absolutely. Here's an example from our "mimedefang-filter":
---8<---
if ($is_result_query) {
        debug_log(2,"spam: running spamassassin query");
        ($hits, $req, $names, $report) = 
spam_assassin_check('/usr/local/etc/mimedefang/sa-mimedefang-query.cf');
} else {
        debug_log(2,"spam: running spamassassin");
        ($hits, $req, $names, $report) = spam_assassin_check();
}
---8<---

The filter has access to SMTP-level info like mail from and rcpt to as well as 
the raw and the MIME-parsed message.

One think to remember is that there one mail may have mutiple recipients. If 
that is a problem the filter can make MD resend (to itself) incoming message as 
one message per recipient.

/Jonas

--
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/

Reply via email to