Re: [Exim] widen_domains and same_domain_copy_routing

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Tony Finch
CC: exim-users
Subject: Re: [Exim] widen_domains and same_domain_copy_routing
On Wed, 21 May 2003, Tony Finch wrote:

> I've been wondering a bit about using same_domain_copy_routing to improve
> our list performance, but our dnslookup router uses widen_domains for
> hysterical raisins. The text in the spec is a little unclear: "However,
> this is only done if "headers_add" and "headers_remove" are unset,
> and the router does not 'widen' the domain." Does that apply per-address
> or to the router as a whole?


I guess I can read the code faster than you can.... :-)

read ... read ... read ...

Looks like per address. It works like this:

. The domain is remembered.

. The address is routed.

. If the router has same_domain_copy_routing set
  AND there are no headers to be added or removed for this address
  AND the domain was not modified (widened) by the router (by comparing
      with the old domain
  THEN search for any other addresses with the same domain and copy the
       routing


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