X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/48519cef815997302bbb0f8c4499ecf4ae9ef446..2d56d63414b2a58f298b72666f1f7d344e846efb:/src/src/transports/smtp.c diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index 128ac9a35..6ce4c9ded 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -2901,7 +2901,8 @@ FAILED: || errno == ERRNO_UTF8_FWD #endif ? FAIL : DEFER, - pass_message, sx->conn_args.host + pass_message, + errno == ECONNREFUSED ? NULL : sx->conn_args.host #ifdef EXPERIMENTAL_DSN_INFO , sx->smtp_greeting, sx->helo_response #endif