]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
properky close smtp in case of ehlo failure
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 10 Mar 2026 06:31:18 +0000 (07:31 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 10 Mar 2026 06:31:18 +0000 (07:31 +0100)
src/send_mail.c

index af16cf2054dc92e61a1a3d6b1cd0a534ddf225a2..87eafce4f802df94ede2269933290622dc9a5e6e 100644 (file)
@@ -149,10 +149,10 @@ initsmtp(int *sockfd, const char *relayhost, unsigned short port, const char *he
                }
 
                log_error(LOG_ARGS, "Error with HELO. Reply: "
-                               "[%s]", reply);
+                               "[%s]. Check smtphelo configuration.",
+                               reply);
                free(reply);
-               /* FIXME: quit and tell admin to configure
-                * correctly */
+               endsmtp(sockfd);
                retval = MLMMJ_HELO;
                break;