Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] external config source and ACL

2006-01-12 by manu@netbsd.org

Marek Wodzinski <majek@...> wrote:

> > Of course in order to get decent performances, we should build a list of
> > external config sources (bdb, file...) when parsing the ACL, and check
> > addr, domain, rcpt and from against all the sources before evaluating
> > the ACL.
> 
> hmmm...
> This will make all things slow (in my opinion). I think that better will
> be fast partial evaluation of acl (is it already done?) and runtime 
> checking.
> I mean:
> acl whitelist addr file "/foo/bar.txt" rcpt toto@...
> This will check addr in file and if match occurs, then check recipient.
> But for speed-up of evaluation of acl we can write:
> acl whitelist rcpt toto@toto.com addr file "/foo/bar.txt"
> So, for addresses other than toto@toto.com we don't have to check 
> this external file.

Well, that makes the logic more complicated. And indeed it requires a
cache so that the same external database is not queried again until the
end of ACL evaluation.

-- 
Emmanuel Dreyfus
Un bouquin en français sur BSD:
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.