SPF, DKIM and DMARC are three DNS records that prove email sent from your domain is really yours. SPF lists who may send, DKIM signs each message, and DMARC tells receiving servers what to do when a message fails both. Set them up in that order, start DMARC in monitoring mode, and tighten it only once your quotes, invoices and website enquiries are all passing. Do it in the wrong order and the first casualty is usually your own email. Our technical support team looks after WordPress sites, including the contact forms that send enquiries from them, so here is the routine in plain terms.
TL;DR
- SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature to each message. DMARC checks that the domain in the visible From line matches an SPF or DKIM pass, and sets the policy for failures.
- Google says SPF and/or DKIM must be working before you turn on DMARC. A message passes DMARC if either one passes and aligns.
- List every system that sends email as you (office mailbox, invoicing tool, newsletter platform, website forms) before you change any record.
- Publish DMARC at
p=nonefirst, read the reports, fix what fails, then move to quarantine and reject. - Authentication protects your domain from spoofing and helps with Gmail acceptance. It does not guarantee inbox placement.
Table of Contents
- What each record does
- How the three work together
- Step 1: List every sender before you touch DNS
- Step 2: Publish your SPF record
- Step 3: Turn on DKIM
- Step 4: Add DMARC in monitoring mode
- Step 5: Fix failures, then tighten the policy
- How to check it worked
- What Gmail now expects from senders
- What authentication does for deliverability
- Where we can help
- Our perspective
- FAQ
- Sources
What each record does
Think of a letter. The envelope has a return address the postal system uses, and the letter inside has a sender name the recipient sees. Email works the same way, and the three records check different things.
SPF (Sender Policy Framework) is a DNS TXT record listing the mail servers authorized to send for your domain. The receiving server compares the IP address of the server that delivered the message with that list. If it is not on it, the check fails, as the Australian Cyber Security Centre explains in its guidance on combating fake emails.
DKIM (DomainKeys Identified Mail) signs each outgoing message with a private key held by your email provider. The matching public key sits in your DNS, so the receiver can confirm the message was not altered and was signed by a system you control. Microsoft notes that a DKIM signature can survive forwarding as long as the content is not modified, whereas SPF can fail after server-based forwarding.
DMARC (Domain-based Message Authentication, Reporting and Conformance) is the layer that ties them to the address your customers see. SPF checks the envelope address, not the visible From address, so on its own it lets an attacker show your name in the From line. The ACSC says DMARC closes that gap by checking that the two line up, and recommends organizations use it alongside SPF and DKIM.

