SPF, DKIM, and DMARC Setup Guide: Protect Business Email From Spoofing
email securityDMARCDNSphishing preventiondeliverability

SPF, DKIM, and DMARC Setup Guide: Protect Business Email From Spoofing

RRegistrer.cloud Editorial Team
2026-12-01
7 min read

Use this practical SPF, DKIM, and DMARC checklist to authenticate business email, prevent spoofing, and safely strengthen domain security.

SPF, DKIM, and DMARC work together to make business email more trustworthy and harder to spoof. This reusable checklist explains how to publish each DNS record, verify alignment, handle multiple sending services, and move from monitoring to enforcement without accidentally disrupting legitimate mail.

Overview

Email authentication is configured at the domain level, usually through the DNS management panel provided by your registrar, hosting company, or managed DNS provider. The three controls have different jobs:

  • SPF (Sender Policy Framework) identifies the servers and services allowed to send mail for your domain. It is published as a TXT record at the domain root.
  • DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing messages. The sending provider supplies a public key, which you publish as a TXT or CNAME record under a selector.
  • DMARC (Domain-based Message Authentication, Reporting, and Conformance) tells receiving systems how to handle messages that fail authentication and where to send aggregate or forensic reports, where supported.

SPF and DKIM provide authentication signals; DMARC connects those signals to the visible From domain through alignment. A message can pass SPF or DKIM and still fail DMARC if the authenticated domain does not align with the domain shown to the recipient.

Before editing records, make an inventory of every service that sends mail using your domain. Include employee mailboxes, website forms, ecommerce platforms, customer relationship tools, ticketing systems, marketing platforms, transactional email services, monitoring tools, and development environments. A missing sender in SPF or an unconfigured DKIM key can cause legitimate messages to be treated as suspicious after a stricter DMARC policy is enabled.

For background on record types and nameservers, see DNS Records Explained: A, CNAME, MX, TXT, and Nameserver Setup.

Checklist by scenario

1. You are setting up a new domain

  1. Confirm where the domain’s authoritative DNS is hosted. Editing records at the registrar will not help if the domain uses another provider’s nameservers.
  2. List the email and application services that will send as the domain.
  3. Configure DKIM in each sending platform and copy the provider’s selector and public-key record exactly.
  4. Create one SPF TXT record at @, using the provider’s documented mechanism or include value for each authorized sender.
  5. Create a DMARC TXT record at _dmarc. Start with a monitoring policy while you review reports and correct legitimate failures.
  6. Send test messages to more than one mailbox provider, then inspect the authentication results in the message headers.

2. You are adding a new sending service

  1. Record the service name, purpose, owner, and the domain or subdomain it uses to send.
  2. Complete the service’s domain-verification and DKIM setup before sending production mail.
  3. Update the existing SPF record rather than creating another SPF record.
  4. Check whether the service supports a custom return-path or custom DKIM domain so DMARC alignment can be maintained.
  5. Send a controlled test and confirm SPF, DKIM, and DMARC results before expanding delivery.

3. You are moving email or changing DNS providers

  1. Export or document the current SPF, DKIM, and DMARC records before making changes.
  2. Lower DNS TTL in advance when your change plan permits, but remember that cached records may still remain visible for a period of time.
  3. Recreate all required records at the new authoritative DNS provider.
  4. Keep old DKIM keys available during a planned transition if the previous service may continue signing messages.
  5. Verify nameservers, record values, and authentication headers after the change.

Use a written change plan and rollback point for high-volume domains. The DNS Change Management Checklist provides a useful process for planning, testing, and reversing DNS updates.

4. You are ready to enforce DMARC

  1. Review reports over a representative operating period, including normal business days and known campaign periods.
  2. Identify every recurring legitimate source that fails SPF or DKIM alignment.
  3. Correct the source, move it to an appropriate subdomain, or remove it if it is no longer authorized.
  4. Change the DMARC policy gradually, such as from monitoring to quarantine and then to rejection, only when the evidence supports the change.
  5. Monitor reports after each policy change and keep a documented owner for future review.

Provider comparison checklist

