When an MTA needs to deliver mail to user@example.com, it queries DNS for MX records.
How MX priority works:
- Lower numbers = higher priority
10 mail1.example.comis tried before20 mail2.example.com- If no MX record exists, the MTA falls back to the domain's A record (RFC 5321)
Each MX hostname is resolved to an IP via A/AAAA records. The MTA attempts delivery to the highest priority server first, falling back to secondary servers if needed.
Sign in to keep track of what you have read.