Using SpamAssassin, I want to whitelist every email address in the LDAP directory address book our mail clients (Mozilla and Netscape) use, without having a separate "whitelist_from" hard-wired into the SpamAssassin config file.
So I've hacked some changes to SpamAssassin 2.55 so it can query the LDAP server to do this (using Perl-LDAP 0.28). Might have performance implications if used with spamd on high-throughput mail server, but it works fine for me (not using spamd). Tested with OpenLDAP 1.2 and 2.0 servers on Red Hat Linux.
If anybody else is interested, and this hasn't been done already, I can post my changes ...
I suppose it might be of interest to others if you told the list what users your ldap director[y|ies] contain(s). As well as your policy.
Like I don't want mail from my local users (100% Openldap 2.1.19 based) scanned, so both with my Postfix 2.0.x and SA-Exim 4.20/3.0 MTAs, I configure them such, that they don't scan mails from ldap-based local users. This is my policy and this is in fact what I do. I don't need to change any SA code at all to do it. If I only wanted certain local groups to be accepted, I could do that my way too.
So, suppose you explain why you have to. A good reason, for example, would be that you don't want external ldap users (Netscape, Bigfoot, you name it) to be vetted for spam. That wouldn't work with my method.
Best,
Tony
-- Tony Earnshaw
- Deyr fé, deyr frendr deyr sjálfr 'it sama - ek veit ein aldrigi deyr - dómr um dauđan hvern.
From Hávamál - what gods have said
http://j-walk.com/blog/docs/conference.htm http://www.billy.demon.nl Mail: [EMAIL PROTECTED]
------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk