Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBanned returned to banned hosts ErrBanned = &smtp.SMTPError{ Code: 554, EnhancedCode: smtp.EnhancedCode{5, 5, 4}, Message: "please, don't bother me anymore, kupo.", } // ErrNoUser returned when no such mailbox found ErrNoUser = &smtp.SMTPError{ Code: 550, EnhancedCode: smtp.EnhancedCode{5, 5, 0}, Message: "no such user here, kupo.", } )
Functions ¶
This section is empty.
Types ¶
type Listener ¶ added in v0.9.9
type Listener struct {
// contains filtered or unexported fields
}
Listener that rejects connections from banned hosts
func NewListener ¶ added in v0.9.9
func (*Listener) Accept ¶ added in v0.9.9
Accept waits for and returns the next connection to the listener.
type Manager ¶ added in v0.9.9
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.9.9
NewManager creates new SMTP server manager
Click to show internal directories.
Click to hide internal directories.