Skip to the main content
Service

DNS records for email

MX, SPF, DKIM and DMARC: which are mandatory, where the right values come from, and the mistakes that send mail to spam.

Last updated: 2026-10-28

E-mail is the most fragile part of any DNS change, and it fails in a way that is hard to notice: mail still sends, the recipient just never reads it because it landed in spam. This page covers the four kinds of record involved, which are mandatory, and where to get the right values.

First rule: do not type the values yourself

If you use PATI Network business e-mail, that service already has a "DNS records for email" card listing every record you need, each with its own status: In place, Partly in place, Wrong value, Missing.

  • Domain using DNS here: the records are added and kept current automatically. There is nothing to do.
  • Domain using DNS elsewhere: the card lists the records to add at your own DNS provider.

Using another provider's e-mail — Google Workspace, Microsoft 365, your own mail server — the correct values come from their documentation. What follows helps you understand what you are pasting; it does not replace the values they give you.

MX — receiving mail

MX tells the world which server accepts mail for your domain. The host is @, the value is the mail server's host name, with a priority: a lower number is tried first.

Three frequent mistakes:

  • Leaving old and new MX records side by side. Mail then splits between two places depending on which server is reachable, and you lose half your mail somewhere nobody is looking. Changing e-mail provider means removing every old MX record.
  • Pointing MX at an IP address. MX must point at a host name, not an IP.
  • Putting a CNAME on @ and expecting MX to keep working. A host with a CNAME cannot carry MX.

SPF — who may send on your behalf

SPF is a TXT record on host @ listing the servers allowed to send mail carrying your domain. Without it your mail is easily treated as forged.

The single most important rule: a domain may have only one SPF record. Two SPF records is a misconfiguration, and the result is usually worse than having none. Using several senders — business e-mail, a marketing platform, a web app sending notifications — means merging them all into one record.

That is why the "Apply template" function in the DNS zone merges an existing SPF record rather than creating a second one. Adding records by hand, you have to merge them yourself.

DKIM — signing

DKIM is a digital signature added to outgoing mail so the recipient can check it was not altered in transit. The provider gives you a public key to paste into a TXT record on its own host.

DKIM values are long, and the commonest mistake is pasting an incomplete one — a few characters short and the signature cannot be checked. After pasting, compare the length, or read the status on the e-mail service's DNS card: it tells "Wrong value" apart from "Missing".

DMARC — what to do when a message fails

DMARC is a TXT record telling recipients what to do with mail claiming to be from your domain that fails SPF or DKIM: ignore it, treat it as spam, or reject it outright. It is also where you declare an address to receive reports.

The order matters, and do not reverse it: get SPF and DKIM right for every source that sends on your behalf, run that for a while, and only then consider a strict policy. Switching on a reject policy while one sending system is still undeclared blocks your own mail — and you usually find out through a customer who never got their quote.

Client autodiscovery

The business e-mail service also lists a "Client autodiscovery" record. It lets Outlook and other mail apps find the server settings when the user types only their address and password. Not mandatory, but with it every new device setup saves a round of questions.

After changing anything: check, do not assume

  1. Reopen the e-mail service's "DNS records for email" card and read each record's status. The card says when it last checked.
  2. Send a message from your address to a mailbox at another provider, and receive one from outside. Both directions, because SPF and DKIM only affect sending while MX only affects receiving.

If outgoing mail gets locked

The business e-mail service has hourly sending limits per mailbox and per domain. Over the limit, sending is locked while receiving continues normally.

A lock almost always means one mailbox has been taken over and is being used for spam. In order: change that mailbox's password, check the computer using it, then raise a support request to have sending unlocked. Doing it the other way round leads to a second lock a few hours later.

What next

New to the zone editor: see Manage DNS records. About to change nameservers: read the trade-off section in Point a domain at hosting first.

Related guides

Did this guide help you?

Still stuck? Open a support request