From bfdf324ca6043be03a948eb17b9e691769c06648 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 4 Jan 2025 20:45:09 +0800 Subject: Implement NOOP --- mta_recv.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mta_recv.go b/mta_recv.go index c77c46d..1d2c4f3 100644 --- a/mta_recv.go +++ b/mta_recv.go @@ -141,6 +141,9 @@ func handle_incoming_server_connection(reader *bufio.Reader, writer *bufio.Write _, _ = writer.WriteString("221 2.0.0 Bye\r\n") _ = writer.Flush() return nil + case "NOOP": + _, _ = writer.WriteString("250 2.0.0 Ok\r\n") + _ = writer.Flush() case "RSET": if server_state != server_state_begin { server_state = server_state_helo -- cgit v1.2.3