[Exim] ipliteral router ignores ignore_target_hosts

Top Page
Delete this message
Reply to this message
Author: Matthew Byng-Maddick
Date:  
To: exim-users
Subject: [Exim] ipliteral router ignores ignore_target_hosts
The ipliteral router doesn't do anything with the generic ignore_target_hosts
option, but given that it is handling IP, this would seem like a bug. The fix
is about 10 lines, and is shown below.

--------8<--------
--- src/routers/ipliteral.c.orig    Sat Apr 17 18:57:30 2004
+++ src/routers/ipliteral.c    Sat Apr 17 19:31:28 2004
@@ -122,6 +122,15 @@
   return DECLINE;
   }


+if(verify_check_this_host(&(rblock->ignore_target_hosts), NULL, NULL, domain+1, NULL)==OK)
+  {
+  DEBUG(D_route)
+      debug_printf("%s in ignore_target_hosts, skipping\n", domain+1);
+  addr->message = US"Unrouteable or bad host";
+  domain[len-1] = ']';
+  return DECLINE;
+  }
+
 /* Set up a host item */


h = store_get(sizeof(host_item));
-------->8--------

Cheers

MBM

--
Matthew Byng-Maddick          <mbm@???>           http://colondot.net/
                      (Please use this address to reply)