From 7659c6009ab4d66ded0c06f6366ed1832e193cff Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Tue, 22 Dec 2020 22:38:40 +0800 Subject: [PATCH] Use same smtp reply messages as Postfix: - `Speak up` -> `Error: bad syntax` - `Goodnight and good luck` -> `Bye` --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index 8ecd273..b847057 100644 --- a/conn.go +++ b/conn.go @@ -103,7 +103,7 @@ func (c *Conn) handle(cmd string, arg string) { }() if cmd == "" { - c.protocolError(500, EnhancedCode{5, 5, 2}, "Speak up") + c.protocolError(500, EnhancedCode{5, 5, 2}, "Error: bad syntax") return } @@ -140,7 +140,7 @@ func (c *Conn) handle(cmd string, arg string) { case "DATA": c.handleData(arg) case "QUIT": - c.WriteResponse(221, EnhancedCode{2, 0, 0}, "Goodnight and good luck") + c.WriteResponse(221, EnhancedCode{2, 0, 0}, "Bye") c.Close() case "AUTH": if c.server.AuthDisabled {