Re: [exim] exim auth as client

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-users
Subject: Re: [exim] exim auth as client
Jasen Betts <jasen@???> wrote:
> On 2015-02-26, Frank Elsner <Frank.Elsner@???> wrote:

[...]
>> How to force exim to do the lookup with the hostname (from router)?


> debian manages to use a file with host names for auth.


> by means of this in the transport


>   hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \
>       {\
>       ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\

[...]
> and a file like


> example.com:username:password


However it is less than perfect. $host is the canonical
hostname of the computer we are connected to which is not necessarily the
name we gave exim to use as smarthost:

ametzler@argenau:~$ host smtp.gmail.com
smtp.gmail.com is an alias for gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com has address 173.194.65.108
gmail-smtp-msa.l.google.com has address 173.194.65.109
gmail-smtp-msa.l.google.com has IPv6 address 2a00:1450:4013:c01::6c

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'