In DNS it is possible to configure a domain to have multiple mail exchange(MX) records. The different MX records have different preferences or priority. The sender of an e-mail will first try to deliver to the MX with the lowest preference, and then to the others. The e-mail servers running on the MX records with high preference can therefore be seen as backup mail servers.
Host | Preference |
mail.hmailserver.com | 25 |
mail-backup.hmailserver.com | 50 |
The sender of an email to me will first try to deliver to my server, mail.hmailserver.com. If the delivery to my host fails for any reason, for example, due to network errors or a machine crash, the sender will try to deliver to the server, mail-backup.hmailserver.com. The server mail-backup.hmailserver.com will then have to forward the email to mail.hmailserver.com whenever that goes online. The steps show how to configure the hMailServer installation running on mail-backup.hmailserver.com to forward all email for the domain hmailserver.com to the host mail.hmailserver.com.