Re: [exim] exim auth as client

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jasen Betts
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] exim auth as client
On 2015-02-26, Frank Elsner <Frank.Elsner@???> wrote:
>
> Hi,
>
> I must use smtp authentocation with exim as a client.
>
> My /etc/exim/auth file contained the line
>
> mail.tu-berlin.de:^user^password


> but this doesn't work. I had to change it to
>
> 130.149.7.33:^user^password


> This is uncomfortable as IP may change :-(
>
> 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 this in the authenticator:

cram_md5:
driver = cram_md5
public_name = CRAM-MD5
client_name = ${extract{1}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}}
client_secret = ${extract{2}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}}

and a file like

example.com:username:password


Debian package name "exim4-config" if you want to look at the rest.
most archive magages should get you in. look at the files in
/etc/exim4/conf.d/

--
umop apisdn