Email deliverability depends on more than sending a message from a valid email address. Receiving mail servers need ways to determine whether a sender is authorized to use a particular domain, whether the message has been altered in transit, and how to handle messages that fail authentication.
Three protocols help establish this trust: Sender Policy Framework (SPF), DomainKeys Identified Mail (DKIM), and Domain-based Message Authentication, Reporting, and Conformance (DMARC).
Together, they help protect domains against email spoofing, impersonation, and phishing. They also help legitimate senders meet modern mailbox-provider requirements and establish a more reliable sending identity.
Understanding how SPF, DKIM, and DMARC work individually and together makes it easier to configure a domain correctly, investigate authentication failures, and maintain reliable email delivery.
What Are SPF, DKIM and DMARC?
SPF, DKIM, and DMARC are email authentication protocols that use DNS records and message verification to help receiving servers determine whether an email is legitimately associated with its claimed sending domain.
Each protocol addresses a different part of email authentication.
| Protocol | Full name | Primary purpose |
| SPF | Sender Policy Framework | Identifies which mail servers are authorized to send email using a domain. |
| DKIM | DomainKeys Identified Mail | Uses a cryptographic signature to verify that selected message content and headers have not been improperly altered. |
| DMARC | Domain-based Message Authentication, Reporting, and Conformance | Checks whether SPF or DKIM authentication aligns with the domain shown in the visible From address and communicates the domain owner’s handling policy. |
These protocols are complementary rather than interchangeable.
SPF identifies authorized sending infrastructure. DKIM provides message-level cryptographic authentication. DMARC connects the authentication results to the domain recipients see when they read an email.
For example, a business sending an invoice from [email protected] needs to establish that its email service is authorized to send messages for its domain and that the visible sender domain is properly authenticated.
What Is SPF (Sender Policy Framework)?
Sender Policy Framework is an email authentication protocol that allows a domain owner to specify which servers are authorized to send emails using that domain.
SPF information is published as a DNS TXT record. When a receiving mail server evaluates an incoming message, it checks the sender’s IP address against the SPF policy associated with the relevant envelope-sender domain.
If the sending server is authorized under that policy, the SPF check can return a pass result. Otherwise, it may return fail, softfail, neutral, or another result depending on the record and DNS conditions.
How SPF works
Consider a business that sends email through a hosted email provider.
The business owns example.com, while its email provider operates the servers that transmit outgoing messages.
The business publishes an SPF record identifying that provider as an authorized sending source.
When an email arrives, the receiving server:
- Identifies the relevant SMTP envelope-sender domain.
- Retrieves the SPF TXT record for that domain.
- Identifies the IP address of the sending server.
- Evaluates whether that IP address is authorized by the SPF policy.
- Returns an SPF authentication result.
The receiving server can then use this result as part of its broader email security assessment.
Example of an SPF DNS record
An illustrative SPF record might look like this:
v=spf1 include:spf.your-email-provider.example -all
This example contains three important elements:
| Component | Meaning |
| v=spf1 | Identifies the SPF version. |
| include: | References another domain’s SPF policy for evaluating an authorized sending source. |
| -all | Returns an SPF fail result for sources that do not match the preceding mechanisms. |
The actual include value must come from your email provider. The example above is not a ready-to-use configuration.
Common SPF qualifiers
SPF mechanisms can use different qualifiers to describe how a matching or non-matching sending source should be evaluated.
| Qualifier | Result | Meaning |
| + | Pass | Explicitly authorizes a matching source. It is also the default qualifier. |
| – | Fail | Explicitly fails a matching policy check. |
| ~ | Softfail | Indicates that the source is not authorized, but with a weaker failure result. |
| ? | Neutral | Makes no assertion about whether the source is authorized. |
For example, -all indicates a stronger authorization policy than ~all. The correct choice depends on whether all legitimate sending sources have been identified and configured.
Important SPF limitations
SPF has several technical limitations that domain administrators need to understand.
SPF does not directly authenticate the visible From address.
SPF primarily evaluates the SMTP MAIL FROM identity, commonly associated with the Return-Path address. This can differ from the address displayed in an email application.
DMARC addresses this distinction through alignment checks.
Email forwarding can cause SPF failures.
When an email is forwarded, the forwarding server may transmit the message using an IP address that is not authorized by the original sender’s SPF policy. Consequently, the forwarded message can fail SPF even though the original sender was legitimate.
SPF has a DNS lookup limit.
RFC 7208 limits the total number of DNS-query-causing terms during SPF evaluation to 10. Mechanisms such as include, a, mx, ptr, and exists, along with the redirect modifier, contribute to this limit.
Exceeding the limit can produce a permanent SPF error.
A domain should not publish multiple SPF records for the same hostname.
If a domain has multiple applicable SPF records, SPF evaluation can return a permanent error. When adding a new email service, update the existing SPF policy rather than blindly publishing another one.
What Is DKIM (DomainKeys Identified Mail)?
DomainKeys Identified Mail is an email authentication protocol that uses cryptographic signatures to associate an outgoing message with a signing domain.
Unlike SPF, which checks the sending server, DKIM verifies a signature attached to the email.
The sending system uses a private cryptographic key to generate the signature. The corresponding public key is published in DNS so that receiving mail servers can retrieve it and verify the message.
How DKIM works
Suppose a company sends an email from [email protected].
Its email service has been configured to sign outgoing messages using the company’s DKIM private key.
The receiving server can then:
- Locate the DKIM-Signature header in the incoming email.
- Identify the signing domain and selector from the signature.
- Retrieve the corresponding public key from DNS.
- Recalculate the relevant message hashes.
- Verify the cryptographic signature.
- Return a DKIM authentication result.
A successfully verified signature indicates that the relevant signed message components remain consistent with the signing process and that the signer had access to the corresponding private key.
Understanding DKIM selectors
A DKIM selector identifies which public key the receiving server should retrieve.
For example, a DKIM signature might contain:
d=example.com
s=selector1
The receiving mail server looks for the corresponding public key at:
selector1._domainkey.example.com
The selector allows a domain to use different signing keys for different email systems or to replace keys without changing the entire domain’s DKIM namespace.
Private and public keys
DKIM relies on a public-key cryptographic arrangement.
| Key | Purpose |
| Private key | Used by the authorized sending system to generate DKIM signatures. |
| Public key | Published through DNS and used by receiving servers to verify signatures. |
The private key should remain protected within the sending infrastructure. The public key can be retrieved through DNS.
DKIM does not encrypt the email message. It provides authentication and integrity verification for the signed components.
What causes DKIM authentication failures?
DKIM can fail for several reasons:
- The sending service has not been configured to sign outgoing messages.
- The DNS public-key record is missing or incorrect.
- The selector in the message does not match the published DNS record.
- The private and public keys do not correspond.
- An intermediary modifies signed message content or headers after signing.
- The message contains an invalid or corrupted signature.
For example, a mailing list might add a footer or modify the subject line before forwarding a message. Depending on which components were signed and how the message was modified, the original DKIM signature may no longer validate.
One possible solution is to configure the intermediary to sign the message again after making modifications.
What Is DMARC (Domain-based Message Authentication, Reporting, and Conformance)?
DMARC is an email authentication and reporting protocol that builds on SPF and DKIM.
Its primary purpose is to help domain owners protect the domain shown in the visible From address against unauthorized use.
SPF and DKIM can independently authenticate different domains. DMARC checks whether at least one successfully authenticated domain aligns with the domain in the visible From address.
It also allows domain owners to communicate how receiving servers should handle messages that fail DMARC authentication.
How DMARC works
Consider an incoming message containing:
From: [email protected]
The receiving server performs SPF and DKIM authentication checks and then evaluates their alignment with example.com.
DMARC passes when at least one of the following conditions is satisfied:
- SPF passes and the authenticated SPF domain aligns with the visible From domain.
- DKIM passes and the signing domain aligns with the visible From domain.
If neither mechanism produces a successful aligned result, DMARC fails.
This distinction is important because an email can pass SPF or DKIM individually and still fail DMARC.
Understanding DMARC alignment
DMARC supports two alignment modes: relaxed and strict.
| Alignment mode | Description |
| Relaxed | The authenticated domain and visible From domain share the same organizational domain. |
| Strict | The authenticated domain must exactly match the visible From domain. |
For example, consider:
- Visible From domain: example.com
- SPF-authenticated domain: mail.example.com
- DKIM signing domain: example.com
With relaxed SPF alignment, mail.example.com can align with example.com because they share the same organizational domain.
With strict SPF alignment, those domains do not match exactly.
The alignment mode is configured separately for SPF and DKIM using the aspf and adkim DMARC tags.
Relaxed alignment is commonly sufficient for ordinary email deployments, while strict alignment may be appropriate when an organization needs tighter control over the domains used to send messages.
DMARC DNS record example
A basic DMARC TXT record for monitoring might look like this:
v=DMARC1; p=none; rua=mailto:[email protected]
The record is published at:
_dmarc.example.com
Its components have the following meanings:
| Tag | Purpose |
| v=DMARC1 | Identifies the DMARC version. |
| p=none | Requests no additional handling action based on the DMARC failure policy. |
| rua= | Specifies where aggregate DMARC reports should be sent. |
The reporting address must be configured to receive the reports, and external reporting destinations may require additional DNS authorization.
Understanding DMARC policies
DMARC defines three principal domain-owner assessment policies.
| Policy | Meaning | Typical purpose |
| p=none | Requests monitoring without changing normal handling based on the DMARC policy. | Initial deployment and monitoring. |
| p=quarantine | Indicates that failing messages should be treated as suspicious. | Gradual enforcement after reviewing legitimate mail sources. |
| p=reject | Indicates that failing messages should be rejected. | Stronger protection after authentication has been properly configured. |
These policies are instructions or preferences communicated by the domain owner. Receiving mail servers retain discretion over final message handling.
Understanding DMARC reports
DMARC reporting helps domain owners understand how their domains are being used for email.
The rua tag requests aggregate reports, which typically provide information such as:
- Sending IP addresses.
- Message volumes.
- SPF authentication results.
- DKIM authentication results.
- DMARC alignment results.
- Requested and applied message dispositions.
These reports help identify legitimate sending services that have not been configured correctly, as well as potentially unauthorized senders.
Aggregate reports are particularly useful during the initial monitoring stage.
The ruf tag can request more detailed failure reports. However, participation varies between receiving providers, and message-specific reports can create privacy concerns. Aggregate reporting is generally a more practical starting point.
How SPF, DKIM and DMARC Work Together
SPF, DKIM, and DMARC provide complementary authentication checks.
Consider a business that sends an invoice through a third-party email service.
The company uses example.com as its visible sender domain. The third-party service transmits the email using its own mail servers, while DKIM signs the message with the company’s domain.
The receiving server checks the message using all three protocols.
| Stage | What happens | Expected outcome |
| SPF | The sending IP is checked against the envelope-sender domain’s SPF policy. | SPF passes if the IP is authorized. |
| DKIM | The message signature is checked against the public key in DNS. | DKIM passes if the signature verifies. |
| DMARC | The authenticated SPF and DKIM domains are compared with the visible From domain. | DMARC passes if at least one passing authentication result is aligned. |
Consider a different situation where SPF passes for an email service’s own domain, but DKIM also signs using that unrelated domain.
The visible From address is still [email protected].
Even though SPF and DKIM may individually pass, neither authenticated domain aligns with example.com. The message therefore fails DMARC.
This example demonstrates why configuring SPF and DKIM is not enough. Their domains must also be aligned correctly.
How to Set Up SPF, DKIM and DMARC
The configuration process depends on your domain provider and email-sending platforms. However, the general deployment sequence is similar across most email systems.
Step 1: Identify every service that sends email for your domain
Before modifying DNS records, identify all legitimate sending sources.
These might include:
- Google Workspace or Microsoft 365.
- Email marketing platforms.
- Transactional email providers.
- Customer relationship management systems.
- Website contact forms.
- E-commerce notification systems.
- Customer support platforms.
- Automated business applications.
This step is essential because an overlooked sending service can cause authentication failures after stricter policies are introduced.
Step 2: Configure SPF
Access your domain’s DNS management panel.
Check whether an SPF TXT record already exists.
If it does, review the existing configuration before making changes. Add the sending sources authorized by your email providers using their official SPF instructions.
Do not create multiple SPF records for the same hostname.
Also check the DNS lookup limit. Adding too many third-party include mechanisms can cause SPF evaluation problems.
Step 3: Enable DKIM
Open the administration dashboard of your email provider.
Find its DKIM or email authentication settings.
The provider will generally supply information such as:
- DKIM selector.
- DNS record hostname.
- Public key or CNAME destination.
- Configuration or verification status.
Publish the provided DNS records without changing the selector or target values.
Once DNS changes have propagated, return to the email provider’s administration panel and verify that DKIM signing is active.
Repeat this process for additional sending platforms that support custom-domain DKIM signing.
Step 4: Publish a DMARC record
After configuring SPF and DKIM, create a DMARC TXT record at the appropriate DNS hostname.
A monitoring configuration can use:
Host: _dmarc
Type: TXT
Value:
v=DMARC1; p=none; rua=mailto:[email protected]
Replace the example domain and reporting address with your own values.
Start with monitoring so you can identify legitimate messages that are failing authentication or alignment checks.
Step 5: Review authentication reports
Monitor aggregate DMARC reports and investigate the sending sources they identify.
Pay attention to:
- Unknown sending IP addresses.
- SPF failures.
- DKIM failures.
- Domain alignment problems.
- New services sending email without authentication.
- Legitimate messages affected by forwarding or intermediary systems.
Correct any configuration issues before moving toward stronger enforcement.
Step 6: Move toward DMARC enforcement
Once legitimate sending services consistently authenticate and align correctly, consider moving from p=none to p=quarantine.
Continue monitoring to identify unexpected failures.
After verifying that legitimate email sources are covered and that the remaining failures are appropriately understood, consider using p=reject.
Do not introduce a strict rejection policy simply because SPF and DKIM records exist. The objective is to protect the domain without accidentally blocking legitimate business communications.
Current Email Authentication Requirements from Major Providers
Major mailbox providers have introduced authentication requirements to reduce spoofing, phishing, and unwanted email.
The exact requirements depend on the receiving platform and the sender’s volume.
| Mailbox provider | Important authentication requirements |
| Gmail | All senders to personal Gmail accounts must implement SPF or DKIM. Bulk senders must implement SPF, DKIM, and DMARC with the required alignment. |
| Yahoo Mail | All senders must implement SPF or DKIM. Bulk senders must implement both SPF and DKIM, along with DMARC and alignment. |
| Microsoft Outlook.com | High-volume senders must have passing SPF and DKIM checks, a DMARC record, and at least one aligned authentication result. |
Google classifies senders reaching approximately 5,000 messages to personal Gmail accounts within 24 hours as bulk senders. Messages from the same primary domain are counted together, and bulk-sender status is permanent once assigned.
Microsoft also applies its high-volume authentication requirements at 5,000 or more messages to its consumer email services using the same domain in the From address. Yahoo does not publish a fixed numerical bulk-sender threshold in its sender FAQ.
Importantly, authentication requirements are only part of broader sender policies. Providers also consider factors such as sending reputation, spam complaints, message formatting, and unsubscribe functionality.
For that reason, configuring SPF, DKIM, and DMARC should be considered a fundamental email-sending requirement rather than a complete deliverability strategy.
Common SPF, DKIM and DMARC Configuration Mistakes
Authentication failures often result from small configuration problems rather than complicated technical issues.
Publishing multiple SPF records
A common mistake is creating a new SPF TXT record whenever another email platform is connected.
This can cause SPF evaluation to return a permanent error.
Maintain one applicable SPF policy per hostname and incorporate the authorization requirements of all legitimate sending services.
Forgetting third-party email services
A business may configure its primary business email correctly but overlook email sent through its website, marketing platform, or transactional email provider.
These services should also be authenticated where possible.
Exceeding SPF DNS lookup limits
Adding too many include, a, and mx mechanisms can exceed the SPF lookup limit.
Review the complete SPF evaluation chain rather than counting only the entries directly visible in your DNS record.
Configuring DKIM without verifying alignment
A DKIM signature can pass while DMARC fails.
This can happen when the signing domain does not align with the visible From domain.
Check the d= value in the DKIM signature and compare it with the domain in the From address.
Enforcing DMARC too early
Moving directly to p=reject without checking legitimate sending sources can cause genuine emails to be rejected.
Use aggregate reporting to understand actual sending behavior before introducing stricter enforcement.
Assuming authentication guarantees inbox placement
SPF, DKIM, and DMARC authenticate domain usage. They do not certify that the message is useful, wanted, safe, or suitable for the inbox.
Mailbox providers still evaluate reputation, sending behavior, content, recipient engagement, and other security signals.
How to Troubleshoot SPF, DKIM and DMARC Failures
When an email fails authentication, begin by checking its full message headers.
Many email applications provide an option to view the original message or show detailed headers.
Look for the Authentication-Results header, which may contain results such as:
Authentication-Results:
spf=pass;
dkim=pass;
dmarc=pass;
The exact header format varies between receiving systems.
The following table explains some common problems.
| Authentication result | Potential cause | What to investigate |
| spf=fail | Sending IP is not authorized. | Check the envelope-sender domain and SPF record. |
| spf=permerror | Invalid SPF configuration or excessive DNS lookups. | Check for duplicate records, syntax errors, and lookup limits. |
| dkim=fail | Invalid signature or incorrect DNS public key. | Check the selector, DNS record, and message modifications. |
| dmarc=fail | Neither SPF nor DKIM provides a successful aligned result. | Check authentication and domain alignment. |
| SPF passes but DMARC fails | SPF domain does not align with the visible From domain, and no aligned DKIM signature passes. | Check Return-Path and DKIM signing domains. |
| DKIM passes but DMARC fails | DKIM signing domain does not align with the visible From domain, and SPF provides no aligned pass. | Check the DKIM d= domain and SPF results. |
What happens when email forwarding breaks authentication?
Forwarding can change the sending IP address, which can cause SPF to fail.
If the message is modified during forwarding, its original DKIM signature may also become invalid.
Authenticated Received Chain (ARC) helps preserve information about earlier authentication results when messages pass through intermediary systems. Receiving providers can use these results when deciding how to handle forwarded email.
ARC does not replace SPF, DKIM, or DMARC. It provides additional information that can help with authentication across forwarding and message-modification scenarios.
Important Changes to DMARC Standards in 2026
Email authentication standards continue to evolve.
In May 2026, the IETF published a revised DMARC specification series:
- RFC 9989 defines the DMARC protocol.
- RFC 9990 specifies aggregate reporting.
- RFC 9991 specifies failure reporting.
These publications replace the earlier consolidated DMARC specification, RFC 7489.
The revised protocol introduces changes to policy discovery and organizational-domain determination, including a DNS Tree Walk mechanism. It also replaces the older pct policy tag with a t testing tag.
These changes are particularly relevant to organizations managing complex domain structures, multiple subdomains, and email infrastructure that relies on different DMARC implementations.
Older and newer implementations can potentially interpret policy discovery differently. Organizations with complex email environments should review their DMARC configuration and implementation compatibility rather than relying exclusively on older setup tutorials.
For ordinary domain owners, the fundamental principles remain the same: configure legitimate sending sources, maintain valid DKIM signatures, establish DMARC alignment, and monitor authentication results.
Frequently Asked Questions
Do I need SPF, DKIM and DMARC for my domain?
Yes, implementing all three is the recommended approach for most organizations that send email using a custom domain.
SPF and DKIM provide complementary authentication mechanisms, while DMARC checks their alignment with the visible From domain and provides reporting and policy controls.
Some providers have different minimum requirements depending on sending volume, but configuring all three provides broader protection and helps meet modern sender expectations.
Does SPF replace DKIM?
No. SPF and DKIM perform different authentication functions.
SPF checks whether a sending source is authorized to use the relevant envelope-sender domain. DKIM uses a cryptographic signature to verify selected message components.
Using both gives receiving servers more than one way to authenticate legitimate email.
Does DMARC improve email deliverability?
DMARC can support more reliable email delivery by helping receiving servers distinguish authorized domain usage from spoofed messages.
It is also required for certain bulk-sender programs.
However, DMARC does not guarantee inbox placement. Mailbox providers continue evaluating spam complaints, sender reputation, content, and other delivery signals.
Can an email pass SPF but fail DMARC?
Yes.
An email may pass SPF because its sending IP is authorized by the envelope-sender domain. However, if that authenticated domain does not align with the visible From domain, SPF cannot provide an aligned DMARC pass.
DMARC can still pass if the message has a valid, aligned DKIM signature.
How long does SPF, DKIM or DMARC configuration take to work?
The timing depends on DNS propagation, record caching, the email provider, and the receiving system.
Some changes become visible relatively quickly, while others take longer because DNS resolvers may retain older records until their time-to-live expires.
Always verify the published DNS records and test actual messages rather than assuming a configuration is active immediately after saving it.
Is a DMARC policy of p=none sufficient?
A p=none policy is useful for monitoring and is accepted under several major mailbox-provider bulk-sender requirements.
However, it does not request quarantine or rejection of messages that fail DMARC.
Organizations seeking stronger domain protection should investigate failures and gradually move toward quarantine or rejection once legitimate email sources are properly authenticated.
Conclusion
SPF, DKIM, and DMARC form the foundation of modern domain-based email authentication.
SPF identifies authorized sending sources, DKIM verifies cryptographic signatures, and DMARC checks whether successful authentication aligns with the domain shown to recipients.
Implementing these protocols correctly helps protect business domains against impersonation, reduces authentication-related delivery problems, and supports compliance with major mailbox-provider sender requirements.
The most reliable approach is to identify every legitimate email-sending service, configure SPF and DKIM, introduce DMARC monitoring, investigate authentication failures, and apply stricter policies only after verifying legitimate sending activity.
Email authentication does not guarantee that every message reaches the inbox, but it provides an essential foundation for secure and trustworthy email communication.
Must Read This Articles
Email Deliverability Explained: SPF, DKIM and DMARC
Email Marketing Automation: Workflows That Save Marketing Teams Time
Email Marketing Metrics That Actually Matter for Business Growth
Email Marketing Platforms Compared for Small Businesses
Email Segmentation Strategies for Better Campaign Performance
Free vs Paid SaaS Marketing Tools: What Should Startups Choose?
Freelancer vs Digital Marketing Agency: Which Should Businesses Hire?
Generative Engine Optimization vs Traditional SEO
