The short answer
Four records do four jobs: MX says which servers accept your incoming mail, SPF says which hosts may send with your domain as the envelope sender, DKIM publishes the key a receiver uses to check a sender's signature, and DMARC sets a policy for mail whose visible From address fails those checks. Which ones you change depends on your situation (table below). Change them in the order MX, SPF, DKIM, then DMARC last at p=none, and tighten DMARC only when every legitimate sender passes.
Which records do you need to change?
| Your situation | Records to change | Who usually does it |
|---|---|---|
| You are moving to a new mailbox provider | MX to the new provider's hosts and preference numbers; SPF rebuilt around the new provider; DKIM set up at the new provider. DMARC stays as it is, or is added once the rest works. Full walk-through: set up business email. | The owner in a one-person business; otherwise the IT person. |
| You are adding a service that sends as your domain (invoices, a website form, a newsletter tool) | Whatever the service asks for: an SPF entry, a DKIM key, or both. Check the DMARC reports afterwards. | The owner, or the IT person. |
| You receive mail at the domain and forward it to another address | MX points at the service that receives the mail first, as its instructions say. SPF and DKIM only for services that send as the domain. See forwarding or a mailbox. | The owner, or the IT person. |
| The domain sends no mail at all | An SPF record of only v=spf1 -all, which says no host is authorised to send for that name; DMARC at p=none with a report mailbox if you want the reports. | Whoever holds the DNS. |
| You are not sure who hosts the DNS | Nothing yet: first find your registrar and DNS host. | The owner, or the IT person. |

