-----Original Message-----
From: Priscilla V [mailto:prisci...@bheltry.co.in] 
Sent: Wednesday, March 28, 2012 2:40 PM
To: 'Nikolaos Milas'; 'postfix-users@postfix.org'
Subject: RE: Postfix delivery to openldap users
We have configured to consider ldap users also in /etc/nsswitch.conf.

: 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

Regards
Priscilla

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Nikolaos Milas
Sent: Wednesday, March 28, 2012 2:05 PM
To: postfix-users@postfix.org
Subject: Re: Postfix delivery to openldap users

On 28/3/2012 11:07 πμ, Priscilla V wrote:

> We have not configured any virtual domains.

If you only use alias_maps, then you simply define a mapping between
("virtual") ldap users and *local* users; alias_maps defines "the alias 
databases that are used for *local* delivery". Your local users must already 
exist. In essence, your ldap users are simply aliases.

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)?

Also, you may want to post the content of ldap:/etc/postfix/ldap.cf.

Have you read: http://www.postfix.org/VIRTUAL_README.html ?

Nick

Reply via email to