SPF, DKIM, and DMARC Setup Guide: A Maintenance Workflow for Domain Email
email securitySPFDKIMDMARCDNS management

SPF, DKIM, and DMARC Setup Guide: A Maintenance Workflow for Domain Email

wwhata.cloud Editorial Team
2026-11-29
7 min read

A reusable SPF, DKIM, and DMARC checklist for authenticating domain email, troubleshooting alignment, and maintaining DNS records.

Use this reusable SPF, DKIM, and DMARC checklist to authenticate email from your domain, reduce configuration errors, and maintain a clear review process whenever you add a sending service, change providers, or rotate keys.

Overview

Email authentication connects messages to the domain or service that claims to send them. The three main controls work together, but they solve different problems:

  • SPF publishes which servers or services are permitted to send mail for your domain.
  • DKIM adds a cryptographic signature to outgoing messages. The receiving mail system checks that signature against a public key published in DNS.
  • DMARC tells receiving systems how to handle messages that fail authentication and provides a way to receive reports. It also checks whether the authenticated domain aligns with the visible From domain.

Authentication records are published in DNS, so this is both an email-security task and a DNS management task. Before editing anything, identify the authoritative DNS provider for the domain and make an inventory of every legitimate sender: workplace email, transactional email, marketing platforms, support tools, website forms, and application infrastructure. A sending service that is forgotten during setup can cause legitimate messages to fail authentication after a stricter DMARC policy is applied.

Keep a record of the domain, DNS provider, sending services, SPF include values, DKIM selectors, DMARC policy, and the person responsible for each service. This small inventory makes future changes safer than relying on memory or copying records from an old provider.

Checklist by scenario

New domain or first-time email setup

  1. Confirm DNS control. Sign in to the provider hosting the domain's authoritative nameservers. A registrar account and a DNS hosting account may be different systems.
  2. List approved senders. Separate business mailboxes from application and marketing mail. For each service, obtain its official SPF guidance and DKIM setup instructions from its administrator or documentation.
  3. Publish one SPF TXT record. A typical structure looks like v=spf1 include:mail.example.net -all. Replace the example mechanism with the values supplied by the services you actually use. The domain should have one SPF policy, not one separate SPF record per provider.
  4. Enable DKIM with each sender. The service will usually provide a selector and a DNS record, often a TXT record or a CNAME delegation. A generic TXT pattern is selector1._domainkey.example.com with a value beginning v=DKIM1;. Do not invent a selector or key; copy the exact value supplied by the sending service.
  5. Start DMARC in monitoring mode. A cautious starting record is v=DMARC1; p=none; rua=mailto:[email protected]. Use a mailbox or reporting destination that is monitored and intended to receive aggregate reports. The p=none policy requests reporting without asking receivers to quarantine or reject failing messages.
  6. Test real messages. Send mail from each legitimate service to test mailboxes and inspect the authentication results. Check that SPF or DKIM passes and that the authenticated domain aligns with the domain in the visible From address.

Adding a new marketing, support, or transactional service

  • Record the new service in the sender inventory before changing DNS.
  • Ask whether it sends from your organizational domain or a separate return-path and signing domain.
  • Merge its SPF authorization into the existing SPF record rather than creating a second SPF record.
  • Publish the service's DKIM record and verify the selector exactly, including underscores and punctuation.
  • Send a test message with the same From address customers will see. A test from a different address or subdomain may not reveal an alignment problem.
  • Review DMARC reports after the service has sent enough mail to appear in reporting data. Keep the policy unchanged until expected sources are accounted for.

Changing email providers or rotating a DKIM key

  1. Document the current SPF, DKIM, and DMARC records before making changes.
  2. Set up the new provider's DKIM selector before switching traffic where possible.
  3. Keep the old DKIM key available during a transition if the old service may still send messages. Remove it only after confirming that no active sender uses it.
  4. Update SPF to include the new provider and remove the old authorization when the migration is complete.
  5. Check forwarding, website forms, scheduled jobs, and dormant integrations. These are common sources of unexpected mail after a provider change.
  6. Review authentication results and DMARC reports before tightening the policy.

