Loading

MX Records and How They Affect Salesforce Email Delivery

Publiseringsdato: Jul 21, 2026
Beskrivelse

An MX (Mail Exchange) record is a DNS (Domain Name System) entry that identifies the mail server responsible for handling email for a specific domain. Salesforce email delivery depends on correctly configured MX records at the recipient's domain. This article explains how MX records work, the difference between valid and invalid MX records, and how to look up MX records for troubleshooting Salesforce email delivery issues.

Løsning
  • What is an MX Record?

    An MX record is an entry in a domain name database that identifies the mail server responsible for handling emails for a domain. When a domain uses more than one mail server, each MX record is assigned a preference number (also called priority). Salesforce always attempts to deliver email to the mail server with the lowest preference number first. This enables the use of primary and backup mail servers for redundancy.

    Valid vs. Invalid MX Records

    RFC 1035 (the standard defining MX record behavior) requires that the exchange value in an MX record must point to a hostname, not an IP address directly.
    Example of an invalid MX record (exchange value points to an IP address — RFC 1035 non-compliant):
    nslookup -type=mx exampledomain.com
    exampledomain.com MX preference = 10, mail exchanger = 201.46.7.135
    Example of a valid MX record (exchange value points to a hostname):
    nslookup -type=mx salesforce.com
    salesforce.com MX preference = 300, mail exchanger = salesforce.com.s8b1.psmtp.com
    salesforce.com MX preference = 200, mail exchanger = salesforce.com.s8a2.psmtp.com
    salesforce.com MX preference = 100, mail exchanger = salesforce.com.s8a1.psmtp.com
    salesforce.com MX preference = 400, mail exchanger = salesforce.com.s8b2.psmtp.com
    In the valid example, each mail exchanger resolves to a named host (e.g., salesforce.com.s8b1.psmtp.com), which in turn has an IP address. This is the correct configuration.

    Key Rules for MX Records

    • Salesforce always delivers email to the MX record with the lowest preference number first.
    • The exchange value tied to the MX record must have a valid hostname and must not point directly to an IP address.
    • Multiple MX records allow for primary and failover mail server configurations.

    Looking Up MX Records

    Several web-based tools can be used to look up and verify MX records for a domain. One example is network-tools.com.
Knowledge-artikkelnummer

000385607

 
Laster
Salesforce Help | Article