Re: [Exim] fallback_hosts - not falling back?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Chris
CC: exim-users
Tárgy: Re: [Exim] fallback_hosts - not falling back?
On Sat, 8 Sep 2001, Chris wrote:

> Yet it appears there are some circumstances whereby the fallback role isn't
> called.


I have tracked this down, and you are right. There is a bug. The
circumstances are:

1. The address is routed using the lookuphost router, but there are no
MX records for the domain - it is routed using A records.

AND

2. The fallback hosts are specified on the smtp transport, not on the
router.

There is a (pretty trivial) patch below against Exim 3.33 that fixes
this. Unfortunately, it won't work against 3.32 (which you are using)
because other things have changed in the same module. However, if you
make the same change by hand it will work.

Alternatively, a workaround is to move your fallback_hosts setting from
the transport to the router.

Philip

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



*** exim-3.33/src/host.c    Wed Aug 15 12:09:09 2001
--- host.c    Wed Sep 12 11:35:51 2001
***************
*** 1464,1470 ****
      if (rc == HOST_FOUND)
        {
        while (last->next != next) last = last->next;
!       rc = host_scan_for_local_hosts(host, last, NULL);
        }
      else
        if (rc == HOST_IGNORED) rc = HOST_FIND_FAILED;  /* No special action */
--- 1464,1470 ----
      if (rc == HOST_FOUND)
        {
        while (last->next != next) last = last->next;
!       rc = host_scan_for_local_hosts(host, last, removed);
        }
      else
        if (rc == HOST_IGNORED) rc = HOST_FIND_FAILED;  /* No special action */