|Main Archive Page > Month Archives > postfix-users archives|
On 3/28/2012 5:19 AM, Priscilla V wrote:
> We have configured to consider ldap users also in /etc/nsswitch.conf.
I'm not an LDAP expert, but it seems as if you are looking up a full
Please be aware that alias_maps lookups only send the bare user name.
Queries targeting "firstname.lastname@example.org" will fail.
> : files ldap nisplus
> shadow: files ldap nisplus
> group : files ldap nisplus
> So virtual aliases need not be configured.
> Alias_maps alone is sufficient.
> Here is the configuration of ldap.cf
> server_host = <hostname>
> server_port = 389
> search_base = <base dn>
> scope = sub
> bind = yes
> bind_dn = <user dn>
> bind_pw = <pass>
> version = 3
> start_tls = no
> query_filter = (mail=%s)
> result_attribute = uid
> If all the above are OK for your case, what does "postmap -q ldapuseralias ldap:/etc/postfix/ldap.cf" output (where ldapuseralias is one of your ldap users)?
This is good advice for testing and you should follow it.
Just be sure to test the bare user name, like joe from my previous example.