What does each email DNS record do?
| Record | DNS type and name | What it does | Where the value comes from | Possible signs that it is wrong |
|---|---|---|---|---|
| MX | MX at your domain, each with a preference number | Names the servers that accept incoming mail. Lower preference numbers are preferred, and a sending server tries the hosts in order (RFC 5321). | Your mailbox provider. | Mail to the domain bounces, or still reaches a service you thought you had retired. |
| SPF | TXT at your domain, starting v=spf1 | Lists the hosts allowed to send for the envelope sender (MAIL FROM) and HELO name; it does not check the visible From address (RFC 7208). | Each sending service's instructions, merged into one record. Google's value for Google Workspace, v=spf1 include:_spf.google.com ~all, is an example of such a value, not one for every domain (Google Workspace: set up SPF). | Two SPF records on one name, or a permerror from too many lookups. |
| DKIM | TXT at <selector>._domainkey (Google's default selector is google) | Publishes the public key that lets a receiver check the sender's signature. The private signing key stays with the sending system. | That sender's set-up instructions. | Signed mail arrives without a passing signature, or the selector named in the message header has no record. |
| DMARC | TXT at _dmarc.<your domain> | Checks that SPF or DKIM passed for a domain that aligns with the visible From, and publishes what receivers should do with mail that fails. | You or your mail provider, starting at p=none with an rua report address (Google Workspace: set up DMARC). | Legitimate senders fail in the reports, or the policy was tightened before they were fixed. |
Website records are left untouched during a mail change. Treat every value in a guide, this one included, as an explanation, not a value ready for your domain.
Before you start: access, and every service that sends as your domain
Have these in place before step one:
- A sign-in to the DNS host with rights to add and edit records. If you do not know which company that is, find it first.
- Admin access at the mailbox provider and each sending service.
- A test address outside your domain, to see what the outside world receives.
- A dated copy of the current records.
Then list every service that sends mail using your domain: employee mail, website forms, invoice, quoting and accounting systems, and newsletter, support or booking tools. For each, note who controls it, where its set-up instructions are, and whether it asks for an SPF entry, a DKIM key or both. This inventory stops a forgotten service from being disrupted by an authentication change.
Never publish two competing SPF records for one name, and never paste another organisation's record. Publish only public DKIM information in DNS; private signing keys stay with the sending system.
Change the records: the steps in order
- Save the old and the new values side by side. Next to the exported records, put the exact new values your provider supplied, the planned change time and the person who owns the rollback.
- Change MX, if incoming mail is moving. Copy the host names and preference numbers from the new provider exactly. Our suggestion: if the domain already publishes DMARC at quarantine or reject, do steps 3 and 4 first, so mail sent from the new provider passes from the start, and keep the old provider in SPF until the move is finished.
- Keep one SPF record for every service that sends with your domain as its envelope sender. It starts with
v=spf1, and a domain must not publish more than one (RFC 7208). Stay within 10 lookup terms (see the question below).-allmakes unlisted hosts fail;~allgives the weaker softfail, which receivers should not reject on alone. Google recommends~all, says SPF can take up to 48 hours to start working, and advises removing senders you no longer use (Google Workspace: set up SPF). - Add a DKIM record for each sender that signs as your domain. Use the selector and public key from that sender's instructions. Google advises 2048-bit keys where the DNS host supports them, otherwise 1024-bit, and says DKIM can take up to 48 hours to start working (Google Workspace: set up DKIM). The details are in how to set up DKIM.
- Wait 48 hours, then publish DMARC at
p=none. Google says SPF or DKIM must work first and to wait 48 hours after setting them up. Add anruatag with amailto:address for aggregate reports; Google recommends always including it, sent to a dedicated mailbox or group because report volume can be high (Google Workspace: set up DMARC). - Tighten in stages. Move to
quarantineorreject, usingpctto apply the policy to a small share of messages first and raising it to 100. Our suggested rule: stay atp=nonefor at least two weeks of reports, and until every sender in your inventory passes. - Roll back one record at a time if a test fails. Trigger: incoming test mail does not arrive, or a sender in your inventory fails its checks. Action: put the saved old value back for that record only, then retest incoming and outgoing mail. Remove an obsolete sender only after the remaining senders pass.
How do you check that the records work?
- Look up the records. Confirm there is one SPF record, a DKIM record under each sender's selector, and DMARC under
_dmarc. Allow the waits above before judging. - Send a message from each sender to the outside test address. In the message headers, read the authentication results: whether SPF, DKIM and DMARC passed, and for which domain. A pass for the service's own domain instead of yours does not satisfy DMARC for your From address. Check the visible sender is the one you expect.
- Test incoming mail separately. A passing SPF check says nothing about MX delivery, so send a message in from outside and reply to it.
- Read the first DMARC reports at the
ruaaddress, and check that every sender in your inventory appears as passing.
What goes wrong, and what to do
What if the domain has two SPF records?
Receivers then return a permerror and the SPF check fails (RFC 7208). Merge both into one record with a single v=spf1 at the start, then delete the other.
What if SPF needs more than 10 lookups?
The terms that need DNS lookups (include, a, mx, ptr, exists and the redirect modifier) are limited to 10 per check, and above 10 the result is permerror. Lookups that return nothing should be limited to 2, also with permerror beyond (RFC 7208). Remove senders you no longer use, and ask each provider for its recommended value rather than stacking includes.
Mail stopped arriving after an MX change. Is it lost?
Not at once. A sending server that cannot deliver retries, generally at least 30 minutes apart, and should generally keep trying for at least 4 to 5 days before giving up and returning the message (RFC 5321). Put the saved MX values back or correct them the same day, then test again. Deleting every MX record does not stop mail either: senders then treat the domain's own address as its mail server (RFC 5321).
Does a subdomain need its own records?
A subdomain that sends mail needs its own SPF record (Google Workspace: set up SPF). Add it to the inventory like any other sender.
Can I set DMARC to reject straight away?
Not safely: a strict policy applied before every legitimate sender is configured can interfere with valid mail. Follow the staged order in step 6. If mail is already landing in spam, see why business emails go to spam.
Does passing SPF, DKIM and DMARC put mail in the inbox?
No. Passing is useful evidence about the sender, not a promise of the inbox.
How often should you review the records?
Keep a dated note per sending path: values, change time, test result and who checked. A new website form or billing tool is a DNS change too, so update the inventory then. Our suggested rule: review the inventory and the DMARC reports once a quarter. For the wider set of mailbox checks, see the email security checklist.
Where GridOnBoard fits
For GridOnBoard's own mail, the related part is business email on your own domain Arriving this week, and the records this guide explains are a step you do not do by hand: when the owner connects a domain the business already owns, the records it needs for email and your website are set up for you Arriving this week. The owner then creates the addresses, as many as needed with no fee per address, within sending and abuse limits with an automatic pause Arriving this week, and each person reads and sends in webmail in the browser, with folders and search Arriving this week.
Two things stay with you. Any other service that sends as your domain, such as an invoicing tool or a website form, still needs the SPF entry or DKIM key its own instructions ask for, so keep it in your inventory. And using the mailbox in Outlook, Apple Mail or a phone's mail app is Coming soon. The plan is $26 a month per business, not per person, and each person the owner invites gets their own sign-in at no extra cost Arriving this week (business email, availability).
Sources
- Set up SPF — Google Workspace Help. Reviewed .
- Set up DKIM — Google Workspace Help. Reviewed .
- Set up DMARC — Google Workspace Help. Reviewed .
- RFC 7208: Sender Policy Framework (SPF) — RFC Editor, sections 3.2, 4.5 and 4.6.4. Reviewed .
- RFC 5321: Simple Mail Transfer Protocol — RFC Editor, sections 4.5.4.1 and 5.1. Reviewed .
