On Sun, 28 May 2006, Louis Kowolowski wrote:
> GET_ADDRESS_DATA = ${lookup ldap {\
> ldap:///BASEDN??sub?(&(uid=${quote_ldap:$local_part}@${quote_ldap:$domain}))\
> }\
> }
>
> Can I make a similar call (say remove the portion after $local_part) and
> assign it to local_part in a router for Cyrus delivery?
Yes, you can do pretty much anything. I'm not sure exactly what you are
asking for though. If you are trying to implement the Sendmail
ldap_routing system, then what you want is a redirect router where the
data comes from an ldap lookup. This lookup matches the current address
against the mailLocalAddress attribute and returns the mailRoutingAddress
attribute. Something like
data = ${lookup ldap {\
ldap:///BASEDN?mailRoutingAddress?sub?\
(&(mailLocalAddress=${quote_ldap:$local_part}@${quote_ldap:$domain}))\
} }
Then arrange that the domain(s) you use in your mailRoutingAddresses are
routed to your Cyrus machine(s).
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}