Finding where to deliver: what a sending server does with the DNS's answer

Finding where to deliver: what a sending server does with the DNS's answer A workflow diagram generated by Archify. EX / Answers that end it 02 / The usual path 03 / Fallbacks and retries No such domain · error at once: 5.1.2 · Answers that end it No such domain error at once: 5.1.2 Null MX: MX 0 . · bounce: 556 5.1.10 · Answers that end it Null MX: MX 0 . bounce: 556 5.1.10 Recipient domain · bob@example.org · The usual path Recipient domain bob@example.org Ask for MX records · MX example.org · The usual path Ask for MX records MX example.org What came back? · The usual path What came back? Sort by preference · lowest first, ties random · The usual path Sort by preference lowest first, ties random Resolve the host · A and AAAA records · The usual path Resolve the host A and AAAA records Connect to port 25 · The usual path Connect to port 25 Temporary failure · queue, retry later · Fallbacks and retries Temporary failure queue, retry later No MX records · implicit MX: its own A · Fallbacks and retries No MX records implicit MX: its own A No answer? · try the next MX · Fallbacks and retries No answer? try the next MX refused MX list look up NXDOMAIN MX 0 . no MX next host SERVFAIL, timeout use the domain Legend Sending server Decisions and failures Back to the queue DNS lookups