go-smtp icon indicating copy to clipboard operation
go-smtp copied to clipboard

server: Impossible to disable PLAIN auth

Open kayrus opened this issue 4 years ago • 1 comments

PLAIN auth is enabled by default and it is not possible to disable it:

https://github.com/emersion/go-smtp/blob/30169acc42e795e5d35ce901c8387950b103dfd9/server.go#L86-L87

it also doesn't look correct that Session interface now requires the AuthPlain method (#146). Why doesn't it require other auth methods? Why don't rely on sasl auth methods defined explicitly?

kayrus avatar Nov 29 '21 12:11 kayrus

go-imap v2's design: https://pkg.go.dev/github.com/emersion/go-imap/v2/imapserver#SessionSASL

emersion avatar Nov 09 '23 10:11 emersion

https://github.com/emersion/go-smtp/pull/254 fixes this.

emersion avatar Mar 21 '24 15:03 emersion