Re: [EXIM] Using embedded Perl and LDAP for address resoluti…

Pàgina inicial
Delete this message
Reply to this message
Autor: Steve Haslam
Data:  
A: exim-users
Assumpte: Re: [EXIM] Using embedded Perl and LDAP for address resolution
On Tue, Jun 22, 1999 at 07:42:41PM -0500, Paul Makepeace wrote:

> localuser:
> driver = smartuser
> transport = ${perl{ldap_who} {${lookup ldapm {LDAP_URL(ALIAS_MATCH)}{$value}
> {${lookup ldapm {LDAP_URL(SN_MATCH)}{$value} {${lookup ldapm {LDAP_URL(CN_MAT
> CH)}{$value}{DUNNO}}}}}}}}
>
> Here ldap_who performs the transport decision and records the results
> for later: There is some legacy code in here, please ignore.
>
> # remote_smtp is wrong! How do I do this to deliver to an address
> # returned in $address (modulo some parsing)?


Use an aliasfile director? so if it returns "foo,bar,quux" it will deliver
to those local users (qulifying with qualify_domain etc..)

> using the unknownuser_pipe. I don't see how to perform this 'redirect
> to new_address or return to user with an error message'. ${if ${perl{}}
> {new_address=...}{transport=...}} but this isn't possible. Can I use
> this basic approach I have above? Or do I need to look at another way?
> System filters?


An aliasfile director can return ":fail: This is a reason" iirc.

HTH

SRH
-- 
Steve Haslam, Validation Engineer, ARM Ltd, Cambridge UK     +44-1223-400677
steve.haslam@???       steve@???        araqnid@???
we see a deadly sin in every home, on every street corner.
and we tolerate it because it's commonplace. it's trivial.


--
*** Exim information can be found at http://www.exim.org/ ***