From d14c6b5e529a8d63188b2a4d7e88ed3459e7ece6 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Mon, 12 Apr 2021 21:12:27 +0200 Subject: [PATCH] lib-smtp: smtp-reply - Add debug message for reply send error. This makes it a little clearer at what point the connection loss or error was noticed and for which command/reply. --- src/lib-smtp/smtp-server-reply.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib-smtp/smtp-server-reply.c b/src/lib-smtp/smtp-server-reply.c index ec97478253..5c68df0bf3 100644 --- a/src/lib-smtp/smtp-server-reply.c +++ b/src/lib-smtp/smtp-server-reply.c @@ -627,6 +627,8 @@ static int smtp_server_reply_send_real(struct smtp_server_reply *reply) } if (o_stream_send(output, str_data(textbuf), str_len(textbuf)) < 0) { + e_debug(reply->event, "Send failed: %s", + o_stream_get_disconnect_reason(output)); smtp_server_connection_handle_output_error(conn); return -1; } -- 2.47.3