Explorar o código

feat(mailer): set localname to hostname

Some email providers does not accept localhost
in the HELO message. So we set it to hostname
instead. Our hope is that should be enough for
those providers who does not accept localhost.

closes #7223
bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
4ea4e0436a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/services/notifications/mailer.go

+ 1 - 0
pkg/services/notifications/mailer.go

@@ -101,6 +101,7 @@ func createDialer() (*gomail.Dialer, error) {
 
 	d := gomail.NewDialer(host, iPort, setting.Smtp.User, setting.Smtp.Password)
 	d.TLSConfig = tlsconfig
+	d.LocalName = setting.InstanceName
 	return d, nil
 }