PLANNING
You can use a single Internet domain with a single domain name or single Internet domain name with two balanced servers when using multiple mail exchanger records (MX records).
Two examples for setting up multiple MX records in the DNS are as follows:
You can specify MX records for a single Internet domain -- for example, renovations.com -- with a single Internet domain name, such as renovations.com. Use the server's fully-qualified Internet host name in the MX and A records -- for example, mail1.renovations.com.
For example, configure a backup SMTP server (mail2.renovations.com) to deliver or forward mail when the primary SMTP server (mail1.renovations.com) is unavailable:
1. MX record: renovations.com IN MX 5 mail1.renovations.com
Messages addressed to renovations.com route to mail1.renovations.com first because the record's preference (5) is not as high. If mail1.renovations.com is unavailable, mail is routed to mail2.renovations.com.
If you specify equal preference for two servers, DNS randomly selects a server to balance the load of incoming mail.
You can create MX records for a single Internet domain -- for example, renovations.com -- with multiple Internet domain names -- for example, renovations.com, qrs.com, and xyz.com.
Note: Users can address mail to each domain name and each domain has a backup SMTP server.
2. MX record: renovations.com IN MX 10 mail2.renovations.com
3. MX record: qrs.com IN MX 5 mail1.renovations.com
4. MX record: qrs.com IN MX 10 mail2.renovations.com
5. MX record: xyz.com IN MX 5 mail1.renovations.com
6. MX record: xyz.com IN MX 10 mail2.renovations.com
Parent topic: Messaging overview
Related concepts Messaging overview