Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To reduce spoofed mail sent in your domain’s name, configure all three controls in sequence: authorize real sending systems with SPF, enable DKIM signing for each sender, then publish a DMARC policy for the domain people see in the From header. Start DMARC in monitoring mode, use its reports to find missing or misaligned senders, and only then request stricter treatment of failures. SPF alone does not authenticate the visible From address; DKIM supplies a signed domain identity; DMARC checks whether either authenticated identity aligns with that visible domain.

The exact DNS values are different for every mailbox, marketing, ticketing, and transactional-mail provider. Use each provider’s current setup instructions rather than copying a record from another domain, and validate the resulting DNS records before changing policy.

What do SPF, DKIM and DMARC each do?

They are complementary DNS-published email-authentication mechanisms, not interchangeable alternatives. Each examines a different identity or provides a different action for the domain owner.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Mechanism What it authenticates or evaluates What you publish What it does not prove
SPF Whether a host is authorized to use the SMTP envelope identity in MAIL FROM or the HELO/EHLO identity A DNS TXT policy listing authorized sending hosts or provider mechanisms It does not, by itself, authenticate the visible From header
DKIM Whether a message carries a valid cryptographic signature for a domain A DNS public key at the selector specified by the sender A valid signature does not prove the message content is safe or truthful
DMARC Whether the visible RFC 5322 From domain aligns with an authenticated SPF or DKIM domain A DNS TXT policy describing handling preferences and optional reporting destinations It does not authenticate the address’s local part or guarantee delivery behavior at every receiver

The IETF’s SPF specification (RFC 7208), DKIM specification (RFC 6376), and current DMARC specification (RFC 9989) define these separate roles. RFC 9989 recommends using both SPF and DKIM as the underlying authentication mechanisms for DMARC.

What should I gather before changing DNS?

Make an inventory first. A domain can have several legitimate mail streams, and a record that covers only the corporate mailbox provider can cause invoices, password resets, newsletters, support replies, or monitoring alerts to fail authentication.

  1. List every service that sends as the domain. Include the organization’s mailbox service, website or application mail, customer-support and ticketing systems, marketing platforms, billing systems, contact forms, and any security or monitoring tools.
  2. Record the visible From domains. Note whether each service sends as example.com, a subdomain such as mail.example.com, or a provider-owned domain. DMARC alignment is evaluated against the domain shown to recipients.
  3. Identify the SMTP envelope identity. SPF evaluates the MAIL FROM (also called the return-path) or the HELO/EHLO identity, which can differ from the visible address.
  4. Ask each provider for its current SPF and DKIM instructions. Capture the exact hostnames, selectors, TXT values, CNAME targets, verification steps, and any requirement to use a custom return-path or signing domain.
  5. Check who hosts DNS and who can edit it. You need permission to create TXT records and, for some DKIM implementations, CNAME records. Lower DNS TTLs can make planned changes easier to roll back, but follow your DNS host’s normal change process.

Keep this inventory as an operational document. When a service is added, removed, or its sending domain changes, update the authentication records and DMARC review process at the same time.

How do I configure SPF?

SPF authorizes the systems that send mail for an SMTP identity. Publish one SPF policy for each relevant domain; do not create multiple competing SPF TXT records at the same name.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Obtain provider-specific authorization

For every legitimate sender, obtain the provider’s published include: domain, authorized IP range, or other mechanism. A provider may ask you to authorize its infrastructure with an include; another may provide fixed addresses. The correct value depends on the services you actually use.

2. Publish the record at the correct DNS name

An SPF record is a TXT value beginning with v=spf1. A schematic example is:

example.com.  TXT  "v=spf1 include:provider.example ip4:203.0.113.10 -all"

This is an illustration of syntax, not a record to copy. Replace the provider mechanism and address only with values supplied for your environment. The final mechanism (often a failure qualifier) expresses what should happen to senders not authorized by the policy; use the value your mail provider and risk policy support.

3. Avoid common SPF construction errors

  • Do not publish two separate SPF records for the same domain. Merge authorized mechanisms into one policy.
  • Do not authorize a service that never sends for you. Broad records increase the set of hosts allowed to use the SMTP identity.
  • Do not assume SPF covers the visible From address. SPF’s pass is attached to the envelope or HELO identity. DMARC must later check alignment with the visible domain.
  • Watch DNS lookup limits. Provider instructions can chain several include mechanisms. Ask the provider how its record is designed and keep the policy within SPF processing limits rather than adding unrelated includes.
  • Account for subdomains deliberately. A policy at the organizational domain and a policy at a subdomain can have different scope. Publish records where the provider’s instructions and your From domains require them.

4. Verify the published value

Query the authoritative DNS answer, not only a cached view in a control panel. Confirm that the TXT response contains the intended single SPF policy and that each provider mechanism resolves. Then send a controlled message through each legitimate service and inspect the authentication results supplied by the receiving system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I enable DKIM?