How the three work together
Does DMARC require SPF and DKIM? Yes, in practice. Google’s DMARC setup page says you must turn on SPF and/or DKIM before using DMARC, and to allow 48 hours after setting them up.
The key idea is alignment. A message passes DMARC when either of these is true:
- SPF passes and the envelope domain matches the From domain.
- DKIM passes and the signing domain matches the From domain.
One aligned pass is enough. Amazon’s documentation on DMARC with SES describes it the same way, and notes that a third-party sender can sign mail with your domain’s DNS records on your behalf. That last point matters for small businesses, because most of your email probably leaves through a platform that is not your mailbox.
Alignment comes in two strengths. Under Microsoft’s DMARC configuration guide, the aspf and adkim tags both default to relaxed, where the domains share the same organizational domain, so mail.example.com.au aligns with example.com.au. Strict requires an exact match. Relaxed is the sensible default for a business with one domain and a few tools.
Step 1: List every sender before you touch DNS
This is the step most guides rush, and the one that decides whether setup goes smoothly. Write down every system that sends email using your domain in the From line:
- Your main mailbox service (Microsoft 365 or Google Workspace)
- Your accounting or invoicing software
- Your newsletter or marketing platform
- Your booking or CRM system
- Your website’s contact and quote forms
- Any printer, scanner or alarm system that emails
Ask the person who does the bookkeeping and the person who runs marketing, not only whoever manages IT. The usual reason a rollout stalls is a third-party sender that passes checks against its own domain while your name appears in the From line. Each one has to be set up to authenticate with your domain.
Website forms deserve special attention. Many WordPress sites send enquiry notifications from the web server itself, which is rarely on your SPF list. If those notifications start landing in spam, you lose leads without ever seeing an error. Our guide to setting up a business email for your WordPress site covers how to get that mail sending from a proper mailbox.
Step 2: Publish your SPF record
SPF is one TXT record at the root of your domain. For a business using Google Workspace, a common value looks like this:
v=spf1 include:_spf.google.com ~all
For Microsoft 365 you would use that provider’s include value instead. Your email provider’s setup page gives the exact string, and you add an include: for each additional service that sends for you.
Three rules keep it working:
- One record per domain. Two SPF records on the same name is a configuration error. Merge your services into a single line.
- Subdomains do not inherit. The ACSC advises publishing a separate SPF record for each subdomain that sends mail.
- Domains that send nothing (an old or parked domain) should publish
v=spf1 -all, which tells receivers to reject any mail claiming to come from it, per the same ACSC guidance.
The ending matters. ~all is a soft fail and -all is a hard fail. The ACSC advises testing with ~all and DMARC reporting before moving to -all, and setting a low TTL (the time DNS servers cache the record, for example five minutes) so you can roll back quickly if something breaks.
Step 3: Turn on DKIM
DKIM setup differs by provider, but the pattern is the same. Your provider generates a key pair. You publish the public key in DNS at a name in the form selector._domainkey.yourdomain.com.au, where the selector is a label your provider chooses. Then you switch signing on in the provider’s admin console.
The ACSC advises protecting the private key and testing by sending to external accounts and checking the message headers. Most providers publish DKIM as CNAME or TXT records you copy exactly. A single missing character is enough to break it, so paste rather than retype.
Repeat this for every sender on your list that supports it. Your marketing platform will typically give you its own DKIM records to add. This is how it signs as your domain rather than its own.
If your email runs through Microsoft 365, our article on Office 365 SMTP settings explains how mail leaves your tenant, which helps when you are working out what to authenticate.
Step 4: Add DMARC in monitoring mode
The ACSC advises implementing DMARC straight away, even at p=none, because the reporting gives you visibility into your email flows and configuration errors. A starter record, published as a TXT record at the host name _dmarc, looks like this:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com.au
The p= tag is the policy:
| Policy | What receivers are asked to do | When to use it |
|---|---|---|
p=none |
Deliver as normal, send you reports | First weeks, while you find every sender |
p=quarantine |
Treat failures as suspicious, usually spam folder | Once real mail is passing consistently |
p=reject |
Refuse failing mail | Final state, once reports are clean |
The rua= address receives aggregate reports, which are summaries from receiving servers showing which sources sent mail as your domain and whether it passed. They arrive as XML files and are hard to read by eye, so most businesses route them to a reporting tool or have a technical person review them. Someone must own that job, or the monitoring stage achieves nothing.
Step 5: Fix failures, then tighten the policy
Leave the record at p=none long enough to capture your real routines: the month-end invoice run, the monthly newsletter, a website enquiry, a booking confirmation. When a source fails in the reports, work out whether it is legitimate. If it is, authenticate it properly with your domain. If it is not, that is exactly the spoofing DMARC exists to stop.
Only then move up. Setting p=reject before SPF and DKIM are confirmed working can cause your own legitimate email to be rejected, which is why the progression is none, then quarantine, then reject. The ACSC’s best-practice strategy ends at quarantine or reject, with the policy also covering subdomains.
You can ease in with the pct tag, which applies the policy to only a percentage of failing mail. Microsoft’s example record uses pct=100 at full enforcement, so stepping pct up from a lower figure is a reasonable way to approach it.
How to check it worked
- Look at the DNS. In your domain’s DNS panel, confirm the SPF, DKIM and DMARC records exist exactly as your providers specified, with no typos and no duplicate SPF record. New records can take up to 48 hours to be visible everywhere.
- Send a test. Email an external address, such as a Gmail account, then open the original message headers. You are looking for SPF, DKIM and DMARC all showing a pass.
- Test each sender. Send an invoice, a newsletter test and a website form submission, not just a message from your own mailbox.
- Read the bounces. If a message bounces, the non-delivery report tells you whether authentication, reputation or content filtering was the cause.
Authentication can fail for reasons that have nothing to do with fraud. The messaging industry group M3AAWG points out that a legitimate email can fail for configuration or syntax reasons, which is why the testing stage exists.
What Gmail now expects from senders
If your customers use Gmail, authentication is no longer optional. Google’s sender guidelines say that from 1 February 2024 all senders to Gmail accounts must use SPF or DKIM. Anyone sending more than 5,000 messages a day to Gmail accounts must use SPF and DKIM, publish a DMARC policy (p=none is allowed), align the From domain with SPF or DKIM, offer one-click unsubscribe on marketing mail, and keep spam rates under 0.3%.
Most local service businesses send far fewer than 5,000 messages a day. The authentication still matters, though: Google states that unauthenticated messages might be marked as spam or rejected with a 5.7.26 error. If you have ever wondered why quotes sent to a Gmail address never got a reply, this is the first place to look.
In Australia, there is also a privacy angle. The Privacy Act 1988 requires entities covered by it to take reasonable steps to protect personal information under Australian Privacy Principle 11. The Office of the Australian Information Commissioner lists email security among the areas to consider in its guide to securing personal information. If your business handles customer details by email, that is another reason to have these records in place.

