Re: [Exim] Exim 4 and rewrite rules and LDAP

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: John Dalbec
Kopio: Exim Users Mailing List
Aihe: Re: [Exim] Exim 4 and rewrite rules and LDAP
On Mon, 19 Aug 2002, John Dalbec wrote:

> The convert4r4 script didn't change it in any way.


The script isn't as clever as it might be.

> Exim 4 now does string expansion on the left-hand side, so I had to add
> a layer of backslashes to it:
>
> *@^(mail0[1-4]\\.cc\\.|student\\.|mail\\.|)ysu\\.edu\$ "${lookup ldap\
>         {ldap:///ou=People,dc=ysu,dc=edu?mail?sub?(mail=$0)}\
>         {$0}{${lookup{$1}lsearch{/etc/passwd}\
>         {$0}{$1@rewrite-me}}}}"                                 Ffrs


> Then I found that Exim 4 was dropping the right parenthesis at the end
> of the LDAP lookup. Perhaps it sees it as part of the argument of $?


Hmm. That is odd. It shouldn't do that. I will take a closer look when I
get time, to see if there is a bug somewhere.

> It looks like I still need the "" around the right-hand side since it
> has a space in it.


Yes, you do.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.