Crate mailexchanger

Crate mailexchanger 

Source

Structs§

MailExchanger
MxResolveError
An MX resolution failure: its MxResolveFailure classification together with a human-readable message. Display writes message verbatim, which means {err} formatting (including anyhow!("{err}") and log output) reproduces that text. Conversion to anyhow::Error keeps this concrete type rather than erasing it: a caller holding the resulting anyhow::Error can recover the classification with downcast_ref::<MxResolveError>().

Enums§

MxResolveFailure
How resolving a domain’s MX failed, classified by what the DNS exchange established. A caller that needs to act on a specific case (such as NXDOMAIN) can match on this after recovering the MxResolveError with downcast_ref, rather than matching on the message text.
PolicyMode
ResolvedMxAddresses

Functions§

get_mx_negative_ttl
get_mx_timeout
get_mx_transient_negative_ttl
is_mta_sts_enabled
set_mta_sts_enabled
set_mx_concurrency_limit
set_mx_negative_cache_ttl
set_mx_timeout
set_mx_transient_negative_cache_ttl