On Sun, 28 May 2006, Louis Kowolowski wrote:
> GET_ADDRESS_DATA = ${lookup ldap {\
> ldap:///BASEDN??sub?(&(uid=${quote_ldap:[EMAIL PROTECTED]:$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:[EMAIL PROTECTED]:$domain}))\
} }
Then arrange that the domain(s) you use in your mailRoutingAddresses are
routed to your Cyrus machine(s).
Tony.
--
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 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}}
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/