PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > result_format expansion problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
result_format expansion problem

Réponse
 
LinkBack Outils de la discussion
Vieux 27/03/2006, 16h16   #1
dsw4@lucent.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut result_format expansion problem

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?

  Réponse avec citation
Vieux 27/03/2006, 16h34   #2
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: result_format expansion problem


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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h46.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08304 seconds with 10 queries