Blazalek.com

Authentication and DNS Failures

On this page

Why does DMARC fail when SPF or DKIM appears to pass?

Severity: HighPause sending: Pause conditionally

DMARC fails when an SPF or DKIM pass is not aligned with the RFC 5322 From domain. Compare the SPF MailFrom domain and each passing DKIM d= domain with the From domain under the published strict or relaxed mode. Even a corrected DMARC pass does not guarantee inbox delivery because final handling remains local policy.

First 15 minutes

  1. Compare the SPF-authenticated MailFrom domain and each passing DKIM d= domain with the RFC 5322 From domain.
  2. Read the DMARC record's relaxed or strict alignment modes.
  3. Confirm that at least one authenticated identifier passes and aligns with the author domain.

Now

  • Align at least one passing SPF or DKIM authenticated domain with the RFC 5322 From author domain.

Next 24 hours

  • Receive and analyze DMARC aggregate reports to identify authorized sources and remaining authentication gaps.

Next 7 days

  • Correct the authorized sources still shown with authentication or alignment gaps in aggregate reports.

Technical checks

IT / DNS

  • Compare MailFrom and every passing DKIM d= domain with the RFC 5322 From domain under the selected alignment mode.
  • Confirm the DMARC result is pass only when at least one authenticated identifier aligns.

Verification criteria

  • Confirm a current message receives DMARC pass because at least one authenticated identifier passes and aligns with the author domain.
  • Confirm aggregate reports identify the authorized sources and show whether authentication gaps remain.

Escalation criteria

  • Escalate to DNS or deliverability owners when aggregate reports continue to show authorized sources with authentication gaps.
  • Escalate remaining placement problems separately when DMARC passes because receiver handling is still local policy.

Prevention

  • Keep at least one SPF or DKIM authenticated domain aligned with the RFC 5322 From domain.
  • Review DMARC aggregate reports so authorized sources and authentication gaps remain visible.

Business impact

  • An unaligned SPF or DKIM pass is insufficient for DMARC, while even a DMARC pass does not guarantee inbox placement.

Open questions

  • The failing path cannot be identified without a real received message's Authentication-Results, From, Return-Path and DKIM d= values.
  • Receiver disposition after DMARC failure is local policy and can differ even when the protocol result is identical.
  • Forwarders and mediators may alter SPF or DKIM outcomes; the actual message path must be inspected before assigning fault.
Sources (6)
  1. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceIntroduction, paragraphs 4-5IETF RFC 9989
  2. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceIntroduction, paragraph 5; Identifier AlignmentIETF RFC 9989
  3. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 4.4, 5.3.3 and 5.3.4IETF RFC 9989
  4. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSection 5.3.5, Determine DMARC Pass or FailIETF RFC 9989
  5. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 5.1 and 5.1.3-5.1.5IETF RFC 9989
  6. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceIntroduction paragraph 6 and Section 5.4IETF RFC 9989

Related runbooks

Why is SPF failing for our sending domain?

Severity: MediumPause sending: Pause conditionally

Start with the identity SPF actually evaluated: the MAIL FROM domain, or HELO when the reverse path is null, not the visible From address. Then distinguish a stable authorization failure from multiple records or syntax, the ten-query limit, and transient DNS errors. Include every active sender at the evaluated identity and verify the result in a newly received message.

First 15 minutes

  1. Capture the sending IP, MAIL FROM or fallback HELO identity, DNS response, and received Authentication-Results value.
  2. Check for multiple SPF records, syntax errors, more than ten DNS-querying terms, and transient DNS lookup failures.
  3. Inventory every service currently sending for the evaluated identity.

Now

  • If authoritative DNS shows multiple SPF records or a syntax error, correct that record; if the active sender is absent at the evaluated MAIL FROM or HELO identity, add its authorization.

Next 24 hours

  • Only if SPF evaluation exceeds ten recursive DNS-querying terms, reduce those terms to within the RFC limit.

Next 7 days

  • Add sender-introduction change control so the SPF record is updated when a new service starts sending.

Technical checks

IT / DNS

  • Query the SPF TXT record at the MAIL FROM identity, or the HELO identity when the reverse path is null.
  • Verify there is one syntactically valid SPF record and no more than ten recursive DNS-querying terms.
  • Separate DNS timeout or server-failure temperror from stable authorization failure or permerror.

