To set up email authentication, you add three records to your domain's DNS: SPF, DKIM and DMARC. Together they prove your emails really come from you. Gmail and Yahoo now expect them, and without them your messages are more likely to land in spam or get rejected.
It sounds technical, but each step is small. This guide shows you what each record does, what to type, and how to roll out DMARC without breaking your email. If you want the bigger picture first, read our post on why your emails land in spam and how to fix it.
Key Summary
- SPF lists the servers allowed to send email for your domain. DKIM signs each message. DMARC tells receivers what to do when checks fail.
- Gmail and Yahoo require bulk senders to use both SPF and DKIM, and to publish a DMARC record.
- A DMARC policy of p=none is the minimum. It monitors without blocking anything.
- You can only have one SPF record per domain, and it has a limit of 10 DNS lookups.
- Move from monitoring to enforcement slowly, once your reports show every legitimate sender passes.
- Test with a real email and check the results.
Why email authentication matters now
Google and Yahoo tightened their rules for bulk senders. According to Google's sender guidelines, a bulk sender is one that sends close to 5,000 messages or more to personal Gmail accounts within 24 hours. Once you're a bulk sender, you stay one.
The requirements include:
- Google: authenticate with both SPF and DKIM, publish a DMARC record (minimum policy of p=none), keep your user-reported spam rate below 0.1% and never let it reach 0.3%, and offer one-click unsubscribe for marketing email.
- Yahoo: implement both SPF and DKIM for bulk sending, publish a valid DMARC policy with at least p=none, and keep your spam rate below 0.3%.
Even if you send far fewer emails, authentication is good practice. It protects your domain from being spoofed and helps your emails reach the inbox.
SPF: what it does and how to set it up
SPF (Sender Policy Framework) is a DNS record that lists which services can send email on behalf of your domain. Receiving servers check it to see whether a message came from an approved source.
Step 1: List every service that sends email as you. Think beyond your main mailbox. Common ones are your email provider (such as Google Workspace or Microsoft 365), your email marketing platform, your CRM, invoicing software, and website forms.
Step 2: Get each service's SPF include. Each platform's help pages will give you a value to add.
Step 3: Combine them into one record. Add a single TXT record at your root domain. It looks like this (example only):
v=spf1 include:spf.youremailprovider.com include:spf.yourmarketingplatform.com ~all
Two rules matter:
- One SPF record only. If you publish two, SPF fails. Merge them into one.
- Ten lookups maximum. Each include can trigger DNS lookups, and the SPF specification caps them at 10. Too many and SPF breaks, so remove services you no longer use.
The ending matters too. ~all is a soft fail, meaning messages from unlisted sources are treated with suspicion. -all is a hard fail. Start with ~all while you check everything is listed.
DKIM: what it does and how to set it up
DKIM (DomainKeys Identified Mail) adds a digital signature to each email. The receiving server checks that signature against a public key published in your DNS. It proves the message wasn't altered and that it came from a source you authorised.
You don't create the keys yourself. Your email platform generates them.
Step 1: Find the authentication or domain settings in each platform that sends email for you.
Step 2: Copy the record it gives you. It's usually a TXT or CNAME record, with a host name that looks like selector._domainkey.yourdomain.com.au.
Step 3: Add it to your DNS, then go back to the platform and click verify.
Each service has its own selector, so you'll add a separate DKIM record for each one. If a platform offers a 2048-bit key, choose it. Yahoo requires at least a 1024-bit key.
DMARC: start by monitoring, then tighten
DMARC (Domain-based Message Authentication, Reporting and Conformance) sits on top of SPF and DKIM. It tells receiving servers what to do when a message fails, and it sends you reports.
Add a TXT record at _dmarc.yourdomain.com.au. A safe starting point looks like this:
v=DMARC1; p=none; rua=mailto:[email protected]
What it means:
p=noneis monitoring only. Nothing gets blocked. It's also the minimum Google and Yahoo accept.ruais the address that receives aggregate reports. Yahoo strongly recommends including it.
DMARC also checks alignment. The domain in your From address must align with either the SPF domain or the DKIM domain. Google recommends fully aligning with both.
Here's the rollout:
- Start at p=none. Collect reports for a few weeks.
- Find your legitimate senders. Fix any that fail SPF or DKIM.
- Move to p=quarantine. Failing messages go to spam.
- Move to p=reject. Failing messages are blocked.
Don't jump straight to reject. If you've forgotten a legitimate sender, such as your invoicing tool, its emails will vanish.
DMARC reports arrive as XML files, which are hard to read. A free report-reading tool makes them far easier to understand.
How to test that it's working
Send a test email from each service to a Gmail address. Open the message, click the three dots, and choose Show original. Gmail displays whether SPF, DKIM and DMARC passed.
You can also use free lookup tools like MXToolbox to check that your records are published correctly. If you send a lot of email to Gmail, Google Postmaster Tools can show your spam rate and domain reputation.
Test every service that sends email as you, including your newsletter and invoicing tools.
Common mistakes that break delivery
- Publishing two SPF records. Merge them into one.
- Going over 10 lookups. Remove old services from your SPF record.
- Forgetting a sender. Website forms, CRMs and invoicing tools often send email as you.
- Jumping to p=reject too early. Monitor first.
- Ignoring DMARC reports. They tell you what's failing.
- Typing the full domain into the host field. Many DNS providers add your domain automatically. If yours does, enter just
_dmarc.
Frequently Asked Questions
Do I need all three?
For bulk sending to Gmail or Yahoo, yes: SPF and DKIM plus a DMARC record. For smaller senders, all three are still good practice.
What does p=none actually do?
It tells receivers to take no action on failing messages, but to send you reports. It's the starting point, and Google and Yahoo accept it as a minimum.
How long do DNS changes take?
Often minutes to hours, sometimes longer. If a check fails straight after you add a record, wait and test again.
Will DMARC stop people spoofing my domain?
Only once your policy is quarantine or reject. At p=none it just monitors.
Does my email platform set this up for me?
Most platforms give you the records to add, but you add them in your DNS. That means you need access to your domain registrar or DNS host.
Wrapping up
Email authentication is three small DNS records. List your senders for SPF, add each platform's DKIM record, then start DMARC at p=none and tighten slowly. Test as you go and keep an eye on the reports.
Your next step: write down every service that sends email as your domain. That list is the foundation for everything else.
This guide is written by Hedgehog, a digital marketing training and coaching business that helps small and medium businesses in Australia run their own marketing. We offer coaching, training and done-with-you support.