]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mailers: negotiate SMTP, not ESMTP
authorLukas Tribus <lukas@ltri.eu>
Thu, 17 Feb 2022 14:40:51 +0000 (15:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Feb 2022 14:45:59 +0000 (15:45 +0100)
As per issue #1552 the mailer code currently breaks on ESMTP multiline
responses. Let's negotiate SMTP instead.

Should be backported to 2.0.

src/mailers.c

index 3d01d7532e9907093a13f0f52b623d0b5e4522a6..34eaa5bb640191df16a9758a055c93ac1a604ec4 100644 (file)
@@ -195,7 +195,7 @@ static int enqueue_one_email_alert(struct proxy *p, struct server *s,
                goto error;
 
        {
-               const char * const strs[4] = { "EHLO ", p->email_alert.myhostname, "\r\n" };
+               const char * const strs[4] = { "HELO ", p->email_alert.myhostname, "\r\n" };
                if (!add_tcpcheck_send_strs(&alert->rules, strs))
                        goto error;
        }