diff --git a/go.mod b/go.mod index 4c0331f1e..d95f9d9ac 100644 --- a/go.mod +++ b/go.mod @@ -44,7 +44,7 @@ require ( github.com/stretchr/testify v1.8.2 github.com/trustelem/zxcvbn v1.0.1 github.com/valyala/fasthttp v1.45.0 - github.com/wneessen/go-mail v0.3.8 + github.com/wneessen/go-mail v0.3.9 golang.org/x/net v0.8.0 golang.org/x/sync v0.1.0 golang.org/x/term v0.6.0 diff --git a/go.sum b/go.sum index 0ce4b1cc4..d32234490 100644 --- a/go.sum +++ b/go.sum @@ -509,6 +509,8 @@ github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUc github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= github.com/wneessen/go-mail v0.3.8 h1:ja5D/o/RVwrtRIYFlrO7GmtcjDNeMakGQuwQRZYv0JM= github.com/wneessen/go-mail v0.3.8/go.mod h1:m25lkU2GYQnlVr6tdwK533/UXxo57V0kLOjaFYmub0E= +github.com/wneessen/go-mail v0.3.9 h1:Q4DbCk3htT5DtDWKeMgNXCiHc4bBY/vv/XQPT6XDXzc= +github.com/wneessen/go-mail v0.3.9/go.mod h1:zxOlafWCP/r6FEhAaRgH4IC1vg2YXxO0Nar9u0IScZ8= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= diff --git a/internal/notification/smtp_auth.go b/internal/notification/smtp_auth.go index f8ea04e52..5901f9209 100644 --- a/internal/notification/smtp_auth.go +++ b/internal/notification/smtp_auth.go @@ -2,11 +2,10 @@ package notification import ( "fmt" - "net/smtp" "strings" "github.com/wneessen/go-mail" - "github.com/wneessen/go-mail/auth" + "github.com/wneessen/go-mail/smtp" "github.com/authelia/authelia/v4/internal/configuration/schema" "github.com/authelia/authelia/v4/internal/utils" @@ -46,7 +45,7 @@ func (a *OpportunisticSMTPAuth) Start(server *smtp.ServerInfo) (proto string, to case mail.SMTPAuthPlain: a.sa = smtp.PlainAuth("", a.username, a.password, a.host) case mail.SMTPAuthLogin: - a.sa = auth.LoginAuth(a.username, a.password, a.host) + a.sa = smtp.LoginAuth(a.username, a.password, a.host) case mail.SMTPAuthCramMD5: a.sa = smtp.CRAMMD5Auth(a.username, a.password) } @@ -61,7 +60,7 @@ func (a *OpportunisticSMTPAuth) Start(server *smtp.ServerInfo) (proto string, to case mail.SMTPAuthPlain: a.sa = smtp.PlainAuth("", a.username, a.password, a.host) case mail.SMTPAuthLogin: - a.sa = auth.LoginAuth(a.username, a.password, a.host) + a.sa = smtp.LoginAuth(a.username, a.password, a.host) case mail.SMTPAuthCramMD5: a.sa = smtp.CRAMMD5Auth(a.username, a.password) }