From ca8725c98f1c5a49f93efa09c6d7d7bfce135c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A8=D0=B8=D0=BF=D0=B8=D1=86=D1=8B=D0=BD=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9?= Date: Thu, 18 Feb 2021 15:24:39 +0500 Subject: [PATCH] Add SIZE extension when MaxMessageBytes not set --- conn.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conn.go b/conn.go index b847057..cc52488 100644 --- a/conn.go +++ b/conn.go @@ -275,6 +275,8 @@ func (c *Conn) handleGreet(enhanced bool, arg string) { } if c.server.MaxMessageBytes > 0 { caps = append(caps, fmt.Sprintf("SIZE %v", c.server.MaxMessageBytes)) + } else { + caps = append(caps, "SIZE") } args := []string{"Hello " + domain}