From 095847db1d7bf1ff954babc2c1397c5acb340fb6 Mon Sep 17 00:00:00 2001 From: Nicolai Langfeldt Date: Thu, 24 Apr 2025 12:38:25 +0200 Subject: [PATCH] Re-HELO has no function for us --- client.go | 6 ------ go.mod | 2 -- 2 files changed, 8 deletions(-) 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