On Wed, Mar 11, 2015 at 11:46 PM, Viktor Dukhovni
<[email protected]> wrote:
>
> Not at present.  You can only suppress lookups for bare keys which
> can happen when the domain is $myorigin or matches $mydestination
> by interpolating the lookup key into the query via '%u@%d' instead
> of '%s'.  That will filter out keys with no @domain part.

Thanks Victor. :)

I'm afraid that '%u' doesn't work, it still has '+extension' in query.
for example:

*) part of my testing ldap lookup file:

query_filter    = (mail=%u@%d)

*) Testing with 'postmap':

# postmap -v -q '[email protected]' ldap:./my_ldap_file.cf
...
postmap: dict_ldap_lookup: ./my_ldap_file.cf: Searching with filter
([email protected])
...

As you can see, '%u' doesn't drop extension '+abc' in my test.
Anything wrong in my testing?

Reply via email to