Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReadTimeout default 2 secs ReadTimeout = _timeout * time.Second // WriteTimeout default 2 secs WriteTimeout = _timeout * time.Second // MaxMessageBytes default 10 Mb MaxMessageBytes = 10 * _mb // MaxRecipients default 50 MaxRecipients = 50 // AllowInsecureAuth default true AllowInsecureAuth = true // EnableSMTPUTF8 default true EnableSMTPUTF8 = true )
View Source
var ErrorAuthCredentials = errors.New("invalid username or password")
ErrorAuthCredentials error for invalid authentication
Functions ¶
This section is empty.
Types ¶
type AuthFunc ¶
AuthFunc authentitate function type
func NewHardcodedAuthFunc ¶
NewHardcodedAuthFunc hardcoded credentials auth function
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
An Option configures a server.
func WithAnnonAuthAllowed ¶
WithAnnonAuthAllowed whether to allow anon login or not, added for perf tests
func WithUpstreamServers ¶
WithUpstreamServers sets the upstream server handler
type SMTPServer ¶
SMTPServer abstration
type SrvBackend ¶
type SrvBackend struct {
// contains filtered or unexported fields
}
func (*SrvBackend) ListenAndServe ¶
func (srv *SrvBackend) ListenAndServe() error
func (*SrvBackend) Shutdown ¶
func (srv *SrvBackend) Shutdown() error
func (*SrvBackend) WithOptions ¶
func (srv *SrvBackend) WithOptions(opts ...Option) *SrvBackend
Click to show internal directories.
Click to hide internal directories.