X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fverify.c;h=b74d6ab5e6b40049ba8715688eff40bb4004a882;hb=093632c96953bfc8fb96d607e0605534efa64252;hp=dba09164ed3f40ccc16d107d69c7925778bb4e01;hpb=774ef2d7d0f7fffbfd114271b8567e36485898dc;p=exim.git diff --git a/src/src/verify.c b/src/src/verify.c index dba09164e..b74d6ab5e 100644 --- a/src/src/verify.c +++ b/src/src/verify.c @@ -468,6 +468,7 @@ else deliver_host_address = host->address; deliver_host_port = host->port; deliver_domain = addr->domain; + transport_name = addr->transport->name; if (!smtp_get_interface(tf->interface, host_af, addr, NULL, &interface, US"callout") || @@ -548,6 +549,7 @@ else { addr->message = string_sprintf("could not connect to %s [%s]: %s", host->name, host->address, strerror(errno)); + transport_name = NULL; deliver_host = deliver_host_address = NULL; deliver_domain = save_deliver_domain; continue; @@ -582,12 +584,16 @@ else goto RESPONSE_FAILED; #ifdef EXPERIMENTAL_EVENT + lookup_dnssec_authenticated = host->dnssec==DS_YES ? US"yes" + : host->dnssec==DS_NO ? US"no" : NULL; if (event_raise(addr->transport->event_action, - US"smtp:connect", responsebuffer) == DEFER) + US"smtp:connect", responsebuffer)) { + lookup_dnssec_authenticated = NULL; /* Logging? Debug? */ goto RESPONSE_FAILED; } + lookup_dnssec_authenticated = NULL; #endif } @@ -879,9 +885,7 @@ else /* If accepted, we aren't going to do any further tests below. */ if (random_ok) - { new_domain_record.random_result = ccache_accept; - } /* Otherwise, cache a real negative response, and get back to the right state to send RCPT. Unless there's some problem such as a dropped @@ -1852,8 +1856,10 @@ while (addr_new != NULL) #ifdef SUPPORT_TLS deliver_set_expansions(addr); #endif + verify_mode = is_recipient ? US"R" : US"S"; rc = do_callout(addr, host_list, &tf, callout, callout_overall, callout_connect, options, se_mailfrom, pm_mailfrom); + verify_mode = NULL; } } else