Browse Source

bug fix: the EHLO response wasn't formatted properly

flashmob 9 years ago
parent
commit
d07de726e4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      server/smtpd.go

+ 4 - 4
server/smtpd.go

@@ -99,10 +99,10 @@ func (server *SmtpdServer) handleClient(client *guerrilla.Client, backend guerri
 					client.Helo = input[5:]
 					client.Helo = input[5:]
 				}
 				}
 				responseAdd(client, fmt.Sprintf(
 				responseAdd(client, fmt.Sprintf(
-					`250-%s Hello %s[%s]\r
-250-SIZE %d\r
-250-PIPELINING \r
-%s250 HELP`,
+					"250-%s Hello %s[%s]\r\n"+
+					"250-SIZE %d\r\n" +
+					"250-PIPELINING\r\n" +
+					"%s250 HELP",
 					server.config.Hostname, client.Helo, client.Address,
 					server.config.Hostname, client.Helo, client.Address,
 					server.config.MaxSize, advertiseTLS))
 					server.config.MaxSize, advertiseTLS))
 			case strings.Index(cmd, "HELP") == 0:
 			case strings.Index(cmd, "HELP") == 0: