Set Up SPF DKIM And DMARC
SPF, DKIM and DMARC are email authentication settings that help prove your messages are genuinely being sent by your domain. They protect customer trust, reduce the risk of spoofing, and help important emails reach inboxes more reliably.
If the setup feels technical, you are not alone, but it becomes much easier when you follow a clear order. Start by identifying every service that sends email for your business, then add the correct DNS records, enable signing where needed, and test that your messages pass authentication.
These records matter because email providers are stricter than ever about sender identity. If your domain is not authenticated properly, your emails may land in spam, fail delivery, or be easier for attackers to spoof.
For businesses sending sales emails, customer updates, invoices, booking confirmations or marketing campaigns, poor authentication can quickly become a serious problem. The safest setup order is SPF first, DKIM second, then DMARC, because SPF authorises sending services, DKIM signs your messages, and DMARC tells receiving mail servers what to do when messages fail checks.
Major platforms regularly update their sender requirements, so it is sensible to check official Google sender guidance when configuring business email. C2 Marketing helps businesses build stronger digital foundations, from website performance and SEO through to practical marketing systems that support growth.
Getting email authentication right helps you protect your brand, build trust with customers, and support better campaign results across your wider marketing activity. It is a practical step that strengthens both security and deliverability.
What SPF DKIM And DMARC Do
SPF stands for Sender Policy Framework. It is a DNS TXT record that lists which mail servers or services are allowed to send email for your domain.
For example, if you use Google Workspace, Microsoft 365, a CRM, an ecommerce platform and a support desk, your SPF record needs to account for those legitimate sending sources. A basic SPF value may look like this: v=spf1 include:spf.exampleprovider.com ~all.
That SPF value is only an example, not a universal record to copy. Your email platform will provide the exact include value or IP information you need to use.
DKIM stands for DomainKeys Identified Mail. It adds a digital signature to outgoing messages so receiving mail servers can check that the email was not changed in transit.
The sending platform keeps a private key, while you publish a public key in DNS. This is often added as a TXT record, although some platforms use a CNAME record instead.
DMARC stands for Domain Based Message Authentication, Reporting and Conformance. It uses SPF and DKIM results, checks whether the authenticated domain matches the visible From address, and applies your chosen policy.
This matching process is called alignment. In plain English, DMARC wants to know whether the domain people see in the inbox matches the domain that passed authentication.
Audit Every Email Sending Service First
Before adding records, make a list of every system that sends email using your domain. Many businesses are not fully sure which tools send email from their domain, especially when new platforms have been added over time.
Common sending services include your main mailbox provider, marketing email platform, CRM, ecommerce store, booking system, website contact forms, payment notification tools, help desk software, automated alerts and system notifications. If any of these services send from your domain, they need to be checked before DMARC enforcement becomes stricter.
This audit matters because missing even one legitimate sender can cause problems later. A marketing manager may connect a newsletter platform, a developer may configure website form emails, and a finance tool may send invoices from the same domain.
If those systems are not included in your authentication setup, they may fail DMARC even if they are genuine. A simple spreadsheet is enough to start, with columns for the platform name, what it sends, who owns the account, whether it provides SPF details, whether DKIM is enabled, and which From address it uses.
This gives you a clear map before you touch DNS. It also helps you remove old or unused senders that no longer need permission to send email for your domain.
Find Where Your DNS Is Managed
DNS is the system that tells the internet where your domain's services live. Your DNS may be managed by your domain registrar, website host, email provider or a separate DNS service.
It is not always the same place where you bought the domain, so check carefully before editing records. Log in to your domain registrar first and look for nameserver settings.
If the nameservers point to another provider, that provider is usually where you edit DNS records. Once you find the correct DNS panel, look for an area called DNS records, zone editor or advanced DNS.
For SPF and DMARC, you usually add TXT records. For DKIM, the platform may ask you to add either TXT or CNAME records.
Always copy the host and value exactly from the email platform. Be aware that some DNS systems automatically add your domain to the end of the host field, which can create an incorrect duplicate domain if you paste the full host name.
How To Set Up SPF DKIM And DMARC Safely
Start with SPF by checking whether your domain already has an SPF TXT record. A valid SPF record begins with v=spf1, and your domain should have only one SPF policy at the root domain.
Multiple SPF records can cause a permanent error and make authentication unreliable. If you use more than one sender, do not create separate SPF records for each provider.
Instead, merge the authorised mechanisms into one record. A simplified example could look like this: v=spf1 include:spf.providerone.com include:spf.providertwo.com ~all.
The exact values must come from your providers, and you should remove any sender you no longer use. SPF also has a limit of ten DNS based lookups, which are checks SPF needs to make behind the scenes when it follows include values.
If you use many email systems and SPF starts failing with too many lookups, reduce unused senders, use provider recommended values, or review whether some platforms can rely on DKIM alignment instead. This keeps your SPF record cleaner and easier to manage.
Next, enable DKIM in each sending platform. In Google Workspace, Microsoft 365 and many marketing tools, DKIM is generated inside the admin area.
The platform will give you a selector, which is a short label that helps receiving servers find the right DKIM key, and a DNS value. Always use the exact host your provider gives you.
After publishing the DKIM DNS record, return to the email platform and activate or verify DKIM signing if required. This is a common step people miss, because the DNS record may exist but messages will not be signed until the platform confirms it and starts adding DKIM signatures to outgoing email.
Finally, publish your DMARC record. DMARC is also a DNS TXT record, placed at the DMARC host for your domain.
A safe starting value is: v=DMARC1; p=none; rua=mailto:dmarcreports@example.com. Replace the reporting address with a mailbox you control, ideally one used specifically for DMARC reports.
Understand DMARC Policies And Alignment
DMARC has three main policy stages. p=none monitors messages without asking receivers to block them, p=quarantine asks receiving mail systems to treat failing messages as suspicious, and p=reject asks receivers to reject messages that fail DMARC.
If you are worried about blocking genuine customer emails, start with monitoring before moving to enforcement. This lets you collect reports, spot legitimate services that are failing, and fix problems before real email is affected.
Alignment is the part of DMARC that often causes confusion. A message can pass SPF but still fail DMARC if the authenticated sending domain does not match the visible From domain.
For example, if the visible From address is news@example.com but the SPF authenticated domain belongs to an external mailer, SPF may pass while DMARC alignment fails. DMARC is not just checking whether a message passed authentication, but whether that authentication relates to the domain shown to the recipient.
DKIM alignment works in a similar way. The DKIM signing domain should align with the visible From domain, either exactly or at an accepted organisational level, depending on your DMARC settings.
The tags aspf and adkim can control how strict alignment is. Many businesses should keep the default relaxed alignment unless they have a specific security need.
Record Examples To Use As A Guide
SPF is usually a TXT record at the root domain. Its purpose is to authorise sending sources, and a simple placeholder value is v=spf1 include:spf.exampleprovider.com ~all.
Your real SPF value must come from your email services. Copying a generic example without checking your providers can cause genuine email to fail.
DKIM can be a TXT or CNAME record. Its purpose is to publish or point to the public key used to verify message signatures.
The DKIM host includes a selector supplied by the sending platform. Selector mistakes are one of the most common causes of DKIM failure, so copy the record carefully.
DMARC is a TXT record published at the DMARC host for the domain. Its purpose is to define your failure policy and reporting destination.
A starter monitoring policy is v=DMARC1; p=none; rua=mailto:dmarcreports@example.com. Once your legitimate mail is passing, you can move gradually to quarantine and then reject if that is right for your business.
Google Workspace And Microsoft 365 Notes
For Google Workspace, SPF usually involves adding Google's approved sending mechanism to your one SPF record, alongside any other legitimate services. DKIM should be generated in the Google Admin console, then added to DNS using the record Google provides.
DMARC should only be added after SPF or DKIM is working. This gives you a safer starting point and makes DMARC reports easier to understand.
For Microsoft 365, SPF also needs to include Microsoft's authorised sending mechanism, plus any additional email platforms your business uses. DKIM for custom domains often uses selector CNAME records that point to Microsoft controlled hosts.
DMARC then checks whether SPF or DKIM passes and aligns with the visible From domain. The main point is that platform settings and DNS records must work together.
Publishing a DNS record is not always enough, especially for DKIM. You may also need to press an enable, verify or start authentication button inside the admin area of the platform.
How To Verify SPF DKIM And DMARC
After making DNS changes, allow time for propagation. Some records appear quickly, while others can take several hours depending on caching and TTL settings.
Once the records are visible, send test emails from your main mailbox, your marketing platform and any transactional systems that use your domain. Testing every major sending source is important because one service passing does not mean every service is authenticated correctly.
In Gmail, you can open a test email and view the original message to inspect authentication results. Look for results such as spf=pass, dkim=pass and dmarc=pass.
Also check the Return Path domain, the DKIM signing domain, and the visible From address to confirm alignment. These details help you understand why a message passed or failed, rather than only seeing the final result.
DMARC aggregate reports are summary files that show what is happening with your domain's email. They can reveal unknown sending IP addresses, legitimate tools that are not passing, DKIM failures, spoofing attempts and sudden sending volume changes.
For a deeper look at how sender reputation affects inbox placement, C2 Marketing's guide to email deliverability is a useful next read. Authentication is a major part of deliverability, but it works best alongside strong content, consistent sending and healthy engagement.
Common Problems And Fixes
Multiple SPF records are one of the biggest issues. If your DNS has two TXT records that both start with v=spf1, merge them into one valid record and delete the duplicate.
Also check that old providers have been removed. Unused senders can create risk and push you closer to the SPF lookup limit.
DKIM failures are often caused by selector typos, using the wrong record type, placing the value on the wrong host, or forgetting to enable DKIM in the sending platform. Another common issue is a DNS provider adding the domain automatically, which can create a host name that is longer than intended.
DMARC failure despite SPF passing usually points to alignment. This often happens when an external platform sends mail using its own envelope sender domain while showing your domain in the From address.
The fix may involve enabling custom DKIM, setting up a custom return path, or adjusting the platform's authenticated sending settings. The right solution depends on the sending platform and how it handles From addresses, return paths and DKIM signing.
If legitimate messages are being quarantined or rejected, pause before making your DMARC policy stricter. Review all sending services, subdomains, marketing campaigns, website forms and recent platform changes.
A measured digital strategy should protect your domain without disrupting the customer emails your business relies on. Strong authentication should reduce risk while keeping essential communication running smoothly.
Final Thoughts
Setting up SPF, DKIM and DMARC is one of the most practical ways to protect your domain and support stronger email delivery. It is not just about copying records into DNS, because you also need to understand who sends email for your business and whether each sender is authenticated correctly.
Start by auditing your senders, publish one clean SPF record, enable DKIM for each platform, then add DMARC in monitoring mode. Once reports show your legitimate mail is passing, you can move gradually towards quarantine and reject.
You do not have to do everything at once. Start with visibility, learn from the reports, and strengthen your policy safely over time.
Frequently Asked Questions
Do I Need SPF DKIM And DMARC?
Yes, most business domains should use all three. They work together to verify senders, sign messages and apply a clear policy when authentication fails.
Can I Have Multiple SPF Records?
No, a domain should have one SPF policy only. If you use several senders, merge their approved mechanisms into a single SPF record.
Should I Start DMARC With p=none?
For most businesses, yes. Starting with p=none lets you monitor results and fix legitimate failures before asking receivers to quarantine or reject mail.
Why Does SPF Pass But DMARC Fail?
This usually happens because SPF passed for a domain that does not align with the visible From domain. DMARC needs SPF or DKIM to pass and align.
Does Email Authentication Guarantee Inbox Placement?
No, it does not guarantee inbox placement. It is a major trust signal, but content quality, sender reputation, engagement and complaint rates also affect delivery.