Moving DNS or changing nameservers

Export or copy all email-related records before changing authoritative DNS. Include SPF, DKIM, DMARC, MX, verification TXT records, and any CNAME records used for DKIM or service validation. A nameserver change can make a previously correct email configuration disappear if the records are not recreated at the new DNS provider. For a broader DNS transition, see the authoritative DNS provider migration checklist and the DNS propagation troubleshooting guide.

What to double-check

AreaCheckWhy it matters
SPFThere is one SPF policy at the domain, and every legitimate sender is represented.Duplicate or incomplete policies can make authorization unreliable.
DKIMThe selector and public key match the sending service's configuration.A wrong selector, truncated value, or stale key can cause signature validation to fail.
DMARCThe visible From domain aligns with the domain authenticated by SPF or DKIM.A passing authentication check may still fail DMARC alignment.
DNS namesThe host field is entered as the DNS provider expects, such as _dmarc or selector._domainkey.Some control panels append the domain automatically; entering the full name can create an unintended record.
Record valuesQuotation marks, spaces, semicolons, and line breaks are handled by the DNS interface.Control panels format long TXT values differently, and copied text can be altered.
SubdomainsSending activity from subdomains is included in the review.A policy and authentication setup for the root domain may not describe every subdomain's sending behavior.
ReportsAggregate reports go to an address that is monitored and protected from excessive noise.Reports are useful only when someone reviews them and can identify legitimate sources.

DNS changes may not appear everywhere immediately because resolvers cache records according to their TTL and other local behavior. When checking a change, query the authoritative nameservers as well as a resolver used by your test environment. Do not treat a single external checker as the only source of truth.

Common mistakes

  • Publishing multiple SPF records. Combine authorized mechanisms into the existing policy. Never solve a new-sender problem by adding a second record with the SPF version tag.
  • Copying a DKIM key into the wrong host. The selector is part of the DNS name. A key at the root domain will not answer the same query as a key under _domainkey.
  • Assuming SPF proves the visible sender. SPF commonly authenticates a return-path or envelope domain. DMARC then evaluates alignment with the visible From domain.
  • Moving straight to rejection. A strict policy can expose forgotten applications and third-party senders. Monitor first, investigate reports, and tighten enforcement in a controlled step.
  • Ignoring non-human senders. Password resets, invoices, contact forms, alerts, and development environments may send mail even when nobody uses them as a mailbox.
  • Removing old DKIM records too early. Key rotation and provider migrations can overlap. Confirm that old traffic has stopped before deleting a key still needed for verification.
  • Forgetting access and renewal ownership. Keep DNS credentials, domain renewal responsibility, and email administration assigned to identifiable owners. The domain renewal management checklist can help prevent an avoidable DNS outage caused by an expired domain.

When to revisit

Review SPF, DKIM, and DMARC whenever a sending service is added, removed, or renamed; when email providers, DNS providers, or nameservers change; when a DKIM key is rotated; or when a website, application, CRM, support platform, or marketing workflow begins sending mail. Also revisit the records before seasonal planning cycles or major campaigns, when dormant integrations may become active again.

As a practical maintenance routine, keep a dated copy of the current records and sender inventory. Review DMARC aggregate reports on a schedule appropriate to your sending volume, investigate unfamiliar sources, and confirm that known services continue to authenticate. If you change policy enforcement, record the reason, date, expected effect, and rollback plan.

Use this final checklist before closing a change:

  1. Have all legitimate sending services been identified?
  2. Is there exactly one SPF policy for the relevant domain?
  3. Does every active sender have a verified DKIM configuration?
  4. Does at least one authenticated method align with the visible From domain?
  5. Is the DMARC reporting address monitored?
  6. Were test messages sent from each important workflow?
  7. Was the change documented with an owner and review date?

Email authentication is not a one-time DNS edit. Treat it as an operating checklist that travels with your domain, hosting, applications, and provider changes. For a wider launch review covering domains, DNS, hosting, and email, use the website launch checklist.

Related Topics

#email security#SPF#DKIM#DMARC#DNS management
w

whata.cloud Editorial Team

DNS and Cloud Hosting Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.