Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ViewMailQueue ¶
func ViewMailQueue() map[time.Time]*MailQueueItem
ViewMailQueue returns the current mail queue
Types ¶
type AuthenticationBackend ¶
type AuthenticationBackend struct {
Authenticate func(initial string, conn *textproto.Conn) (CheckAddress, error)
SupportedMechanisms []string
}
AuthenticationBackend is a struct that represents an authentication backend
type CheckAddress ¶ added in v1.1.0
type DatabaseBackend ¶
DatabaseBackend is a struct that represents a database backend
type MailQueueItem ¶
MailQueueItem is a struct that represents an item in the mail queue
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver is a struct that represents an SMTP receiver
func NewReceiver ¶
func NewReceiver(conn net.Listener, hostname string, ownedDomains []string, enforceTLS bool, database DatabaseBackend, authentication AuthenticationBackend, tlsConfig *tls.Config) *Receiver
NewReceiver creates a new Receiver
type SenderArgs ¶
type SenderArgs struct {
EnforceTLS bool
}
SenderArgs is a struct that represents the arguments for the Sender
Click to show internal directories.
Click to hide internal directories.