What authentication does for deliverability
Correct records make it easier for receivers to trust your mail. Google says authenticated messages are less likely to be rejected or marked as spam by Gmail, and that they help protect your organization from impersonation.
It is one signal among several. Authentication says the message was authorized by your domain. It says nothing about content quality, and receiving systems also weigh sending reputation, complaint rates and what is in the message. A clean setup removes a common cause of spam-folder trouble, and it is the foundation for everything else. Our notes on email deliverability go further into the other factors.
Authentication also does not stop a compromised mailbox or a lookalike domain. Pair it with multi-factor sign-in and a habit of verifying payment detail changes by phone.
Where we can help
Email authentication sits next to the website work we do every day. A broken contact form, a site that sends from the wrong address, or a domain with records nobody remembers adding all cost local businesses enquiries. Our WordPress Help & Support page lists Monthly Maintenance at A$59 per month, Monthly Updates at A$123 per month, Monthly Development at A$600 per month, and Emergency Services at A$120 per hour.

If you want a wider look at how your site is performing, including the pages that bring in leads, our Website Audit is a one-off A$1,250.
Our perspective
Most business owners we talk to think of email and the website as separate things. Customers do not. They fill in a form, wait for a reply, and if nothing arrives they assume you ignored them and call someone else.
That is why we treat email authentication as part of keeping a website healthy. The form on your contact page, the booking confirmation and the quote email all depend on the same few DNS records. When one sender is missing from your SPF record, the cost is a lost job that you never hear about.
Our advice is to go slowly and in order. List your senders, get SPF and DKIM passing, publish DMARC at monitoring, and tighten only when the reports are clean. It is slower than changing everything in one afternoon, and it is the version that does not take your own invoices offline.
We prefer to work alongside the owner, explaining what each record does, so that the next person who adds a tool to your business knows to update DNS first.
Steve Doig
FAQ
What is the difference between SPF, DKIM and DMARC?
SPF lists which servers may send for your domain. DKIM attaches a signature that proves the message came from a system you control and was not changed. DMARC checks that one of those passes in line with the visible From domain, and tells receivers what to do with failures, while sending you reports.
Do I need all three?
Microsoft says using fewer than all of the methods provides substandard protection, because they are designed to work as building blocks. The ACSC likewise recommends DMARC in addition to SPF and DKIM. Set up all three, with DMARC starting at monitoring.
How long does it take for the records to work?
DNS changes can take up to 48 hours to be visible everywhere, and Google recommends allowing 48 hours after turning on SPF or DKIM before relying on DMARC. Plan to keep DMARC at monitoring for several weeks so reports capture your regular sending routines before you move to quarantine or reject.
Can I have more than one SPF record?
No. A domain should have a single SPF record, so combine every service that sends for you into one line using include: entries. Subdomains that send mail need their own record, because they do not inherit the parent’s.
Will this guarantee my emails reach the inbox?
No. Authentication removes a common reason for rejection and spam filtering, and Gmail expects it. Inbox placement still depends on sender reputation, complaint rates and message content.
Sources
- How to combat fake emails, Australian Cyber Security Centre
- How email authentication works in Microsoft 365
- Set up DMARC to validate email in Microsoft 365
- Set up DMARC, Google Workspace Admin Help
- Email sender guidelines, Gmail Help
- Complying with DMARC authentication protocol in Amazon SES
- Email Authentication, M3AAWG
- Guide to securing personal information, OAIC