Thanks for answer.

But, can i configure ldap search to manage multivalue in entry?
I tried with:

server_host = ldap://x.x.x.x
server_port = 389
search_base = SenderHost=exampleSender,o=AllHost
scope = sub
query_filter = (&(domains=%d)(objectClass=provider))
result_attribute = domains
result_format = [127.0.0.1]:2501
expansion_limit = 1


But i have:
postfix/trivial-rewrite[12577]: warning: dict_ldap_get_values[1]:
/opt/postfix/etc/ldap/ldap_relaymaps.cf: Expansion limit exceeded for
key: 'pi...@example1.org'

If i delete example2.org and example3.org from ldap, it works correctly.

Bye

Wietse Venema wrote:
> Giovanni Mancuso:
>   
>> Hi guys,
>>
>> I'm trying to configure my postfix to use a different relayhost if the
>> sender of the email is in ldap.
>>     
>
> You must return a result that satisfies the documented syntax.
> http://www.postfix.org/postconf.html#relayhost
>
>       Wietse
>   

Reply via email to