Re: [Exim] Problems with hosts_treat_as_local in exim 4.12

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Kai Risku
CC: 'exim-users@exim.org'
Subject: Re: [Exim] Problems with hosts_treat_as_local in exim 4.12
On Wed, 28 May 2003, Kai Risku wrote:

> It seems like hosts_treat_as_local is not able to reference
> named lists correctly,


I've finally got there. You were absolutely correct. Fortunately, the
fix is trivial - see patch below. Looks like is was just a stupid
oversight in the code, and there was no test (there is now).

Philip

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




*** exim-4.20/src/host.c    Mon May 12 14:39:19 2003
--- host.c    Fri Jun 20 14:54:12 2003
***************
*** 817,824 ****
      int rc;
      uschar *save = deliver_domain;
      deliver_domain = h->name;   /* set $domain */
!     rc = match_isinlist(string_copylc(h->name), &hosts_treat_as_local, 0, NULL,
!       NULL, MCL_DOMAIN, TRUE, NULL);
      deliver_domain = save;
      if (rc == OK) goto FOUND_LOCAL;
      }
--- 817,824 ----
      int rc;
      uschar *save = deliver_domain;
      deliver_domain = h->name;   /* set $domain */
!     rc = match_isinlist(string_copylc(h->name), &hosts_treat_as_local, 0,
!       &domainlist_anchor, NULL, MCL_DOMAIN, TRUE, NULL);
      deliver_domain = save;
      if (rc == OK) goto FOUND_LOCAL;
      }