Re: [Exim] $host and CNAME

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Andreas Metzler
CC: exim-users
Betreff: Re: [Exim] $host and CNAME
On Wed, 21 Apr 2004, Andreas Metzler wrote:

> And the authenticators use:
> ${lookup{$host}lsearch*{CONFDIR/passwd.client}
> to get the authentication data form the file with format
> host:login:password
>
> This usually works well, but fails if DCsmarthost is no A record but
> a CNAME. - Then $host does not contain the original value (CNAME) but
> the A record it points to and the lookup fails because the user has
> entered the cname in passwd.client.


Exim doesn't (necessarily) know that it is a CNAME. All it knows is that
it gave one name to the DNS resolver, and it got back a different name
along with the IP address. This also occurs when, for example, a
single-component name is "widened" to a FQDN by the resolver.

> Is the cname availble in a regular exim expansion variable?


'fraid not.

However, reading the code, I cannot see why it should be changing the
name to the new one in the example you give. I will have to set up a
test to try to figure out exactly what is happening.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book