mirror of
https://github.com/wiggin77/mailrelay.git
synced 2025-08-14 09:18:25 +02:00
switch to better supported go-guerilla lib
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user