Engineering

  • Reconcile the evaluated identity and sending IP with every active sending service that the SPF record must authorize.

Verification criteria

  • A newly received message shows SPF working in its headers after DNS propagation, which Google notes can take up to 48 hours.

Escalation criteria

  • Escalate to DNS or the sending provider when temperror persists or a corrected record still returns permerror after authoritative and received-message checks.

Prevention

  • Maintain one valid SPF record that includes every active sender and stays within the ten DNS-querying-term limit.

Business impact

  • Mail from an omitted sending service is not authorized by the SPF record at the evaluated identity, and a DNS change may take up to 48 hours before a newly received message shows working SPF.

Provider notes

  • Google advises header-based verification and notes that DNS changes can take up to 48 hours before SPF starts working.

Open questions

  • No DNS response, SPF TXT record, evaluated MAIL FROM or HELO domain, sending IP, or received Authentication-Results header is supplied.
  • The failure could be stable fail, permerror, temperror, none, or DMARC alignment failure mislabeled as SPF; the exact result must be preserved.
  • Receiver handling of SPF results is local policy, and DNS propagation timing varies by provider and resolver cache.
Sources (6)
  1. RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1Section 4.1, ArgumentsIETF RFC 7208
  2. RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1Sections 4.5 and 4.6IETF RFC 7208
  3. RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1Section 4.6.4, DNS Lookup LimitsIETF RFC 7208
  4. RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1Section 4.4, Record LookupIETF RFC 7208
  5. Troubleshoot SPF issuesSPF record doesn't include all email senders for your domainGoogle Workspace
  6. Troubleshoot SPF issuesBasic troubleshooting for SPFGoogle Workspace

Related runbooks

Why is DMARC failing, and which cause should we test first?

Severity: HighPause sending: Pause conditionally

Start with receiver-generated Authentication-Results from an affected message, not with DNS changes. Determine whether an aligned SPF-authenticated MAIL FROM domain or an aligned valid DKIM d= domain passed, then inspect the other branch and the applicable _dmarc TXT record. Do not weaken an existing enforcement policy until legitimate unauthenticated or unaligned streams are identified and remediated.

First 15 minutes

  1. Capture Authentication-Results, RFC 5322 From, MAIL FROM, and DKIM d= domains from an affected message.
  2. Check whether the SPF-authenticated MAIL FROM domain passes and aligns with the author domain.
  3. Check whether any valid DKIM d= domain aligns with the author domain.
  4. Query the applicable _dmarc TXT record and confirm that v=DMARC1 is the first tag.

Now

  • Correct the MAIL FROM identity when SPF passes but its authenticated domain does not align with the author domain.
  • Correct the DKIM signing identity when a valid signature uses an unaligned d= domain.
  • Repair a missing, misplaced, or malformed DMARC version tag at the applicable _dmarc record.

Next 24 hours

  • Keep monitoring with aggregate reporting while legitimate unauthenticated or unaligned streams are remediated.

Next 7 days

  • Advance toward enforcement only after legitimate sources have been inventoried and their authentication and alignment gaps are fixed.

Technical checks

Deliverability

  • Compare receiver-generated SPF and DKIM pass-and-alignment results for the affected message.

IT / DNS

  • Verify the applicable _dmarc TXT record location and ensure v=DMARC1 is its first tag.

Engineering

  • Inventory legitimate sending streams seen in aggregate reports and identify missing or unaligned authenticated identifiers.

Verification criteria

  • A receiver-generated Authentication-Results header on an affected test shows DMARC pass through at least one valid aligned SPF or DKIM branch.
  • Aggregate reports identify expected legitimate sources and no longer show their known missing or unaligned identifiers.

Escalation criteria

  • Escalate to the deliverability or domain owner when aggregate reports reveal legitimate sources that cannot be identified or authenticated.
  • Require explicit owner approval before weakening an existing enforcement policy during incident response.

Prevention

  • Continuously inventory legitimate senders through aggregate reports and track missing or unaligned authenticated identifiers.
  • Use monitoring mode and aggregate reporting before advancing enforcement, remediating legitimate streams first.

