summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2005-09-14 09:40:55 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2005-09-14 09:40:55 +0000
commitde3a88fb84d10cefa219ffa33effdf2af43015e4 (patch)
treee16ca2434f0bc333bde5faef35eb9f4b7cd2ab55 /src
parente5d5a95f33d73ec3c552c08f29089861335caad5 (diff)
Update one test to avoid prodding the live Exim for a callout (can now
do with port in manualroute). Added comment in the code.
Diffstat (limited to 'src')
-rw-r--r--src/src/verify.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/src/verify.c b/src/src/verify.c
index 2614a23e0..010ea84f1 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/verify.c,v 1.26 2005/09/06 13:17:36 ph10 Exp $ */
+/* $Cambridge: exim/src/src/verify.c,v 1.27 2005/09/14 09:40:55 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -410,18 +410,22 @@ for (host = host_list; host != NULL && !done; host = host->next)
host_af = (Ustrchr(host->address, ':') == NULL)? AF_INET:AF_INET6;
- /* Expand and interpret the interface and port strings. This has to
- be delayed till now, because they may expand differently for different
- hosts. If there's a failure, log it, but carry on with the defaults. */
+ /* Expand and interpret the interface and port strings. The latter will not
+ be used if there is a host-specific port (e.g. from a manualroute router).
+ This has to be delayed till now, because they may expand differently for
+ different hosts. If there's a failure, log it, but carry on with the
+ defaults. */
deliver_host = host->name;
deliver_host_address = host->address;
deliver_domain = addr->domain;
+
if (!smtp_get_interface(tf->interface, host_af, addr, NULL, &interface,
US"callout") ||
!smtp_get_port(tf->port, addr, &port, US"callout"))
log_write(0, LOG_MAIN|LOG_PANIC, "<%s>: %s", addr->address,
addr->message);
+
deliver_host = deliver_host_address = NULL;
deliver_domain = save_deliver_domain;