Every email claims to come from somewhere. Without a way to check, anyone could send a message that says it is from your business. SPF, DKIM, and DMARC are the checks. They are three short text records on your domain, and together they let receiving mail servers confirm a message really came from you. Here is what each one does, in plain English, and how to set them up in order.
Why These Records Exist
Email was designed decades ago, before spam and fake messages were a problem. The From line on an email is easy to fake, and scammers use that to pretend to be banks, suppliers, and small businesses. Mail providers now check incoming messages for proof that they came from the domain they claim. Mail that fails those checks is more likely to land in spam or be rejected.
These are not new rules for big companies only. In 2024, Google and Yahoo began requiring every sender to authenticate their mail, and bulk senders, such as anyone sending 5,000 or more messages a day to personal Gmail accounts, to have SPF, DKIM, and DMARC all in place. Google's email sender guidelines list the current requirements. Even a small business sending invoices and quotes benefits from setting all three up from the start.
First, Where the Records Live
Your domain has a set of DNS records, kept at your domain registrar or DNS host. They work like a public directory for your domain. Some point visitors to your website. MX records tell the world which provider receives your mail. SPF, DKIM, and DMARC are TXT records, which are simply lines of text that other servers can read. You add them in the same DNS settings screen where your other records live.
SPF: The Guest List
SPF stands for Sender Policy Framework. It is a list of the servers allowed to send mail for your domain. When a message arrives, the receiving server checks whether it came from a server on your list.
Say Juniper Interiors sends mail from hello@juniperinteriors.com through Google Workspace. Its SPF record might read: v=spf1 include:_spf.google.com ~all. In plain English: mail for this domain comes from Google's servers, and mail from anywhere else should be treated with suspicion. The ~all ending is a soft fail, which marks other mail as suspicious. A -all ending is a hard fail, which asks receivers to reject it.
A few rules to know:
- Your domain should have only one SPF record. If you use several services, combine them into one record instead of adding a second.
- Every service that sends as your domain belongs on the list, including your newsletter tool, invoicing software, and booking app.
- SPF has a limit of 10 DNS lookups. Each include counts, so a long list of services can break it.
- SPF can fail when a message is forwarded, because the forwarding server is not on your list. That is one reason DKIM matters.
DKIM: The Signature
DKIM stands for DomainKeys Identified Mail. It adds a hidden digital signature to every message you send. Your mail provider signs each message with a private key that only it holds. You publish the matching public key in your DNS. The receiving server uses that public key to check the signature.
If the signature checks out, two things are proven: the message was sent by someone authorized to use your domain, and it was not changed along the way. Because the signature travels with the message, DKIM usually still passes when mail is forwarded.
You do not write a DKIM record yourself. Your mail provider generates it in its admin settings, and you copy it into your DNS. It sits at a name like google._domainkey.juniperinteriors.com, where the first part, called the selector, is set by the provider. Then you turn on signing in the provider's settings. Each service that sends for you, like a newsletter tool, usually has its own DKIM record to add.
DMARC: The Instructions
DMARC stands for Domain-based Message Authentication, Reporting, and Conformance. It ties SPF and DKIM to the address people actually see in the From line, and it tells receivers what to do when a message fails. It lives at _dmarc.juniperinteriors.com and might read: v=DMARC1; p=none; rua=mailto:dmarc@juniperinteriors.com.
To pass DMARC, a message must pass SPF or DKIM, and the domain that passed must match the domain in the From address. This matching is called alignment. It closes the gap that lets a scammer pass SPF with their own domain while showing yours in the From line.
The p= part is your policy, and there are three:
- p=none: watch only. Receivers deliver as usual and send you reports.
- p=quarantine: send failing mail to spam.
- p=reject: refuse failing mail entirely.
The rua= part is where receivers send daily summary reports. They show which servers are sending as your domain and whether those messages pass. The raw reports are hard to read, so many people use a free or paid report reader.
How to Set Them Up, in Order
- List every service that sends email as your domain: your mailbox provider, newsletter tool, invoicing software, online store, and booking app.
- Add one SPF record that includes each of them, using the values each service gives you.
- Turn on DKIM for your mailbox provider and for each service that offers it.
- Add a DMARC record with p=none and a reporting address you check.
- Send test messages to a Gmail account. In Gmail, open the message, choose Show original, and look for PASS next to SPF, DKIM, and DMARC.
- Read your DMARC reports for a few weeks. Fix any service that is failing.
- When everything legitimate passes, move to p=quarantine, then p=reject if you are comfortable.
Do not jump straight to p=reject. If a service you forgot about is not set up, its mail will be rejected, and you may not notice until a customer says your invoice never arrived.
What These Records Do Not Do
They prove who sent a message. They do not guarantee the inbox. Providers also look at your sending habits, how people respond to your mail, and whether recipients mark it as spam. Send mail people expect, make unsubscribing easy on any marketing email, and keep your lists clean. Why a Custom Business Email Matters explains why mail on your own domain is worth setting up in the first place, and How to Choose a Domain Name helps if you are still picking the domain.
Our business email service sets up mailboxes on your domain, along with the records that help your mail get delivered, and it is available on its own. If you still need the name itself, our domain service can help you find and register one.
SPF lists who may send, DKIM signs what was sent, and DMARC tells the world what to do with the rest.
Common questions
Yes, it is worth it. Google and Yahoo expect every sender to authenticate their mail, and the records also make it harder for others to send mail pretending to be your business.
No. A domain should have one SPF record. If you use several sending services, combine them into a single record.
Start with p=none so you can read reports without affecting delivery. Once every legitimate service passes, move to p=quarantine and then p=reject.
Keep reading
Want your mail records set up properly?
Tell us your domain and the tools you send email from. We will help you set up mailboxes and the records behind them.
Start the conversation