SPF, DKIM, and DMARC Setup Guide for Website Email
DNSemail authenticationSPFDKIMDMARCdeliverability

SPF, DKIM, and DMARC Setup Guide for Website Email

TThe Planet Cloud Editorial Team
2026-12-05
7 min read

Use this SPF, DKIM, and DMARC checklist to authenticate domain email, troubleshoot failures, and improve delivery safely.

Authenticating your domain email requires more than adding a single DNS record. This reusable SPF, DKIM, and DMARC checklist explains how to inventory senders, publish the right records, test alignment, stage a DMARC policy, and troubleshoot messages that still reach spam or fail authentication.

Overview

SPF, DKIM, and DMARC work together, but they solve different parts of email authentication:

  • SPF identifies the mail servers and services allowed to send messages for your domain.
  • DKIM adds a cryptographic signature to outgoing messages so receiving systems can check whether the message was authorized and altered in transit.
  • DMARC tells receiving systems what to do when authentication fails and provides reporting options. It also checks whether the authenticated domain aligns with the visible From domain.

These settings live in DNS, while DKIM signing is usually enabled inside your email, marketing, support, or transactional sending platform. Publishing DNS records alone may not activate signing if the provider has not been configured to use your domain.

Before changing anything, make a list of every legitimate sender: employee mailboxes, website contact forms, newsletters, customer-support platforms, invoicing systems, CRM tools, application notifications, and any hosting or server-based mail. A message can pass SPF for one service and fail DMARC if the authenticated domain does not align with the address recipients see in the From field.

For related DNS work, keep a record of your domain registrar, DNS host, and current records. The DNS Troubleshooting Decision Tree can help when records appear correct in one interface but are not visible publicly.

Record reference

TechnologyTypical DNS locationPurposeKey caution
SPFTXT record at the sending domainLists permitted sending sourcesPublish one SPF policy for a domain; combine approved sources rather than creating competing records.
DKIMTXT or CNAME record at a provider-supplied selectorPublishes the public key used to verify signaturesThe selector and value must match the sending provider’s instructions exactly.
DMARCTXT record at _dmarc.yourdomainSets handling and reporting preferences for authentication failuresStart with a monitoring policy while you identify legitimate senders.

Checklist by scenario

Scenario 1: You are setting up domain email for the first time

  1. Confirm DNS control. Identify where authoritative DNS is managed. Your domain registrar and web host may be different companies.
  2. Collect provider instructions. Open the setup pages for your mailbox provider and each service that sends as your domain. Do not copy records from an unrelated domain or account.
  3. Publish SPF. Add the provider’s required mechanisms to one TXT record at the root of the sending domain. Preserve any existing authorized sources. Avoid guessing syntax or adding a second SPF record.
  4. Enable DKIM in the provider dashboard. The provider may give you a selector and ask for a TXT or CNAME record. Add the record at the exact hostname supplied, then return to the provider and complete verification.
  5. Add a DMARC monitoring record. A typical starting point uses the host _dmarc, a policy of p=none, and a reporting address controlled by your organization. Use the exact syntax recommended by your provider or DNS administrator.
  6. Send controlled tests. Send messages to accounts at more than one receiving provider when possible. Inspect the authentication results in the received message headers.

Scenario 2: You are adding a newsletter, CRM, or transactional sender

  1. Document the service, sending domain, return-path or envelope-from domain, DKIM selector, and purpose.
  2. Prefer a provider-supported custom sending domain or subdomain when available. This separates marketing or application traffic from ordinary staff mail and makes future troubleshooting clearer.
  3. Update SPF only if the provider requires it. If the service uses DKIM and a custom envelope-from domain, it may not need an SPF change, but verify this in its instructions.
  4. Enable DKIM and confirm that the signature uses your domain or an aligned organizational domain.
  5. Send a test message and check whether SPF or DKIM passes and whether at least one passing method aligns with the visible From domain.
  6. Watch DMARC reports after launch. If legitimate messages fail, correct the sender configuration before tightening the policy.

