Re: [Exim] Mail auth to Remote Hosts

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Bill Milford
CC: exim-users
Onderwerp: Re: [Exim] Mail auth to Remote Hosts
On Fri, 12 Dec 2003, Bill Milford wrote:

> Is there a way to force $host to the name of the host specified in my
> manualroute router instead of having it looked up and then reverse
> dns'ed to get the host name?


I suspect that it isn't doing a reverse lookup; the original forward
lookup is changing the name, and Exim is updating its copy. This is done
so that DNS lookups of unqualified names (e.g. "myhost") become fully
qualified (i.e. turn into "myhost.mydomain.mytld") if the DNS server
behaves like this.

> When I try to select the proper auth in my client auth statement, I
> use $host as the key is a lsearch. $host has
> smtp-sbc-v1.mail.vip.sc5.yahoo.com in it instead of
> smtp.sbcglobal.yahoo.com and my lookup fails to get the correct
> username and password.


If all that matters is "yahoo.com" you could match using a regular
expression. Otherwise, you will have to do something hacky such as
preserve the host name in $address_data in the manualroute router, and
use that instead.

--
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