|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all. I have Postfix configured to do an LDAP lookup for recipient
addresses. I have an LDAP configuration file in /etc/postfix which the following contents: server_host = localhost server_port = 53890 timeout = 5 search_base = TN=%u,kind=subscriber query_filter = (objectclass=*) result_format = %U@%s.alpha.aplabs.com result_attribute = Server scope = base bind = yes bind_dn = cn=_OSL_,kind=applications bind_pw = xxxxxxx version = 3 The result attribute value is the recipient's homed host. I noticed that somehow Postfix is duplicating the value of the "Server" attribute when it constructs the result_format. For example, the result_format is constructed as follows: 16143675...@host1.host1.host1.host1.host1@alpha.ap labs.com Have any idea what is causing this? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
It would appear that your search is matching on multiple LDAP records, and returning the value of the "Server" attribute several times. Your query filter is: query_filter = (objectclass=*) Thay query will probably match all records. You might want to narrow the search down to the recipient address, perhaps with something like: query_filter = (mail=%s) -- Greg dsw4@lucent.com wrote: > Hi all. I have Postfix configured to do an LDAP lookup for recipient > addresses. I have an LDAP configuration file in /etc/postfix which the > > > following contents: > > > server_host = localhost > server_port = 53890 > timeout = 5 > search_base = TN=%u,kind=subscriber > query_filter = (objectclass=*) > result_format = %U@%s.alpha.aplabs.com > result_attribute = Server > scope = base > bind = yes > bind_dn = cn=_OSL_,kind=applications > bind_pw = xxxxxxx > version = 3 > > > The result attribute value is the recipient's homed host. I noticed > that somehow Postfix is duplicating the value of the "Server" attribute > > > > when it constructs the result_format. For example, the result_format > is constructed as follows: > > > 16143675...@host1.host1.host1.host1.host1@alpha.ap labs.com > > > Have any idea what is causing this? > |
|
![]() |
| Outils de la discussion | |
|
|