Skip to main content

Module config

Module config 

Source
Expand description

TOML configuration loading for the SMTP server.

The server reads a single config.toml file at startup to determine bind address, TLS certificates, credential sources, handler backends, and per-domain routing rules. load_config parses the file into a strongly-typed Config hierarchy.

Structs§

AuthConfig
Authentication configuration.
Config
Top-level configuration for the Mailsis SMTP server.
RoutingConfig
Routing configuration with rules and a default handler.
RoutingRuleConfig
A single routing rule that matches by address or domain.
SmtpConfig
SMTP server configuration.
TlsConfig
TLS certificate configuration.

Enums§

ConfigError
Errors that can occur while loading configuration.
HandlerConfig
Configuration for a named message handler.
TransformerConfig
Configuration for a message transformer.

Functions§

load_config
Loads configuration from a TOML file.