Business impact

  • Until an affected message shows at least one valid aligned authentication branch, the team cannot demonstrate a message-level DMARC pass or make a safe sending decision.

Open questions

  • No affected message's Authentication-Results, RFC 5322 From, MAIL FROM, DKIM d= domains, selector results, or current DNS response was provided.
  • The failing branch is unresolved until message-level pass and alignment results are compared with the applicable DMARC policy.
  • Receiver report coverage, indirect forwarding behavior, organizational-domain discovery, and strict versus relaxed alignment can vary by message path and receiver.
Sources (6)
  1. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 4.4.1 and 4.4.2 Identifier AlignmentIETF RFC 9989
  2. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSection 4.4.2 SPF-Authenticated IdentifiersIETF RFC 9989
  3. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSection 4.4.1 DKIM-Authenticated IdentifiersIETF RFC 9989
  4. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 4.1 and 4.7-4.8IETF RFC 9989
  5. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 5.1.3-5.1.6IETF RFC 9989
  6. RFC 9989: Domain-Based Message Authentication, Reporting, and ConformanceSections 5.1.4-5.1.6IETF RFC 9989

Related runbooks

Why is mail rejected because reverse DNS or a PTR record is missing?

Severity: HighPause sending: Pause conditionally

Treat this as a reverse-DNS configuration incident on the actual public sending IP. Check that its PTR resolves to a hostname whose A or AAAA record resolves back to the same IP before continuing normal Gmail traffic. The exact SMTP response still determines whether Gmail is temporarily deferring mail or permanently blocking it.

First 15 minutes

  1. Capture the actual public source IP and the complete remote SMTP response, then separate Gmail 4.7.23 deferrals from 5.7.25 blocks.
  2. Resolve the source IP to its PTR hostname and resolve that hostname back through A or AAAA to confirm it returns to the same IP.

Now

  • Correct the PTR or forward A or AAAA record so the actual sending IP and its hostname resolve back to each other.

Next 24 hours

  • Recheck the forward-and-reverse mapping on every active IP in the affected sending path after DNS changes are visible.

Next 7 days

  • Document the verified PTR-to-hostname-to-IP mapping for each production sending IP and include it in infrastructure change checks.

Technical checks

IT / DNS

  • Query PTR for the actual public sending IP, then query A or AAAA for the returned hostname and compare the result with that IP.

Deliverability

  • Group remote outcomes by destination, source IP, and exact enhanced status code rather than treating every 5.7.x response as reverse DNS.

Verification criteria

  • A fresh public DNS lookup shows the sending IP's PTR hostname resolving through A or AAAA back to that same IP.
  • Controlled Gmail samples no longer return 4.7.23 or 5.7.25 for the affected source IP.

Escalation criteria

  • Escalate to the DNS or sending-platform owner if the mapping cannot be corrected, or to provider support if the exact 5.7.25 response persists after the mapping is verified.

Prevention

  • Require a public forward-and-reverse DNS preflight for each sending IP before activation or infrastructure change.

Business impact

  • Affected Gmail messages can be delayed by 4.7.23 deferrals or blocked by 5.7.25, interrupting time-sensitive customer communication.

Provider notes

  • Gmail identifies reverse-DNS temporary deferrals with 4.7.23 and permanent blocks with 5.7.25 in the documented cases.
  • Exchange Online's documented 5.7.25 reverse-DNS case is scoped to anonymous inbound IPv6 and should not be generalized to every Microsoft path.

Open questions

  • The affected sending IP, its current PTR and forward DNS answers, and the exact Gmail SMTP response were not provided.
  • The breadth of rejection across Gmail and other receiving providers is unresolved until SMTP outcomes are grouped by destination and source IP.
  • Other mailbox providers can impose different reverse-DNS requirements and response codes.
Sources (5)
  1. Email sender guidelinesSender requirements and guidelines; Infrastructure configuration requirements and guidelines > IP addressesGmail
  2. Email sender guidelinesInfrastructure configuration requirements and guidelines > IP addressesGmail
  3. Email sender guidelines FAQSender guidelines enforcement > Temporary failure 4.7.23Gmail
  4. Email sender guidelines FAQSender guidelines enforcement > Permanent failure 5.7.25Gmail
  5. Email nondelivery reports (NDRs) and SMTP errors in Exchange OnlineCommon NDR codes > 5.7.25Microsoft Exchange Online

