package
0.0.0-20231101113329-0f5e0dabba98
Repository: https://github.com/mistralmail/smtp.git
Documentation: pkg.go.dev
# Functions
New Create a new SMTP server that doesn't handle the protocol.
NewAuthBackendMemory creates a new in-memory AuthBackend.
NewDefault Create a new SMTP server with a socket protocol implementation.
# Variables
ErrInvalidCredentials denotes incorrect credentials.
# Structs
AuthBackendMemory is a simple in-memory implementation of AuthBackend for testing purpose.
No description provided by the author
Same as the Mta struct but has methods for handling socket connections.
Server Represents an SMTP server.
SMTPUser is a quick implementation of the User interface.
# Interfaces
AuthBackend represents a pluggable authentication backend for the MTA.
Interface for handling blaclists it is meant to be replaced by your own implementation.
Handler is the interface that will be used when a mail was received.
User denotes an authenticated SMTP user.
# Type aliases
HandlerFunc is a wrapper to allow normal functions to be used as a handler.