Fail

Your mail server (MX) record points to an IP address instead of a host name

The short version

Change the MX record to a host name, such as mail.example.com, and give that name an A record with the IP address.

What it means

Your MX record, which says which server receives mail for your domain, contains an IP address instead of a host name. The mail standards require a host name in an MX record.

Why it matters

Many sending servers don't accept an address there and treat your domain as having no valid mail server, so mail to you bounces or is delayed. Others guess, which works only by accident. The problem often goes unnoticed until mail from one large provider stops arriving.

How to fix it

  1. Pick a host name for the mail server, such as mail.example.com.
  2. Add an A record for that name with the IP address (and an AAAA record if the server has IPv6).
  3. Change the MX record so its value is that host name, keeping the same priority number.
  4. If your mail is hosted by a provider, use the MX host names from its setup page instead.

Google Workspace

Use the single MX record smtp.google.com with priority 1, or the older five aspmx records Google lists.

Microsoft 365

Use the MX value shown in the Microsoft 365 admin center under domains, which ends in mail.protection.outlook.com.

Check it worked

Run a DNS lookup for MX records. The value should be a host name, and that host should have an address in the mail server addresses table.