BUG/MINOR: mailers: negotiate SMTP, not ESMTP

As per issue #1552 the mailer code currently breaks on ESMTP multiline
responses. Let's negotiate SMTP instead.

Should be backported to 2.0.
This commit is contained in:
Lukas Tribus 2022-02-17 15:40:51 +01:00 committed by Willy Tarreau
parent 5085bc3103
commit 1a16e4ebcb

View 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;
}