From: Baptiste Daroussin Date: Tue, 26 Mar 2024 07:44:54 +0000 (+0100) Subject: sendmail: also log the RCPT when receiving a SMTP failure X-Git-Tag: RELEASE_1_4_5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ac12754bf39bdcca90108e3b7274b41b88434e;p=thirdparty%2Fmlmmj.git sendmail: also log the RCPT when receiving a SMTP failure This helps debugging --- 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; }