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        [EMAIL PROTECTED]
                       (No Cc of list mail needed, thanks)

Attachment: pgppnPSgz8CFL.pgp
Description: PGP signature

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to