Provider capabilityWhy it mattersWhat to verify
SPF instructionsAuthorizes the correct sending infrastructureRequired include or mechanism, and whether it must be merged with an existing record
DKIM supportSigns messages and supports domain authenticationSelector, record type, key value, and whether the provider rotates keys
DMARC alignmentConnects authentication to the visible From domainCustom DKIM domain, custom return-path, and alignment options
ReportingHelps identify unauthorized or misconfigured sendersAvailable aggregate reports, retention, access controls, and report destination
Change controlsReduces accidental DNS or authentication outagesAudit history, role permissions, rollback support, and DNS propagation tools

What to double-check

SPF syntax: There should be one SPF policy for a domain. If several teams add separate TXT records beginning with v=spf1, receiving systems may treat the SPF policy as invalid. Combine authorized mechanisms into the existing policy according to each provider’s instructions. Remove services that no longer send mail, and avoid broad authorization when a narrower provider-specific value is available.

DKIM selectors: A DKIM record is normally published at a selector-specific hostname such as selector1._domainkey.example.com. The selector in DNS must match the selector used in the message signature. Copy long public keys without adding quotation marks or spaces unless your DNS interface formats them automatically.

DMARC placement: The DMARC record belongs at _dmarc.example.com. A basic monitoring example is:

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

This is an example format, not a universal final policy. Use a reporting mailbox that is monitored and protected from unwanted mail. If reports are sent to a different organizational domain, that destination may require additional authorization depending on the receiving system.

Alignment: Check the authenticated SPF domain, DKIM signing domain, and visible From domain in the headers. DMARC can pass through either aligned SPF or aligned DKIM; configure both where practical so delivery does not depend on one mechanism.

Subdomains: Decide whether marketing, support, alerts, and transactional messages should use the root domain or separate subdomains. Review the DMARC behavior that applies to subdomains and document exceptions rather than allowing them to grow unnoticed.

Reports and privacy: DMARC reports can contain information about message sources and recipients. Restrict access to the reporting mailbox or analysis platform, and choose a reporting arrangement appropriate for your organization’s data-handling requirements.

Common mistakes

  • Publishing multiple SPF records: Merge the policies instead of adding a second one.
  • Copying a DKIM record to the wrong hostname: The selector and _domainkey label are part of the lookup path.
  • Using a provider’s example unchanged: Replace placeholder domains and report addresses with values owned and monitored by your organization.
  • Starting with an aggressive DMARC policy: Enforcing before identifying all senders can affect invoices, password resets, contact forms, or campaign mail.
  • Ignoring third-party senders: A website may send mail through a hosting platform while staff mail uses a separate provider. Both belong in the inventory.
  • Assuming DNS changes are instant: Cached records and provider-specific refresh behavior can make different checkers show different results temporarily.
  • Checking only the DNS record: A record can look correct while the service uses a different selector, envelope sender, or From domain. Inspect real message headers.
  • Leaving former vendors authorized: Remove old SPF mechanisms and disable unused DKIM keys when a sending relationship ends.

When to revisit

Make email authentication part of routine domain and security operations, not a one-time launch task. Revisit the records:

  • Before seasonal planning cycles, major campaigns, or expected changes in message volume.
  • Whenever a mailbox, marketing, ecommerce, support, monitoring, or transactional email provider is added or removed.
  • When changing registrars, nameservers, DNS providers, cloud hosting, or website form infrastructure.
  • After a phishing incident, suspicious mail report, delivery problem, or unexplained authentication failure.
  • When a DKIM key is rotated, a domain is rebranded, or a subdomain begins sending independently.
  • On a recurring review schedule appropriate to the domain’s risk and sending volume.

For each review, repeat this short audit: confirm authoritative nameservers; list every legitimate sender; check that only one SPF policy exists; verify DKIM selectors with a real test message; inspect DMARC alignment; review aggregate reports; remove obsolete authorizations; and record the next owner and review date. Keep the final DNS values and change history in a controlled location so another administrator can recover the configuration during an incident.

SPF, DKIM, and DMARC are strongest when combined with secure account practices, careful DNS management, and protected web infrastructure. If your domain also hosts a website, review the Small Business Website Launch Checklist and the guide to DNSSEC setup and troubleshooting as part of the wider domain security review.

Related Topics

#email security#DMARC#DNS#phishing prevention#deliverability
R

Registrer.cloud Editorial Team

Security and Infrastructure Editor

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.