if(addr->p.srs_sender)
s = string_append(s, &size, &ptr, 3, US" SRS=<", addr->p.srs_sender, US">");
#endif
+ #ifdef EXPERIMENTAL_DBL
+ dbl_delivery_ip = NULL; /* presume no successful remote delivery */
+ #endif
/* You might think that the return path must always be set for a successful
delivery; indeed, I did for some time, until this statement crashed. The case
addr->host_used->port));
if (continue_sequence > 1)
s = string_cat(s, &size, &ptr, US"*", 1);
+ #ifdef EXPERIMENTAL_DBL
+ dbl_delivery_ip = string_copy(addr->host_used->address);
+ dbl_delivery_port = addr->host_used->port;
+ dbl_delivery_fqdn = string_copy(addr->host_used->name);
+ dbl_delivery_local_part = string_copy(addr->local_part);
+ dbl_delivery_domain = string_copy(addr->domain);
+ dbl_delivery_confirmation = string_copy(addr->message);
+ #endif
}
-
#ifdef SUPPORT_TLS
if ((log_extra_selector & LX_tls_cipher) != 0 && addr->cipher != NULL)
s = string_append(s, &size, &ptr, 2, US" X=", addr->cipher);
s[ptr] = 0;
log_write(0, LOG_MAIN, "%s", s);
+ #ifdef EXPERIMENTAL_DBL
+ DEBUG(D_deliver)
+ {
+ debug_printf(" DBL(Delivery): dbl_delivery_query=|%s| dbl_delivery_IP=%s\n", dbl_delivery_query, dbl_delivery_ip);
+ }
+ if (dbl_delivery_ip != NULL && dbl_delivery_query != NULL)
+ expand_string(dbl_delivery_query);
+ #endif
store_reset(reset_point);
}