On 26/11/15 20:04, Jacob Hansen wrote:
> remote_login:
> driver = plaintext
> public_name = LOGIN
> hide client_send =
> ${lookup{$authenticated_id}lsearch{/etc/differentlogin}{:
> different_username : different_passsword}{: remote_username :
> remote_password}
>
> However this gives me the following EXIM error when attempting to send
> e-mails:
>
> == to@??? R=remote_route T=remote_transport defer (-48):
> expansion of "${lookup{$authenticated_id}lsearch{/etc/differentlogin}{"
> failed in mandrill_login authenticator: missing } at end of string
It's splitting the list (on colons) *before* expanding
each element, where you're expecting the other way around.
As the manual says:
"The string is a colon-separated list of authentication data strings.
Each string is independently expanded before being sent to the server."
You could verify that by watching the auth process and expansions
using a commandline debug option.
You'll need to do an expansion per list-element.
Also, add any comments you have to
https://bugs.exim.org/show_bug.cgi?id=1606
--
Cheers,
Jeremy