On 10/26/2011 8:56 AM, Nerijus Kislauskas wrote:
> On 10/26/2011 02:09 PM, Noel Jones wrote:
>> The postfix database interface is a general-purpose mechanism, not
>> an LDAP interface.  In the case of relay_recipient_maps, the
>> requirement is that a result must be returned, but the value is not
>> used.  As long as a lookup returns anything, the user is considered
>> valid.
> 
> It depends how you understand "lookup returns". It may be:
> 
>...

You miss the point.  Postfix is database-agnostic.  The result from
any table lookup must be a non-empty value or "not found".  Outside
of the LDAP interface, postfix doesn't know what a DN or an attr is,
only "key" and "result".  The query you construct for LDAP must
return what postfix expects.

I'm sure there could be a great number of optimizations made to
lookups if postfix used LDAP (or any single table type) exclusively,
but that's not how it works.

If you can figure out optimizations to the LDAP interface without
breaking other supported table types, feel free to submit a patch.



  -- Noel Jones

Reply via email to