man 5 ldap_table would be a good start. It contains some performance tuning
tips as well e.g. using the "domain" parameter in LDAP queries to reduce the
query load.
> 2. would proxymap be a viable candidate to handle this situation?
Yes, proxymap is what you want to use to bundle database connections:
..._maps = proxy:ldap:$config_directory/ldapQuery.cf
> 3. how do other high(er) volume sites handle authentication?
We use the Cyrus SASL ldapdb plugin on a company site that has 15.000 users
who do about 100.000 messages a day. The ldapdb plugin is stable and works
well. It requires proxy authentication i.e. the plugin needs to authenticate
with the openLDAP server before it is allowed to do the user authentication.
We configured proxy authentication using DIGEST-MD5 and tested with EXTERNAL
i.e. using a TLS client certificate. However the time we lost because using
TLS was significant (I don't recall the exact figures) and so we stayed with
DIGEST-MD5.
> And my concerns, on which any comments would be appreciated:
Sorry, running out of time right now.
p@rick
>
> 1. this seems to be offloading work that should be done by the LDAP to the
> mail server
> 2. caching systems often become bottlenecks as the number of cached entries
> grows
> 3. this is adding complexity to a functioning system
> 4. since this is what LDAP is designed to do, why re-invent the wheel?
>
> It is probably apparent from the above what my views on this proposal are,
> but I will welcome all and any input, particularly if it serves to change my
> mind.
>
> Thanks,
>
> mike
--
The Book of Postfix
<http://www.postfix-book.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
Postfix splits the search string into substrings and does searches for them as
well. The specific sequence in which these search strings are used is
determined by the mumble_maps parameter you use. Alias-maps are searched in a
different order than transport maps, for example. You will find the search
order documented in the corresponding man page.
> As regards proxymap, I came across a reference on google that stated this
> would not work for aliases. Is this true? And also how does it perform under
Not to my knowledge.
> load? As mentioned we host somewhere approaching 1,00,000 mail users and
> this is increasing by about 1,000 every day.
proxymap was specifically designed to perform under load. Before proxymap
people would complain that their DB would report "too many open connections"
and that latency was too high. The job of proxymap is to eliminate both
problems - open only one connection and keep it open so reconnects aren't
required and queries can start immediately.
I don't recall anybody doing load tests though. You might need to find our
yourself what performance increase you gain and if that is enough for your
requirements. But I remember that others with a userbase as large as yours use
proxymap and that they didn't have any problems.
HTH,
p@rick