<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Free Domain Mail]]></title><description><![CDATA[Free Domain Mail]]></description><link>https://freedomainmail.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 09:43:12 GMT</lastBuildDate><atom:link href="https://freedomainmail.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to Set Up SPF, DKIM and DMARC for a Custom Domain]]></title><description><![CDATA[Learn how to configure SPF, DKIM and DMARC for a custom domain, avoid common DNS mistakes and verify your email authentication records.]]></description><link>https://freedomainmail.hashnode.dev/how-to-set-up-spf-dkim-and-dmarc-for-a-custom-domain</link><guid isPermaLink="true">https://freedomainmail.hashnode.dev/how-to-set-up-spf-dkim-and-dmarc-for-a-custom-domain</guid><category><![CDATA[email]]></category><category><![CDATA[dns]]></category><category><![CDATA[email security]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Thanh Ho Van]]></dc:creator><pubDate>Thu, 10 Sep 2026 10:39:56 GMT</pubDate><content:encoded><![CDATA[<p>If you send email from a custom domain, publishing an MX record is only the beginning. SPF, DKIM, and DMARC work together to help receiving servers verify who sent a message and what to do when authentication fails.</p>
<p>This guide explains the role of each record, a safe order for deploying them, and the mistakes that most often break domain email.</p>
<h2>What each record does</h2>
<h3>SPF: authorize sending infrastructure</h3>
<p>SPF is a TXT record that lists the services permitted to send mail for your domain. A receiving server compares the message path with that policy.</p>
<p>Example:</p>
<pre><code>v=spf1 include:amazonses.com -all
</code></pre>
<p>Use the include value supplied by your email provider. A domain should normally have one SPF record. If you already have one, merge the required mechanisms instead of publishing a second SPF TXT record.</p>
<h3>DKIM: sign outgoing messages</h3>
<p>DKIM adds a cryptographic signature to outgoing mail. Your provider keeps the private key and asks you to publish a public key, commonly through one or more CNAME records.</p>
<p>A DKIM hostname includes a selector. For example:</p>
<pre><code>selector1._domainkey.example.com
</code></pre>
<p>Do not invent the selector. Copy the host and target values supplied by the sending provider. Also check whether your DNS dashboard automatically appends the root domain; entering the full hostname in such a dashboard can create a duplicated name.</p>
<h3>DMARC: define policy and reporting</h3>
<p>DMARC tells receivers how to handle messages that fail aligned SPF or DKIM checks. A cautious starting policy is:</p>
<pre><code>v=DMARC1; p=none; rua=mailto:dmarc@example.com
</code></pre>
<p>The monitoring policy collects reports without requesting quarantine or rejection. Review legitimate senders first, then consider moving gradually to p=quarantine and finally p=reject.</p>
<h2>Recommended setup order</h2>
<ol>
<li>Verify ownership of the domain with the TXT record supplied by your provider.</li>
<li>Configure the MX record for inbound delivery.</li>
<li>Publish or merge the SPF policy.</li>
<li>Add every DKIM selector supplied by the provider.</li>
<li>Publish DMARC initially in monitoring mode.</li>
<li>Wait for DNS caches to refresh and verify the public records.</li>
</ol>
<p>Keep unrelated website A, AAAA, and CNAME records unchanged. Email DNS changes should not require moving your website or nameservers.</p>
<h2>Common mistakes to avoid</h2>
<ul>
<li>Publishing two SPF records on the same hostname.</li>
<li>Copying example DKIM selectors instead of the provider's real values.</li>
<li>Adding the domain twice in a DNS dashboard that automatically appends it.</li>
<li>Enforcing DMARC before all legitimate senders are authenticated.</li>
<li>Replacing website records while changing email DNS.</li>
<li>Assuming a visible DNS record means every resolver has refreshed.</li>
</ul>
<h2>Verify the result</h2>
<p>After saving the records, query public DNS rather than relying only on what the provider dashboard displays. You can inspect MX, SPF, DMARC, A, AAAA, and nameserver records with the <a href="https://freedomainmail.com/tools/dns-checker">Free Domain Mail DNS Checker</a>.</p>
<p>For practical examples, see the <a href="https://freedomainmail.com/guides/dmarc-examples">DMARC record examples guide</a> and the <a href="https://freedomainmail.com/guides/dkim">DKIM setup guide</a>.</p>
<p>Here is a short visual overview of the setup flow:</p>
<p><a href="https://www.youtube.com/watch?v=1EQELQDziyw">https://www.youtube.com/watch?v=1EQELQDziyw</a></p>
<h2>Final checklist</h2>
<ul>
<li>One valid SPF policy</li>
<li>Every provider-issued DKIM selector published</li>
<li>A DMARC record at _dmarc.yourdomain.com</li>
<li>Correct MX destination and priority</li>
<li>Authentication checked from public DNS</li>
</ul>
<p>Email authentication improves trust, but it does not guarantee inbox placement. Sending reputation, message content, complaint rates, and recipient behavior still matter.</p>
<p><a href="https://freedomainmail.com/">Free Domain Mail</a> provides guided DNS setup, simple custom-domain webmail, and free DNS inspection tools for freelancers, developers, solo founders, and small projects.</p>
]]></content:encoded></item></channel></rss>