Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const CRAMMD5Authentication + const LoginAuthentication + const PlainAuthentication + var Authenticators = []string + var ErrUnsupportedLoginType = errors.New("Login source is unknown") + func Authenticate(a smtp.Auth, source *Source) error + type Source struct + AllowedDomains string + Auth string + DisableHelo bool + ForceSMTPS bool + HeloHostname string + Host string + Port int + SkipLocalTwoFA bool + SkipVerify bool + func (source *Source) Authenticate(user *user_model.User, userName, password string) (*user_model.User, error) + func (source *Source) FromDB(bs []byte) error + func (source *Source) HasTLS() bool + func (source *Source) IsSkipLocalTwoFA() bool + func (source *Source) IsSkipVerify() bool + func (source *Source) SetAuthSource(authSource *auth.Source) + func (source *Source) ToDB() ([]byte, error) + func (source *Source) UseTLS() bool