DNS & the next hop
02A recipient domain leads to DNS mail exchangers, then usable host addresses for a delivery attempt.
Appropriate alternatives are tried before the sender treats the delivery attempt as exhausted.
Key idea: Resolve mail routing before opening the next connection.
Rules & examples
Resolve mail routing before opening the next connection.
- MX preference values rank mail exchangers; lower values are preferred.
- With no MX records, the domain can act as an implicit MX under §5.1 rules.
- Try appropriate alternative addresses and hosts; a temporary DNS failure is different from an authoritative nonexistence result.
MX targets need usable address records. The relay must also avoid routing loops. Later null-MX conventions are defined separately, rather than being a feature invented by RFC 5321.
Sources
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.