DKIM adds a cryptographic signature to outgoing messages. The sending service keeps the private key and signs mail; recipients retrieve the matching public key from DNS using a selector and signing domain.

  1. Enable DKIM in the sending service. Select the domain or custom signing identity that should appear in the DKIM result. If the service offers a choice between a provider-owned identity and your domain, choose the identity that can align with the visible From domain.
  2. Copy the selector and DNS value exactly. Providers commonly supply a selector and either a TXT public key at selector._domainkey.example.com or CNAME records that delegate key publication. Preserve punctuation, quotation handling, and long-key wrapping as required by your DNS host.
  3. Publish the key at the specified name. Do not put the selector at the organizational domain root, and do not change a provider’s selector unless its documentation explicitly supports that workflow.
  4. Activate signing after DNS verification. Some services have a separate “verify,” “enable,” or “start signing” action. Complete it only after the provider can resolve the DNS key.
  5. Confirm a real message carries a DKIM result. Inspect a message header or a recipient’s authentication summary for a DKIM pass and the expected d= signing domain. A key existing in DNS is not enough if the service is not actually signing.

Rotate keys according to the sender’s instructions. Keep the old public key available during the overlap period required by the provider so messages signed before the change can still be verified. Remove retired selectors only after no in-flight or delayed mail needs them.

How do I publish a DMARC policy?

DMARC is published as a TXT record at _dmarc beneath the domain used in the visible From header. It tells receivers how to treat messages that fail DMARC alignment and can request aggregate or failure reports.

Start with visibility

Begin with a monitoring policy while you learn the domain’s real mail flows. A schematic record is:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"

Use a report mailbox that is monitored and able to receive the volume generated by your domains. Providers may require additional authorization when reports are sent to a mailbox outside the protected domain. The exact tags and destinations should follow the current DMARC specification and your reporting provider’s instructions.

Move to enforcement deliberately

After reports show that legitimate streams pass SPF or DKIM with alignment, consider a policy that asks receivers to quarantine or reject failures. These are preferences, not a universal command: receiving systems apply local policy, and their treatment can differ. Change policy in stages, watch reports after each change, and keep a rollback path.

A DMARC record can also specify alignment modes. Under relaxed alignment, the authenticated domain and visible Author Domain may be different subdomains of the same organizational domain. Under strict alignment, the domains must be identical. For example, a DKIM signing domain of mail.example.com can align with a visible news.example.com in relaxed mode, while strict mode requires the exact same domain string as the visible From domain.

How does DMARC alignment determine a pass?

DMARC does not require both SPF and DKIM to pass. It requires at least one authenticated identifier to align with the visible Author Domain.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. The receiver reads the domain in the RFC 5322 From header—the address recipients see.
  2. It evaluates SPF for the SMTP envelope identity and DKIM for each valid signature.
  3. It compares the authenticated SPF domain and the authenticated DKIM signing domain with the visible From domain using relaxed or strict alignment.
  4. If either aligned mechanism passes, DMARC passes. If neither aligns and passes, the receiver consults the published DMARC preference and its own local policy.

This explains why a message can show an SPF pass and still fail DMARC: the envelope domain may belong to a provider and not align with the visible From domain. Conversely, DKIM can preserve DMARC alignment when forwarding changes the SMTP envelope, provided the signature remains valid and the signing domain aligns.

How should I use DMARC reports before enforcing?

Reports turn an authentication policy into an inventory of real traffic. Review them for source systems, authentication results, alignment, volume, and unexpected senders.

  • Map each source to a business owner. A sending IP or provider name is useful only when you can identify the application or team responsible.
  • Separate legitimate but misconfigured mail from unauthorized mail. A known marketing service that fails alignment needs configuration work; an unfamiliar source may require investigation or access removal.
  • Fix the sender, not the report. Add the provider’s SPF authorization, enable DKIM, or change the visible From and signing identity so one mechanism aligns. Do not simply broaden SPF to silence a failure.
  • Check both organizational and subdomain behavior. A campaign may use a subdomain while employee mail uses the parent domain. Review each visible From domain.
  • Allow for reporting delay. Aggregate reports are periodic and may not represent the latest change immediately. Keep monitoring through at least a normal business and campaign cycle.

Once legitimate streams consistently authenticate and align, tighten the policy in a controlled change window. Continue reviewing reports after enforcement because new applications, acquisitions, domain changes, and provider migrations can reintroduce failures.

What happens with forwarding and mailing lists?

Forwarding and message modification can affect authentication. A forwarder may change the SMTP envelope, which can break SPF for the original sender. A mailing list or gateway may alter headers or body content, which can invalidate a DKIM signature. The result depends on the sender, the intermediary, and the receiver’s implementation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use reports and representative mail paths to find these cases. Preserve a valid aligned DKIM signature where possible, configure the intermediary according to its standards guidance, and avoid promising that SPF, DKIM, and DMARC will prevent every impersonation or phishing message. They authenticate domain-level identities and policy signals; they do not establish that the local part of an address or the message content is legitimate.

What are the most common configuration failures?

