SPF, DKIM, and DMARC are DNS-based controls that help receiving mail systems verify whether messages claiming to come from your custom domain are authorized. This guide explains what each record does, how to set them up with a domain registrar and email provider, how to monitor reports, and when to revisit your configuration after a provider or sending-pattern change.
Overview
Email authentication is not a single setting. It is a coordinated setup involving your domain’s DNS records, your mailbox or email marketing providers, and an ongoing review process. A correct configuration can help legitimate messages establish trust and can make unauthorized use of your domain easier to identify. It cannot guarantee inbox placement, stop every phishing message, or replace account security and careful monitoring.
SPF, DKIM, and DMARC serve different purposes:
| Control | What it checks | Where it is configured | What to monitor |
|---|---|---|---|
| SPF | Whether a sending server is authorized to send for the domain or envelope-from address | A TXT record at the domain or relevant subdomain | All legitimate sending services are included, with no conflicting SPF records |
| DKIM | Whether a message carries a valid signature associated with the domain | Usually a TXT or CNAME record at a provider-supplied selector hostname | The provider is enabled, the selector record remains published, and signatures pass |
| DMARC | Whether SPF or DKIM aligns with the visible From domain and what receivers should do when checks fail | A TXT record at _dmarc.yourdomain.example | Authentication results, alignment, reports, and policy impact |
The exact hostnames, values, selectors, and record types come from your email providers. Treat provider documentation and the values shown in the provider dashboard as authoritative. Do not copy a record from another domain simply because the syntax looks similar.
What to track
1. Your complete sending inventory
Begin with a list of every service that sends messages using your domain. Include employee mailboxes, website forms, customer relationship tools, newsletters, support platforms, invoicing systems, appointment software, transactional email services, and any scripts or applications that send directly through SMTP or an API.
For each service, record the provider name, sending domain or subdomain, purpose, administrator, SPF requirement, DKIM selector, and whether the service supports DMARC alignment. This inventory is more useful than a DNS screenshot because it connects each record to a business function. Mark services as active, paused, or retired so an old vendor does not remain authorized indefinitely.
2. SPF record health
SPF is published as a TXT record. A simplified example might look like v=spf1 include:provider.example -all, but the correct mechanisms depend on your providers. Replace the example with values supplied for your domain.
Track whether your domain has one effective SPF record rather than several separate SPF records. If multiple services need authorization, they generally need to be represented within the same SPF policy. Avoid adding broad mechanisms without understanding what they authorize. When a provider is removed, review whether its SPF entry can also be removed.
3. DKIM selectors and signing status
DKIM uses a selector, which is a label that lets a receiving system find the public key in DNS. A provider may ask you to publish a TXT record or a CNAME record at a hostname similar to selector1._domainkey.yourdomain.example. The provider’s exact hostname and value must be used.
Track every active selector and the service that owns it. A successful DNS lookup does not by itself prove that outgoing messages are being signed; check the provider’s status and, where available, the authentication results of a delivered message. Keep a record of old selectors during a controlled transition, then remove them when the provider confirms they are no longer needed.
4. DMARC policy and reports
DMARC is published at a hostname beginning with _dmarc. A monitoring-stage example is:
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.example
This is a template, not a universal recommendation. Use a mailbox or reporting service that is prepared to receive aggregate reports, and confirm that the address and any cross-domain reporting requirements are supported by the relevant provider. DMARC reports can reveal legitimate services you forgot to document, forwarding behavior, configuration errors, and apparent unauthorized sending.
Track the policy currently published, the reporting destination, the date of the last review, and the number and type of sources appearing in reports. Aggregate reports are usually more practical for recurring review than trying to inspect every individual message.
Cadence and checkpoints
Use a light monthly or quarterly review for an established domain, with an additional checkpoint after any email-platform change. The right cadence depends on how many services send mail and how important the domain is to your business.
At each recurring review
- Confirm that the SPF, DKIM, and DMARC records still exist at the expected hostnames.
- Check for accidental duplicate SPF records, malformed values, or a record that was replaced during a DNS change.
- Review DMARC aggregate reports for new sending sources and authentication failures.
- Match every recognized source to a current provider or application owner.
- Investigate unfamiliar sources before changing the policy or adding authorization.
- Send a controlled test from each important platform and inspect the received message’s authentication results.
After a provider change
Run the checklist whenever you add a newsletter tool, migrate mailboxes, change website hosting, launch a transactional email service, rebrand a domain, or retire an application. Publish the new provider’s records, verify them, send tests, and review reports before removing the old configuration. DNS changes may take time to appear consistently, so avoid making several overlapping edits without documenting what changed and when.
Keep a simple change log with the date, person responsible, provider, DNS records changed, test result, and rollback plan. This prevents a future administrator from treating an undocumented record as mysterious or permanently required.
How to interpret changes
A failed authentication result is a signal to investigate, not an automatic reason to block every message. First identify the sending source, then determine whether it is legitimate. A legitimate source can fail because its DNS record is missing, its DKIM signing was disabled, its envelope-from domain changed, or its message was forwarded. An unfamiliar source may indicate an abandoned integration, a misconfigured application, or an attempt to impersonate the domain.
Pay particular attention to alignment. DMARC considers whether the authenticated SPF or DKIM domain corresponds appropriately with the visible From domain. A service may pass SPF or DKIM while still failing DMARC alignment if it authenticates with a different domain. Ask the provider which domain it uses for signing and return-path or envelope-from processing, then confirm the result in a delivered message or report.
Policy progression should follow evidence from your reports and tests. Many domain owners begin with p=none to observe traffic, correct legitimate sources, and understand the reporting flow. Once authorized sending is documented and failures are understood, they can evaluate a stricter policy such as quarantine or reject, subject to the needs of their organization and providers. Changes should be deliberate, recorded, and tested; a strict policy introduced before inventory work can affect legitimate mail.
Do not treat the presence of a DMARC record as proof that spoofing is eliminated. Protect mailbox accounts with strong, unique credentials and multi-factor authentication where available, restrict who can edit DNS, maintain WHOIS privacy where appropriate, and train staff to inspect suspicious messages. Email authentication is one layer of domain security, not the entire defense.
When to revisit
Schedule a monthly or quarterly review, and revisit the setup immediately when reports show a new source, messages begin failing, or a provider changes its authentication instructions. Also review the records when you:
- change your domain registrar, DNS host, website host, or mail provider;
- add or remove a marketing, support, billing, or transactional email service;
- move sending from the main domain to a subdomain or introduce a new brand;
- change DKIM selectors, return-path settings, or sending infrastructure;
- receive a warning about spoofing, suspicious mail, or unexpected DMARC activity;
- change the DMARC policy or reporting destination.
For a practical next step, create a one-page authentication register today: list your sending services, copy the provider-approved SPF and DKIM requirements, record the published DMARC policy, and assign a review date. At the next checkpoint, compare that register with DNS and DMARC reports. When every legitimate sender is accounted for and test messages pass with the intended alignment, decide whether your current policy still matches your risk tolerance. Recheck the register after every email-platform change rather than waiting for a delivery problem to reveal an outdated record.