Related runbooks

Why is email authentication failing in Microsoft 365, and which SPF, DKIM, or DMARC check failed?

Severity: HighPause sending: Pause conditionally

Start with the receiving Microsoft 365 Authentication-Results header for an affected message, not with DNS records in isolation. It identifies the message-level SPF, DKIM, DMARC, and composite-authentication outcomes so the failing mechanism can be isolated. Authentication failure can lead to quarantine, rejection, or Junk Email, and DMARC succeeds only when a passing SPF or DKIM identity aligns with the visible From domain.

First 15 minutes

  1. Collect one affected message's Microsoft 365 Authentication-Results header and read SPF, DKIM, DMARC, and compauth from that same message.
  2. Record the message-level SPF, DKIM, DMARC, and compauth results together from that receiving header.

Now

  • Correct only the mechanism identified in the affected message: the SPF record or authorized IP, DKIM signing or selector, or DMARC alignment path.

Next 24 hours

  • Send a controlled message through the same path and confirm that its authenticated domain now aligns with the visible From domain.

Next 7 days

  • Add change checks that catch duplicate or excessive-lookup SPF records, missing DKIM selectors, and unaligned authenticated domains.

Technical checks

Deliverability

  • Compare SPF, DKIM, DMARC, and compauth results in the receiving Microsoft 365 header for the same affected message.
  • For DMARC, verify that at least one passing SPF or DKIM authenticated domain aligns with the visible From domain.

IT / DNS

  • If SPF is none or permerror, check for a missing record, multiple records, or the documented ten-DNS-lookup limit condition.
  • If DKIM is none or fail, check signing, selector DNS, key match, and whether the message changed after signing.
  • If SPF softfail or fail appears, verify that the connecting IP is authorized for the envelope-sender domain and account for forwarding.

Verification criteria

  • A newly received Microsoft 365 message reports the expected SPF, DKIM, DMARC, and compauth outcomes in Authentication-Results.
  • The new sample has at least one passing SPF or DKIM identity aligned with the visible From domain when DMARC is expected to pass.

Escalation criteria

  • Escalate to Microsoft 365 or the sending provider when the receiving header, message trace, and NDR disagree or authentication-driven rejection, quarantine, or junk placement persists after the identified fix.

Prevention

  • Validate SPF structure and authorization, DKIM signing and selector DNS, and DMARC alignment from real received messages after every sending-path change.

Business impact

  • Legitimate Microsoft 365 mail can be rejected, quarantined, or routed to Junk Email, delaying or hiding customer and operational messages.

Provider notes

  • Microsoft 365's receiving header includes SPF, DKIM, DMARC, and Microsoft's compauth result; use that header as the message-level evidence.

Open questions

  • No affected message headers, Authentication-Results fields, Microsoft 365 message trace, or NDR diagnostic were provided.
  • The failing mechanism and alignment path are unresolved until the SPF, DKIM, and DMARC results are read from the same affected message.
  • The affected domains, DNS records, forwarding path, gateway modifications, and business impact are not available.
Sources (6)
  1. Troubleshoot email authentication in Microsoft 365Read authentication results in message headers > Key fieldsMicrosoft 365
  2. Troubleshoot email authentication in Microsoft 365Quick-reference troubleshooting tables > SPF failuresMicrosoft 365
  3. Troubleshoot email authentication in Microsoft 365Quick-reference troubleshooting tables > SPF failuresMicrosoft 365
  4. Troubleshoot email authentication in Microsoft 365Quick-reference troubleshooting tables > DKIM failuresMicrosoft 365
  5. Troubleshoot email authentication in Microsoft 365Troubleshoot DMARC > Domain misalignmentMicrosoft 365
  6. Troubleshoot email authentication in Microsoft 365IntroductionMicrosoft 365

Related runbooks

Wojtek BlazalekWojtek BlazalekEmail deliverability expert

Stuck in an email incident? I help teams get delivery, reputation and auth back on track.

Hands-on deliverability work for teams that send at scale

Book a free diagnostic callSee services
Need help? Contact us!