switch to better supported go-guerilla lib

This commit is contained in:
wiggin77
2025-05-24 22:59:23 -04:00
parent 7dfc360320
commit 5bbf1b4d4a
11 changed files with 154 additions and 125 deletions

View File

@ -10,7 +10,7 @@ import (
"net/textproto"
"strconv"
"github.com/flashmob/go-guerrilla/mail"
"github.com/phires/go-guerrilla/mail"
"github.com/pkg/errors"
)
@ -41,6 +41,9 @@ func sendMail(e *mail.Envelope, config *relayConfig) error {
}
tlsconfig := &tls.Config{
// InsecureSkipVerify is configurable to support legacy SMTP servers with
// self-signed certificates or hostname mismatches. This should only be
// enabled in trusted network environments.
InsecureSkipVerify: config.SkipVerify, //nolint:gosec
ServerName: config.Server,
}