Gitweb:
http://git.exim.org/exim.git/commitdiff/805c9d531fcf74099459cc57e520a59b472e0de5
Commit: 805c9d531fcf74099459cc57e520a59b472e0de5
Parent: b30275b8a70b539c195a3a12580f29ebdcc12d99
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Oct 30 18:52:45 2014 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Oct 30 18:52:45 2014 +0000
Fix dnssec indication variable when used from smtp:commect event
---
src/src/host.c | 5 +++--
src/src/route.c | 2 +-
src/src/transports/smtp.c | 5 ++++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/src/host.c b/src/src/host.c
index 2eef0ba..7737704 100644
--- a/src/src/host.c
+++ b/src/src/host.c
@@ -3068,8 +3068,9 @@ DEBUG(D_host_lookup)
yield);
for (h = host; h != last->next; h = h->next)
{
- debug_printf(" %s %s MX=%d ", h->name,
- (h->address == NULL)? US"<null>" : h->address, h->mx);
+ debug_printf(" %s %s MX=%d %s", h->name,
+ !h->address ? US"<null>" : h->address, h->mx,
+ h->dnssec == DS_YES ? US"DNSSEC " : US"");
if (h->port != PORT_NONE) debug_printf("port=%d ", h->port);
if (h->status >= hstatus_unusable) debug_printf("*");
debug_printf("\n");
diff --git a/src/src/route.c b/src/src/route.c
index 6ba1d9f..3834b83 100644
--- a/src/src/route.c
+++ b/src/src/route.c
@@ -1969,7 +1969,7 @@ DEBUG(D_route)
if (h->mx >= 0) debug_printf(" MX=%d", h->mx);
else if (h->mx != MX_NONE) debug_printf(" rgroup=%d", h->mx);
if (h->port != PORT_NONE) debug_printf(" port=%d", h->port);
- /* if (h->dnssec != DS_UNK) debug_printf(" dnssec=%s", h->dnssec==DS_YES ? "yes" : "no"); */
+ if (h->dnssec != DS_UNK) debug_printf(" dnssec=%s", h->dnssec==DS_YES ? "yes" : "no");
debug_printf("\n");
}
}
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index c572306..12ae6e1 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -1415,7 +1415,10 @@ if (continue_hostname == NULL)
#ifdef EXPERIMENTAL_EVENT
{
- uschar * s = event_raise(tblock->event_action, US"smtp:connect", buffer);
+ uschar * s;
+ lookup_dnssec_authenticated = host->dnssec==DS_YES ? US"yes"
+ : host->dnssec==DS_NO ? US"no" : NULL;
+ s = event_raise(tblock->event_action, US"smtp:connect", buffer);
if (s)
{
set_errno(addrlist, 0,