Skip to main content

Module router

Module router 

Source
Expand description

Recipient-based message routing for the SMTP pipeline.

When an email arrives, the router decides which delivery handler should process it by matching the recipient address against a prioritized list of rules (exact address, domain, wildcard domain, catch-all). Unmatched recipients fall through to a configurable default handler.

Structs§

MessageRouter
Routes incoming email messages to handlers based on recipient address rules.
RoutingRule
A single routing rule that maps a pattern to a handler.

Enums§

MatchType
The type of match for a routing rule.

Functions§

determine_match_type
Determines the match type from a routing rule configuration.
extract_pattern
Extracts the pattern string from a routing rule configuration.