]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
sendmail: also log the RCPT when receiving a SMTP failure
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 26 Mar 2024 07:44:54 +0000 (08:44 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 26 Mar 2024 07:44:54 +0000 (08:44 +0100)
This helps debugging

src/send_mail.c

index 017ebfe8b9a8595470999771e997989c86ba0c23..ef0af12b71f3df03cae17b5f5b3a4fd023da9f70 100644 (file)
@@ -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;
                }