Skip to content

Commit

Permalink
Use same smtp reply messages as Postfix:
Browse files Browse the repository at this point in the history
- `Speak up` -> `Error: bad syntax`
- `Goodnight and good luck` -> `Bye`
  • Loading branch information
iredmail authored and emersion committed Dec 22, 2020
1 parent 46a2f74 commit dd78f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit dd78f54

Please sign in to comment.