SPF DKIM DMARC: Email Authentication Explained Simply
In this guide
What Are SPF, DKIM and DMARC?
SPF DKIM DMARC are three email authentication protocols that work together to prove an email really came from the domain it claims to come from. They exist because email was designed before spam and phishing, and without them, anyone can send a message that appears to come from a bank, a shop or a colleague. Email providers now check these protocols before deciding whether a message belongs in the inbox, the spam folder, or nowhere at all.
Each protocol does a different job. SPF lists which servers are allowed to send email for a domain. DKIM adds a digital signature that proves the message was not changed on its way. DMARC ties the two together, telling receiving servers what to do when a message fails the checks. Together, they make it much harder for criminals to impersonate a domain, and they help genuine senders reach the inbox reliably.
SPF: Listing Who Can Send Your Email
SPF, or Sender Policy Framework, is a record published in the domain name settings that lists the servers allowed to send email on behalf of that domain. When a receiving server gets a message, it checks the sending server against the list, and if the server is not on it, the message is treated as suspicious. Setting up SPF is a matter of adding one record that names the email services the business actually uses, such as its email provider and its website host.
The most common mistake is forgetting a service. If a business sends email from its website, its marketing tool and its main inbox, all three must be included, or genuine messages will start failing checks. It is also important to keep the record updated when a service changes. SPF alone does not guarantee delivery, but without it, a domain looks untrustworthy to every receiving server that checks.
DKIM: Signing Emails So They Cannot Be Forged
DKIM, or DomainKeys Identified Mail, adds a cryptographic signature to every outgoing email, which the receiving server can verify using a public key published in the domain settings. The signature covers the message content, so if anyone changes the message on its way, the signature no longer matches and the message is flagged. This makes DKIM a strong defence against tampering as well as impersonation.
Setting up DKIM usually means generating a key pair in the email service, publishing the public key as a domain record, and turning the signing on. The private key stays with the sending service and must be kept secret. Once active, DKIM works silently in the background, and recipients never notice it, except that the messages they receive are more likely to reach the inbox instead of the spam folder.
DMARC: Telling Servers What to Do With Failures
DMARC, or Domain-based Message Authentication, Reporting and Conformance, is the policy layer that sits on top of SPF and DKIM. It tells receiving servers what to do when a message fails authentication: deliver it anyway, send it to the spam folder, or reject it entirely. A business usually starts with a monitoring policy that only reports failures, so it can see what is happening without risking genuine mail, and then moves to stricter policies once everything is working.
DMARC also provides reports, which show who is sending email claiming to be from the domain and whether those messages pass or fail. These reports are valuable because they reveal impersonation attempts that would otherwise be invisible. A domain with a strict DMARC policy is a hard target for phishing, because fake messages are rejected before they reach anyone inbox.
Why SPF DKIM DMARC Protects Everyone
Following SPF DKIM DMARC protocols protects the sender, the recipient and the brand all at once. The sender email reaches the inbox more reliably, because providers trust authenticated messages. Recipients are protected from phishing, because fake messages are filtered out before they arrive. The brand is protected too, because criminals find it harder to abuse its name, and customers learn to trust the messages they receive.
For small businesses and freelancers, setting up these three records is one of the highest-value security jobs available: it takes an afternoon, costs nothing, and protects every email sent afterwards. The records should be checked with a testing tool after setup, and reviewed whenever an email service changes. Email authentication is invisible when it works, and that is exactly the point: genuine messages arrive, fake ones do not, and nobody has to think about it.
Testing deserves emphasis, because a small mistake in a domain record can stop genuine mail from arriving. After setting up each protocol, use a free testing tool to check the records and send a test message to a major provider, confirming that it reaches the inbox and passes authentication. If a record is wrong, the test will show it before customers are affected. A few minutes of testing after setup prevents days of confusion, and it is a habit worth repeating whenever an email service changes.
Earn
Zohaib Faisal is the founder and editor of EarnDesk. Based in Lahore, Pakistan, he runs the online store Haseeb Collections and works as a freelancer on Fiverr (virtual assistance, AI content writing, AI prompt engineering and digital marketing). He builds websites — Haseeb Collections, EarnDesk and a temporary-email service — writes SEO-focused content, and has hands-on AdSense experience across his sites. He has earned 15+ professional certificates from Google, IBM, Microsoft, HubSpot, Cisco, the Linux Foundation, Unity, Semrush and Harvard (CS50P), and creates the YouTube channel Clips by Zohaib. On EarnDesk he writes practical, honest guides to help beginners earn online — without hype or "get rich quick" promises.