Expand description
Async delivery worker that drains the queue + dispatches via SMTP (feature-gated). Background delivery worker: polls the outbound queue, signs, and delivers to remote MX hosts.
Sub-modules:
- [
delivery] — per-domain orchestration (MX resolve, retry/bounce, DSN enqueue). - [
smtp] — per-MX SMTP delivery with STARTTLS / DANE policy handling. [TlsPolicy] is re-exported from here.
Structs§
- Delivery
Worker - background delivery worker that polls the queue and delivers messages
- Worker
Config - Delivery worker configuration.
Enums§
- TlsPolicy
- TLS policy for outbound connections
Functions§
- deliver_
domain_ static - deliver messages to a single domain (used by concurrent workers)
- group_
by_ domain - group queued messages by target domain for efficient delivery
- try_
deliver_ via_ mx - try to deliver messages via a specific MX host
- try_
deliver_ via_ mx_ with_ tls - Try to deliver messages via a specific MX host with explicit TLS policy and optional ClientConfig override.