Symptom Likely cause Remedy
SPF passes but DMARC fails The SPF-authenticated envelope domain does not align with the visible From domain Configure an aligned return-path or make DKIM signing align; verify the visible From domain used by the service
DKIM is “enabled” but no DKIM result appears The service was not activated after DNS verification, or the message used a different stream Check the provider’s signing status and inspect a message from the exact sending workflow
DKIM fails after a relay or list An intermediary changed signed headers or content Identify the modifying hop, preserve the signature where supported, and evaluate whether SPF can provide an aligned path
DMARC reports show an unknown source An overlooked application, old provider, compromised credential, or unauthorized sender Identify the owner, confirm whether it is legitimate, then configure or disable it; do not authorize it blindly
Receivers behave differently DMARC is a published preference and receivers apply their own local handling Use reports and recipient-specific evidence; do not assume one receiver’s treatment is universal
DNS checks show multiple SPF policies Separate TXT records were created for different providers Combine authorized mechanisms into one SPF policy and remove duplicates

How do I validate a change safely?

  1. Check authoritative DNS. Confirm the SPF TXT value, each DKIM selector and key, and the DMARC TXT value at the exact names requested by the providers.
  2. Send through every legitimate path. Use mailbox, application, marketing, support, and transactional workflows—not only a test from the primary mailbox.
  3. Inspect authentication results. Confirm SPF and DKIM pass where expected and that at least one result aligns with the visible From domain.
  4. Review aggregate reports. Look for sources you missed, alignment failures, and changes in volume before tightening policy.
  5. Change one control at a time. A staged rollout makes it possible to identify whether a failure came from SPF authorization, DKIM signing, alignment, or the DMARC policy itself.

DNS caching means a newly published key or policy may not be visible everywhere at once. Record the change time, previous value, provider, and rollback value so an operator can restore the prior configuration if a critical mail stream is disrupted.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How should these records be maintained?

Authentication is an ongoing configuration, not a one-time switch. Revisit the inventory whenever a provider is added, a sending domain changes, a website is migrated, or a marketing and transactional platform is replaced.

  • Keep ownership and renewal information for every sending service.
  • Review SPF mechanisms and remove services that no longer send mail.
  • Track DKIM selectors and planned key rotations; retire old keys only after the provider’s overlap period.
  • Monitor DMARC reports for new sources and alignment drift.
  • Document whether each subdomain uses relaxed or strict alignment and why.
  • Recheck internationalized domains and mail paths against the applicable guidance in RFC 8616, which updates SPF, DKIM, and DMARC handling for internationalized mail.

The historical RFC 7489 remains useful background, but current implementation decisions should follow the current DMARC specification and the sending services’ documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What can SPF, DKIM and DMARC not do?

They do not authenticate a human identity, verify the local part before the @ sign, or inspect whether a message’s claims and attachments are benign. A phisher can send from a different domain that has valid authentication, and a compromised legitimate account can produce authenticated malicious mail. Use authentication results as one input to filtering, user education, access control, and incident response—not as a guarantee that every authenticated message is safe.

They also do not force identical delivery decisions. A published DMARC policy is the domain owner’s requested handling preference; each receiving system can combine it with local reputation, content analysis, forwarding behavior, and other controls.

How we picked the configuration sequence

The sequence follows the protocol dependencies and the operational risk: inventory real senders first; authorize their SMTP identities with SPF; publish and activate DKIM for each stream; start DMARC in monitoring mode; use reports to correct alignment and omissions; then request stricter handling. This approach reflects the roles defined in RFC 7208, RFC 6376, and RFC 9989 and avoids treating a generic DNS example as a provider-specific answer.

What is the practical outcome?

When configured correctly, SPF records tell receivers which infrastructure may use your SMTP identities, DKIM lets them validate a domain-associated signature, and DMARC connects those results to the domain visible to recipients. The strongest deployment is therefore not a single “SPF record” or a DMARC-only switch: it is a maintained inventory, provider-specific SPF and DKIM configuration, aligned From identities, monitored reports, and a policy that is tightened only after legitimate mail is accounted for.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Do I need SPF if my domain already uses DKIM?

Yes. DKIM and SPF authenticate different paths, and the current DMARC specification recommends using both beneath DMARC. SPF can provide an aligned authentication path when a forwarding or relay changes the SMTP envelope, while DKIM can remain valid when the envelope is altered.

Can I use one SPF record for every subdomain?

Not automatically. SPF is published for a particular domain name, and each subdomain can have its own sending services and policy. Check the visible From domains and each provider’s instructions before deciding where records belong.

Why did a forwarded message fail SPF even though the original sender was legitimate?

Forwarding can replace the original SMTP envelope identity with the forwarder’s identity, so the original SPF authorization no longer matches. A valid aligned DKIM signature may still allow DMARC to pass, but intermediaries can also modify messages and invalidate DKIM.

Should I publish a reject policy immediately?

Usually begin with a monitoring policy so reports reveal legitimate senders and alignment problems. Move to quarantine or reject only after those streams authenticate consistently, and remember that receivers apply their own local handling.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does a DMARC pass mean the email is safe to open?

No. DMARC authenticates domain-level identities and checks alignment; it does not validate the address local part, message claims, links, or attachments. Continue using content filtering, account security, and user verification practices.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of December 6, 2026 11:14 am GMT.