Re: [exim] Question regarding unseen

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Stian Jordet
CC: exim-users
Sujet: Re: [exim] Question regarding unseen
On Mon, 5 Sep 2005, Stian Jordet wrote:
>
> I've tried this. First, I would prefer not to have the redirect router,
> because if my email liste@??? resolves to the two users test1 and
> test2. test1 is on the local box, and test2 is on another host. I can't
> be sure that the other box accepts mail for test2@anotherbox, even
> though it accepts liste@???. If you understand what I mean?


Even if any child addresses are local, Exim does not continue verification
if an address has more than one child. What would be the right response if
one is valid and the other not?

For the single child case, we use call-forward verification on our MXs to
handle verification of departmental email addresses that aren't handled
locally.

> Second, I can't get it to work. If I use this:
>
>   address_data = ${lookup ldapm {ldaps://buick.jordet.net/\
>     ou=People,dc=jordet?uid,mailHost?sub?\
>     (&(objectClass=inetLocalMailRecipient)\
>     (mailLocalAddress=${quote_ldap:$local_part@$domain}))}}
>   data = ${extract{uid}{$address_data}}@${extract{mailHost}{$address_data}}

>
> I only get one user... I guess that's just me being silly, so I'd
> appreciate some help.


That's because ${extract will only extract one value from the string
returned by ${lookup ldapm. The answer is probably to use ${sg, e.g.
${sg {$address_data} {\s*uid="([^"]*)"\s*mailHost="([^"]*)"\s*} {$1@$2} }

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}}