Scenario 3: Messages are going to spam or failing authentication

  1. Inspect a message header rather than relying only on the recipient’s spam folder. Look for Authentication-Results, SPF, DKIM, and DMARC outcomes.
  2. If SPF fails, check the sending IP or envelope-from domain against the SPF record and confirm that the message was sent through an approved service.
  3. If DKIM fails, compare the provider’s selector and public key record with the selector shown in the message. Check for copied quotation marks, extra spaces, or a truncated value.
  4. If SPF and DKIM pass but DMARC fails, investigate alignment. The authenticated domain may differ from the domain displayed in the From address.
  5. If the message passes authentication but still goes to spam, review content, sending patterns, recipient engagement, list hygiene, and provider-specific delivery signals. Authentication improves domain identity; it does not guarantee inbox placement.

What to double-check

SPF syntax and scope

SPF is evaluated for the envelope sender, which may not be the same address recipients see. Keep the record limited to known services and remove obsolete senders after confirming they are no longer used. Do not create multiple SPF TXT records for the same domain. If several teams manage sending tools, maintain one approved record and a change log.

DKIM selector accuracy

A DKIM record is tied to a selector, so a provider can use different selectors for different services or domains. The record name commonly follows a pattern such as selector._domainkey.example.com, but the provider determines the actual selector. Some DNS interfaces append the domain automatically; check the resulting fully qualified name to avoid duplicating it.

DMARC alignment and policy progression

DMARC can pass through aligned SPF, aligned DKIM, or both, depending on the provider’s configuration and the message. Start by collecting evidence with a monitoring policy. Review reports, identify every legitimate sender, and fix failures. Only then consider moving to a stricter policy such as quarantine or reject. Make changes gradually and keep an emergency rollback plan, particularly for domains used by multiple departments.

Reporting privacy and operations

DMARC reports can contain useful metadata about sources sending for your domain. Choose a reporting mailbox or analysis service that your organization can monitor and protect. Avoid publishing a reporting address that is not authorized to receive reports for your domain unless the receiving domain has completed the required authorization process.

DNS timing and record visibility

DNS changes are not always visible immediately because resolvers cache records according to their time to live. Confirm the record at an independent DNS lookup tool and from the provider dashboard, but do not repeatedly edit a value while waiting for caches to expire. Keep the previous configuration documented so you can distinguish propagation from a syntax error.

Common mistakes

  • Publishing two SPF records: Combine authorized sources into one policy instead of adding a new TXT record for each provider.
  • Forgetting non-mail senders: Website forms, support desks, accounting tools, and automated applications often send mail separately from employee inboxes.
  • Enabling DMARC enforcement too soon: A strict policy can affect legitimate mail when an unknown sender has not been identified.
  • Checking only the visible From address: SPF commonly evaluates a different envelope domain, while DMARC also depends on alignment.
  • Copying a DKIM value incorrectly: Long keys can be truncated, wrapped, or pasted into the wrong hostname.
  • Assuming authentication equals deliverability: A passing result does not resolve poor list practices, misleading content, reputation concerns, or recipient-level filtering.
  • Leaving former providers authorized: Remove old newsletter, hosting, or application senders after migration and test the remaining workflows.

When to revisit

Use this checklist before seasonal planning cycles and whenever email workflows or tools change. Revisit the records when you:

  • launch a newsletter, CRM sequence, support platform, or transactional email service;
  • move domain and hosting services or change DNS providers;
  • migrate a website, application, or WordPress installation that sends notifications;
  • change mailbox providers, sending domains, or email subdomains;
  • receive new DMARC reports or notice an unexpected rise in failures;
  • see legitimate messages routed to spam, rejected, or sent from an unfamiliar source; or
  • retire an old platform or discover an unused authorization in SPF.

For a practical audit, export or copy your current SPF, DKIM, and DMARC records, list every approved sender, and record the owner for each service. Test one message from each sender, review the authentication headers, and note any alignment failures. After corrections are visible in DNS, monitor results before changing the DMARC policy. Keep this inventory with your broader domain transfer and renewal checklist so email authentication is not lost during a registrar or DNS migration.

If email depends on a website or cloud-hosted application, also maintain a tested recovery plan. The website backup and restore guide covers a separate risk, but the same principle applies: document dependencies, verify changes, and test before a high-volume sending period.

Related Topics

#DNS#email authentication#SPF#DKIM#DMARC#deliverability
T

The Planet Cloud Editorial Team

Technical 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.