Re-exports

pub use samotop_with_spf as spf;
pub use samotop_smime as smime;

Modules

Provides limited SASL authentication mechanisms

SMTP commands

ESMTP features

Traits and impls to represent and establish network-like streams

SMTP response, containing a mandatory return code and an optional text message

Structs

Builds MailService from components with a builder pattern.

Represents the on-going builder configuration

Service builder configuration passed to MailSetup

Produce info logs on important e-mail and SMTP events.

Email address

Simple email envelope representation

Writes the content and the envelope information to a file.

This transport logs the message envelope and returns the given response

MailSetup that adds a mail dir dispatch.

Writes the content and the envelope information to a file.

A mail guard that converts recipient addresses according to a regex map.

MailSetup that uses the given service name for a session. It can also attach the instance ID and session ID for better diagnostics.

Accept all calls, but do nothing. Combine this with the SessionLogger for a light-weight debugging server.

Sends an envelope using the sendmail command

Service implements all the mandatory mail services

Produce info logs on important e-mail and SMTP events.

Contains client configuration

FIXME: this needs to be gracefully degraded to 7bit if 8bit/utf8 is not available

Structure that implements the high level SMTP client

Mail envelope before sending mail data

Enums

Constants

Default smtp port

Default submission over TLS port

Default submission port

Traits

A mail dispatch allows us to dispatch an e-mail. For a given mail transacton it puts a Write sink for receiving mail data into the Transaction. Once the sink is closed successfully, the mail is dispatched.

A mail guard opens the mail transaction after a MAIL command - start_mail. It will then be queried whether each individual recepient (RCPT command) is accepted on which address. It can also modify the recipient address with an optional notification back to the client.

A short hand for all the mandatory mail services

Can set up the given mail services.

Transport method for emails

Type Definitions

Email result type

SMTP result type