Skip to main content
wp-config.org

Search tools

Email tools

MX record generator and checker

Pick your mailbox provider to get the exact MX records to publish, then test what your domain has now. The test finds servers left over from an old host, records that point at an IP address or an alias, and mail servers stuck behind Cloudflare's proxy.

  • Records for your provider
  • Leftover servers found
  • Null MX check

Free, no sign-up. Results are not saved.

This tool needs JavaScript. Turn JavaScript on and reload the page.

Email DNS

What gets your email delivered in 2026

  • Gmail and Yahoo ask every sender for SPF or DKIM. Bulk senders (for Gmail, about 5,000 or more messages a day to Gmail accounts) also need both SPF and DKIM, a DMARC record (p=none at least) aligned with SPF or DKIM, and one-click unsubscribe for marketing mail. Since November 2025 Gmail has been stepping up enforcement, including rejecting mail that does not comply.
  • Outlook.com, Hotmail and Live ask domains that send more than 5,000 messages a day for passing SPF and DKIM and DMARC p=none or stronger, aligned with one of them. Since 5 May 2025 mail that fails goes to Junk.
  • Mail from your WordPress site (password resets, orders, contact forms) counts too: send it through an SMTP plugin and an email service that is in your SPF and DKIM records.

What you can do

  • Get the MX records your mailbox provider documents

  • Find MX records left over from an old host

  • Spot MX records that point at an IP address or an alias

  • Catch mail servers behind Cloudflare's proxy

  • Check the Microsoft 365 autodiscover record

  • See whether a null MX is set up correctly

How to set up and check MX records

  1. Choose your mailbox provider

    Enter your domain and choose where your mailboxes are. The builder shows the MX records that provider documents, with the priority and host name to enter at your DNS host.

  2. Publish the records and remove the rest

    Add the records at your DNS host and delete every MX record that belongs to an old provider, once the move is finished. Mail goes to the lowest priority number first.

  3. Test what is published

    After a quick Cloudflare security check, the test reads your MX records, checks that each host name has an address of its own, and says which provider they belong to and what to fix.

What MX records do, and how they go wrong

MX (mail exchanger) records tell other mail servers where to deliver email for your domain. Each one has a priority number and a host name, such as 10 mail.example.com. Senders try the lowest number first and fall back to higher numbers. MX records only decide where mail arrives; they do not decide who may send as your domain, which is the job of SPF, DKIM and DMARC.

The rules that matter

  • An MX record must name a host, not an IP address. The host needs an A or AAAA record of its own, and should not be an alias (CNAME).
  • Keep only the records of the provider your mailboxes are with. Records left over from an old host, such as mail.yourdomain pointing at your previous web server, can catch mail if their priority is the same or lower.
  • A domain that receives no email can say so with a null MX, written 0 . (priority 0 and a single dot). RFC 7505 says it must then be the only MX record. The no-email tab builds it.

Google Workspace and Microsoft 365

Google Workspace now uses one MX record: smtp.google.com at priority 1. Domains set up before 2023 may still have the older records with aspmx.l.google.com in their names; Google says they are still supported and need no change while mail works. Do not mix them with records from another provider.

Microsoft 365 builds the MX target from your domain: its examples turn contoso.com into contoso-com.mail.protection.outlook.com. Always copy the exact value from the Microsoft 365 admin centre (Settings, Domains) rather than typing it yourself.

Cloudflare and WordPress hosting

Cloudflare's proxy (the orange cloud) carries web traffic only. MX records are always DNS only, but the host name an MX record points to must be DNS only too (the grey cloud), or mail never arrives. This often bites when mail.yourdomain shares an address with your WordPress site.

Many web hosts add their own MX records when you add a domain. If your mailboxes are with Google, Microsoft or another provider, check the host's DNS or cPanel settings so its mail server does not think it handles your email. Use the DNS lookup to see every record your domain has.

Frequently asked questions

What MX record does Google Workspace use?

New setups use a single MX record: smtp.google.com with priority 1. Older domains may have the earlier records with aspmx.l.google.com in their names; Google still supports them, so they need no change while mail works. Remove every MX record that is not Google's.

What is my Microsoft 365 MX record?

It is made from your domain name, such as contoso-com.mail.protection.outlook.com for contoso.com. Copy the exact value from the Microsoft 365 admin centre under Settings, Domains, because Microsoft does not document how it handles every kind of domain name.

What does the MX priority number mean?

Lower numbers are tried first. Records with the same number share the mail. Use the numbers your provider gives you; the exact values matter less than the order.

Can I proxy my mail server through Cloudflare?

No. Cloudflare's standard proxy only carries web traffic, so a mail host set to proxied (orange cloud) receives no email. Set the host your MX record points to, such as mail.yourdomain, to DNS only.

Can an MX record point to an IP address?

No. An MX record must name a host. If your mail server only has an IP address, create an A record for a name such as mail.yourdomain and point the MX record at that name.

Is the domain I check stored?

The result is not saved. The MTA-STS policy, BIMI logo and certificate the test downloads are read once and not kept. To count how the tool is used, this site keeps the domain you tested for 12 months, with the time, the outcome, your approximate location (country, region and city), the site you came from and your type of device and browser, but no IP address, and never the services or DKIM selectors you picked. The privacy policy has the details.

Related tools

  • Look up DNS records and check SPF, DMARC, DKIM and DNSSEC.

  • Email header decoder

    New (added recently)

    Paste an email’s full headers to see its delivery path, delays, SPF, DKIM, DMARC and ARC results, alignment and spam scores, decoded in your browser.

  • Blacklist checker

    New (added recently)

    Check whether an IP address or a domain’s website and mail servers are on spam blocklists, with what each listing means and how to get removed.

  • DNS propagation checker

    New (added recently)

    Check whether a DNS change has reached Google, Cloudflare, Quad9 and other public resolvers, and when each one refreshes.