# Functions
NewAccount create new account.
NewClient create and initialize connection to remote SMTP server.
NewDomain create new domain with single main user, "postmaster".
NewLocalHandler create an handler using local environment.
NewLocalStorage create and initialize new file storage.
NewMailTx create and return new mail object.
NewResponse create and initialize new Response from parsing the raw response text.
NewServerInfo create and initialize ServerInfo from EHLO/HELO response.
ParseMailbox parse the mailbox, remove comment or any escaped characters insided quoted-string.
ParsePath parse the Reverse-path or Forward-path as in argument of MAIL and RCPT commands.
# Constants
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of SMTP commands.
List of available SASL mechanism.
RFC 5321, section 3.4.
RFC 5321 section 3.4.
RFC 4954.
RFC 4954 section 5.7.9.
3xx Positive Intermediate reply.
List of SMTP status codes.
List of SMTP status codes.
RFC 5321 section 4.2.4.
List of SMTP status codes.
RFC 5321 section 4.3.2, RFC 4954 section 5.5.6.
RFC 5321 section 4.2.4.
List of SMTP status codes.
List of SMTP status codes.
RFC 4954 section 5.7.8.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
List of SMTP status codes.
RFC 4954 section 4.7.12.
List of SMTP status codes.
4xx Transient Negative Completion reply
The command was not accepted, and the requested action did not occur.
2yz Positive Completion reply
The requested action has been successfully completed.
RFC 4954 section 4.7.0.
List of SMTP status codes.
RFC 5321, section 3.5.3.
# Variables
List of errors.
# Structs
Account represent an SMTP account in the server that can send and receive email.
Client for SMTP.
ClientOptions contains all options to create new client.
Command represent a single SMTP command with its parsed argument and parameters.
DKIMOptions contains the DKIM signature fields and private key to sign the incoming message.
Domain contains a host name and list of accounts in domain, with optional DKIM feature.
Environment contains SMTP server environment.
LocalHandler is an handler using local environment.
LocalStorage implement the Storage interface where mail object is save and retrieved in file system inside a directory.
Mailbox represent a mailbox format.
MailTx define a mail transaction.
Response represent a generic single or multilines response from server.
Server defines parameters for running an SMTP server.
ServerInfo provide information about server from response of EHLO or HELO command.
# Interfaces
Extension is an interface to implement extension for SMTP server.
Handler define an interface to handle bouncing and incoming mail message, and handling EXPN and VRFY commands.
Storage define an interface for storing and retrieving mail object into permanent storage (for example, file system or database).
# Type aliases
CommandKind represent the numeric value of SMTP command.
SaslMechanism represent Simple Authentication and Security Layer (SASL) mechanism (RFC 4422).