<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nick Potter</title>
    <description>The latest articles on DEV Community by Nick Potter (@nickpotter).</description>
    <link>https://dev.to/nickpotter</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Nick Potter</title>
      <link>https://dev.to/nickpotter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nickpotter"/>
    <language>en</language>
    <item>
      <title>Read the authentication results before changing your email DNS</title>
      <dc:creator>Nick Potter</dc:creator>
      <pubDate>Sat, 07 Nov 2026 12:44:34 +0000</pubDate>
      <link>https://dev.to/nickpotter/read-the-authentication-results-before-changing-your-email-dns-2n75</link>
      <guid>https://dev.to/nickpotter/read-the-authentication-results-before-changing-your-email-dns-2n75</guid>
      <description>&lt;p&gt;When an email authentication check fails, collect evidence from one message before changing DNS. A DNS lookup shows what is published now; a receiver's authentication result describes what it observed while handling that message.&lt;/p&gt;

&lt;p&gt;Putting those observations next to each other helps you choose a test instead of changing several unrelated records at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Collect a message from the right sending path
&lt;/h2&gt;

&lt;p&gt;Send a test through the application or service that is failing. A message sent manually from your mailbox may use a different route from an automated receipt.&lt;/p&gt;

&lt;p&gt;In Gmail, open the message menu and choose &lt;strong&gt;Show original&lt;/strong&gt;. &lt;a href="https://support.google.com/mail/answer/29436?hl=en" rel="noopener noreferrer"&gt;Google documents the steps here&lt;/a&gt;. Use the summary and the results added by the receiving mailbox provider; do not treat every Authentication-Results header in the message as equally trustworthy.&lt;/p&gt;

&lt;p&gt;The following is an illustrative, abbreviated result, not a captured email:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Authentication-Results: mx.example.net;
    spf=pass smtp.mailfrom=bounce.provider.example;
    dkim=pass header.d=provider.example;
    dmarc=fail header.from=example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result contains two passes and one failure. That is not inherently contradictory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the identities alongside the verdicts
&lt;/h2&gt;

&lt;p&gt;SPF passed for &lt;code&gt;bounce.provider.example&lt;/code&gt;. DKIM passed for &lt;code&gt;provider.example&lt;/code&gt;. The visible From domain was &lt;code&gt;example.com&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A pass for an unrelated provider domain does not establish an aligned pass for the visible domain. DMARC evaluates that relationship. The &lt;a href="https://www.rfc-editor.org/rfc/rfc9989.html#section-4.4" rel="noopener noreferrer"&gt;DMARC alignment specification&lt;/a&gt; explains the distinction.&lt;/p&gt;

&lt;p&gt;For this example, the next investigation is the provider's custom-domain authentication setup. Blindly adding more SPF includes to &lt;code&gt;example.com&lt;/code&gt; may not address the identity the receiver actually checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use the DKIM signature to choose a DNS query
&lt;/h2&gt;

&lt;p&gt;A DKIM-Signature header contains a signing domain, &lt;code&gt;d=&lt;/code&gt;, and selector, &lt;code&gt;s=&lt;/code&gt;. Suppose it says:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;d=example.com; s=mail2026;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Query the corresponding public key name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig +short TXT mail2026._domainkey.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not guess the selector from your company name. Copy it from the provider configuration or a message produced by that provider. A key appearing in DNS still does not tell you whether the receiver verified this message successfully. &lt;a href="https://www.rfc-editor.org/rfc/rfc6376.html" rel="noopener noreferrer"&gt;RFC 6376&lt;/a&gt; describes the signing and verification process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the observations into a test plan
&lt;/h2&gt;

&lt;p&gt;Use a short investigation log:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Observation&lt;/th&gt;
&lt;th&gt;Next check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SPF result mentions an unexpected domain&lt;/td&gt;
&lt;td&gt;Check the configured envelope sender or custom Return-Path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DKIM domain is the provider's domain&lt;/td&gt;
&lt;td&gt;Check whether custom-domain signing is enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Key lookup is empty&lt;/td&gt;
&lt;td&gt;Recheck the exact domain, selector, record type, and public DNS answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication passes but delivery is poor&lt;/td&gt;
&lt;td&gt;Investigate reputation, complaints, content, and receiver feedback&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Record one hypothesis and make one justified change at a time. Keep the original message, the DNS answers, and the new test result together. That makes it possible to explain why a change helped instead of merely remembering that the problem disappeared.&lt;/p&gt;

&lt;p&gt;A useful authentication investigation ends with a reproducible result for the intended sending route. Inbox placement remains a separate question; Google's &lt;a href="https://support.google.com/mail/answer/81126?hl=en" rel="noopener noreferrer"&gt;sender guidelines&lt;/a&gt; cover requirements beyond authentication.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Header examples are fictional and use reserved example domains. Review against your provider's current instructions before changing production DNS.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>authentication</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>security</category>
    </item>
  </channel>
</rss>
