IT Manager candidate based in Riyadh. 12+ years in IT operations and infrastructure.

Phone

+966 55 973 2392

Website

https://www.islamfathi.com

Address

Riyadh, Saudi Arabia

Social Links

Tutorials

SPF, DKIM and DMARC in plain terms

Three DNS records decide whether your email is trusted. What each one does, an example of each, and the order to roll them out.

SPF, DKIM and DMARC in plain terms

If your company's email lands in spam, or someone sends fake messages in your name, three DNS records are usually involved: SPF, DKIM and DMARC. They are easier than the acronyms suggest.

SPF

SPF is a TXT record that lists the servers allowed to send mail for your domain.

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

A domain should have exactly one SPF record. SPF also has a limit of 10 DNS lookups, which you reach quickly when you include several providers.

DKIM

With DKIM, your mail server signs each outgoing message with a private key, and receivers check the signature using a public key published in DNS under a selector name. Your mail provider usually generates the key pair and tells you which TXT or CNAME record to add.

DMARC

DMARC tells receivers what to do when SPF and DKIM checks do not align with the visible From address, and where to send reports.

_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:[email protected]"

Start with p=none, which only collects reports. Read them for a few weeks, fix any legitimate sender that fails, then move to p=quarantine and finally p=reject.

Common mistakes

Forgetting a service that sends mail for you, such as a ticketing tool or a marketing platform, is the usual reason legitimate messages fail. Publishing two SPF records is another. Check every sender before tightening the policy.

2 min read
Sep 29, 2026
By Islam Fathy
Share

Leave a comment

Your email address will not be published. Required fields are marked *

Related posts

Oct 06, 2026 • 1 min read
Automating Repetitive IT Tasks with PowerShell and C#

How small scripts and simple tools save IT teams hours every week, and where to start.

Aug 18, 2026 • 2 min read
DNS problems you can diagnose in five minutes

Many network is down tickets are DNS. A few commands and one question tell you whether the name or t...

Aug 04, 2026 • 1 min read
VLANs Explained: Why Network Segmentation Matters

A plain explanation of VLANs and how separating devices into segments improves both security and per...

Your experience on this site will be improved by allowing cookies. We use cookies to enhance performance and improve your browsing experience. Cookie Policy