> Wietse Venema wrote: > > Giovanni Mancuso: > > > >> 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
On Thu, Dec 03, 2009 at 01:57:07AM +0100, Giovanni Mancuso wrote: > Thanks for answer. > > But, can i configure ldap search to manage multivalue in entry? LDAP_README might help with specifics. I can't, I don't speak much LDAP. > 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' postmap(1) has a -q option which is just what you need for testing. When "postmap -q loo...@address ldap:/your/query/file" returns a result suitable for relayhost (see postconf(5) link above), you will know your query is right. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header