On 2/18/2005 3:39 PM, Eric A. Hall wrote:

> Basically... I've already got postfix calling LDAP for a variety of
> filters (see http://www.ehsco.com/reading/20040916ncf1b.gif), and I'd like
> to extend those LDAP entries for global spamassassin tests (I don't do any
> per-user tests at the global level). Primarily this means moving the
> global whitelists to LDAP (eg, rather than track global whitelists in a
> local cf file, link them to domain-based entries in the directory).
> 
> Is the LDAP stuff in SA usable for global tests, or is it per-user only,
> or is there less of a difference than I am imagining here?

okay now that I've found relevant documentation, it doesn't seem that the
existing ldap stuff is going to be very useful. I suppose that could (in
theory) add private whitelist entries linked to the gateway account, but
that's not what I'm hoping for.

It might be best to work up a plugin that queries ldap for predefined
weighting values associated with specific domains, and then adds those
values to the final score. For example:

 [cn=example.com,ou=spamassassin,ou=services,dc=ehsco,dc=com]
   name = example.com
   received-score = -100
   from-score = 0

Then do something like parse the trusted Received header and query for any
of the discovered domain names, do another query based on the from header
field value, and so forth.

Is this feasible?

-- 
Eric A. Hall                                        http://www.ehsco.com/
Internet Core Protocols          http://www.oreilly.com/catalog/coreprot/

Reply via email to