The concept is simple yet effective. When an email is sent to your domain, the DNS checks the MX records to determine which mail server should receive the email. If the primary server is down, the email is directed to the backup server as specified by the backup MX record. The backup server holds the email until the primary server is operational again, at which point the email is delivered.