diff --git a/client.go b/client.go index 3605e6d..e10adf9 100644 --- a/client.go +++ b/client.go @@ -102,12 +102,6 @@ func handshake(client *smtp.Client, config *relayConfig, tlsConfig *tls.Config) if err := client.StartTLS(tlsConfig); err != nil { return errors.Wrap(err, "starttls error") } - // Re-HELO after STARTTLS - if config.HeloHost != "" { - if err := client.Hello(config.HeloHost); err != nil { - return errors.Wrap(err, "HELO error") - } - } } diff --git a/go.mod b/go.mod index 90a07cd..e3f207f 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,5 @@ replace github.com/wiggin77/mailrelay => github.com/niclan/mailrelay module github.com/niclan/mailrelay -// module github.com/wiggin77/mailrelay - go 1.14