On Sat, Sep 26, 2020 at 09:08:55AM +0200, Marek Kozlowski wrote: > First of all. The Directory structure and the config may seems a little > bit strange but, in fact, there are some important historical reasons > (backward compatibility, many, many years ago we started with Novell NDS > and NetWare4 and so on...) for having it as described. It's worth > mentioning this config has been working for many years with no problem.
Sure, OK. Anyway, if you want to check whether the mail address matches an account name, you can do that with a suitable "(&(cond1)(cond2))" recipe, provided of course that LDAP has sufficient data to evaluate a suitable combination of "cond1" and "cond2". What Postfix can feed into the queury are various fragments of the recipient address, as described in ldap_table(5) and LDAP_README. -- Viktor.