From 31ac12754bf39bdcca90108e3b7274b41b88434e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 26 Mar 2024 08:44:54 +0100 Subject: [PATCH] sendmail: also log the RCPT when receiving a SMTP failure This helps debugging --- src/send_mail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/send_mail.c b/src/send_mail.c index 017ebfe8..ef0af12b 100644 --- a/src/send_mail.c +++ b/src/send_mail.c @@ -297,8 +297,8 @@ send_mail(int sockfd, struct mail *mail, int listfd, int ctrlfd, bool bounce) free(reply); return do_bouncemail(listfd, ctrlfd, mail->from); } else { - log_error(LOG_ARGS, "Error in RCPT TO. Reply = [%s]", - reply); + log_error(LOG_ARGS, "Error in RCPT TO. RCPT = [%s]," + " Reply = [%s]", mail->from, reply); free(reply); return MLMMJ_RCPTTO; } -- 2.47.3