Description: Send an extended "hello" to the SMTP server After establishing a TLS session, send an EHLO command, not a HELO one, and swallow the multiline server reply. Forwarded: yes Author: Peter Pentchev Last-Update: 2024-04-09 --- a/src/protocol.c +++ b/src/protocol.c @@ -769,10 +769,14 @@ char *line; if(c->opt->protocol_host) - ssl_printf(c, "HELO %s", c->opt->protocol_host); + ssl_printf(c, "EHLO %s", c->opt->protocol_host); else - ssl_putline(c, "HELO localhost"); + ssl_putline(c, "EHLO localhost"); line=ssl_getline(c); /* ignore the reply */ + while(is_prefix(line, "250-")) { + str_free(line); + line=ssl_getline(c); + } str_free(line); if(!strcasecmp(c->opt->protocol_authentication, "LOGIN")) smtp_client_login(c,