From f4f0806e4010e74b2734e61bc6267ea6e2b0ad9b Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 8 Aug 2017 20:27:19 +0200 Subject: [PATCH] src: fix smtp response code for helo command Signed-off-by: Janos SUTO --- src/smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smtp.c b/src/smtp.c index 5d679691..062f1ce9 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -152,7 +152,7 @@ void send_smtp_response(struct smtp_session *session, char *buf){ void process_command_helo(struct smtp_session *session, char *buf, int buflen){ if(session->protocol_state == SMTP_STATE_INIT) session->protocol_state = SMTP_STATE_HELO; - snprintf(buf, buflen-1, "220 %s ESMTP\r\n", session->cfg->hostid); + snprintf(buf, buflen-1, "250 %s\r\n", session->cfg->hostid); send_smtp_response(session, buf); }