On Wed, Mar 11, 2015 at 11:46 PM, Viktor Dukhovni
<postfix-us...@dukhovni.org> 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 'postmaster+...@mydomain.ltd' ldap:./my_ldap_file.cf
...
postmap: dict_ldap_lookup: ./my_ldap_file.cf: Searching with filter
(mail=postmaster+...@mydomain.ltd)
...

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

Reply via email to