Re: [exim] How to relay to more than one authenticated serve…

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] How to relay to more than one authenticated server?
On Wednesday 13 September 2006 17:46, Adam Funk took the opportunity to say:
> I'd like to set up routers in exim.conf for relaying with TLS
> authentication to two servers (which of course expect different
> userids and passwords) for two different domain lists.  From looking
> at my existing config and [1] I think I want something like this:
> [...]
> login:
>    driver       =  plaintext
>    public_name  =  LOGIN
>    client_send  =  ${if{AND_THIS_IS_WHERE_I'M_STUCK}}

>
>
> Can anyone tell me what to put in that "if" to detect which router is
> in use? Or do I have to extract the recipient domain and compare it
> to the domain lists?


As section 33.5 says, you can use $host and $host_address as selectors. But
you have to use two expansions, like this (untested):

 login:
    driver       =  plaintext
    public_name  =  LOGIN
    client_send  =  : ${if eq{$host}{foo.example.com}{FOO_ID}{BAR_ID}} : ${if 
${if eq{$host}{foo.example.com}{FOO_PWD}{BAR_PWD}}


or some lookup.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)