--On Thursday, March 05, 2009 10:31 PM +0100 Andrzej Adam Filip <a...@onet.eu> wrote:

I try hard to preach that SA methodology of creating "spam score" based
on weighted tests *CAN* be applied at this point too.
I would like too apply such test in milter (MIMEDefang) that uses SA
anyway in my installation.

A cheap way of doing it would be to construct an artificial message from the information available. One would probably want to use a custom set of rules (ie. strip out most of the normal rules that assume a full set of headers and a regular body).

At "RCPT TO:" stage there are available:
* connecting client IP address (last mail hop)
  so big part of DNSBL and DNSWL tests *CAN* be used
* envelope sender for SPF based tests
* envelope sender and envelope recipient for auto white/black listing
  (producing some kind of grey-listing based for first attempt from
  unknown reputation source)

Instead of running all of SA, perhaps you could just invoke the individual plugins from their Perl entry points. I'm not familiar enough with SA's architecture to know how practical that is, though.

Reply via email to