Guides

Email security for your domain: SPF, DKIM and DMARC explained.

Unless your domain says otherwise, anyone can send email showing your address in the From line. Three records change that: SPF lists which mail services may send for you, DKIM signs each message to prove it came from an authorized service, and DMARC tells receivers what to do when a message fails those checks. With all three and a DMARC policy of quarantine or reject, your exact domain is protected against forgery.

For small organizations and home officesLast reviewed: November 5, 2026Written by Keeliva, published by Jelista Strategies Inc.

Why this matters to a small organization

Email was designed without any check that the sender is who they claim to be; the From line is just text. That is why a forged message from “your accountant” asking a client to pay a changed bank account is so easy to produce: it needs only your domain name, which is public. SPF, DKIM and DMARC are the fix the email world agreed on: records you publish in your domain's public settings (DNS), where every receiving mail system can read them. Many small organizations' domains have only part of the set.

A second benefit: since 2024 the largest mailbox providers have required senders to authenticate their mail with SPF or DKIM, and senders of large volumes to publish DMARC as well. The same records help your real email arrive.

The three records, in plain words

SPF: who may send as you

SPF (Sender Policy Framework) is one line in your domain's settings listing the mail services allowed to send email for your domain: your mail provider and any other service that sends as you (a newsletter tool, an invoicing system, a website contact form). The line ends with an instruction about everyone else: “softfail” (treat with suspicion) or “fail” (refuse).

DKIM: a seal on each message

DKIM (DomainKeys Identified Mail) has your mail service sign each outgoing message with a private key; the matching public key is published in your domain's settings. A valid signature means the message came from a service holding your key and wasn't altered on the way. Each sending service gets its own key.

DMARC: what to do about failures, and tell me

DMARC (Domain-based Message Authentication, Reporting and Conformance) ties the two together: for mail claiming to be from my domain, check SPF and DKIM against the From address, and if both fail, do nothing (“none”, monitor only), send it to spam (“quarantine”) or refuse it (“reject”). It also asks receivers to send you a summary, usually daily, of what they saw, which is how you learn who is sending as you. Without DMARC, SPF and DKIM are advice that receivers may or may not act on; with it, your domain states a policy that most large receivers follow.

How to check and fix your domain

Most of these steps are done at your domain's DNS provider (often the registrar, or your website host) and in each mail service's admin settings. If someone else manages your email or website, steps 3 to 5 are theirs; steps 1 and 2 you can do yourself.

  1. List everything that sends email as your domain

    What to check: every service that puts your domain in the From line: your mail provider, and the ones people forget: the newsletter tool, the booking or invoicing system, the website's contact form, the accounting software, the scanner that emails documents.

    How: ask each person who sends email on behalf of the organization which tools they use, and look at the From address on a recent message from each. Write the list down; a sender missing from it will have its mail refused once your policy is strict.

    Good looks like: a written list of every sending service, with the person who owns each one.

  2. See what your domain publishes today

    What to check: whether your domain has an SPF record, DKIM keys for your sending services, and a DMARC record with which policy.

    How: your mail provider's admin console usually shows the status of all three for its own service; a free online SPF/DKIM/DMARC lookup tool shows the records any receiver sees. Keeliva's optional check from the internet, part of the full report, reads your domain's SPF and DMARC records and looks for DKIM keys under common names, and reports in plain English what it found, noting when it couldn't find a DKIM key (a key under an uncommon name is still possible). Note: is SPF present and does it end in softfail or fail; is DKIM on for each service in your list; does DMARC exist, and with which policy.

    Good looks like: you can say, for each of the three records, “present” or “missing”, and name the DMARC policy. Many domains at this stage have SPF, partial DKIM and no DMARC.

  3. Get SPF right: one record, every sender, a clear ending

    What to check: that there is exactly one SPF record (two is an error: receivers treat SPF as broken and ignore both), that it includes every service from step 1, and that it ends with softfail, written ~all, or fail, written -all, rather than the permissive +all or ?all.

    How: each sending service documents the piece to add to SPF (an “include” naming the service); whoever manages your DNS combines them into the single record. SPF has a lookup limit (a record that makes receivers look up more than ten other names is treated as broken), so domains with many services sometimes hit it; that is a known problem with known fixes, and a reason to remove services you no longer use.

    Good looks like: one SPF record, naming every service on your list and nothing you no longer use, ending in ~all or -all.

  4. Turn DKIM on in every sending service

    What to check: that each service on your list signs its mail with DKIM for your domain, not only for its own.

    How: in each service's admin settings, look for DKIM or “authenticate your domain”. The service generates a key and shows you one or two records to add at your DNS provider; add them, then switch signing on. A service that can't sign as your domain is a service to question.

    Good looks like: every service on the list shows DKIM as active for your domain, and a test message to a personal mailbox shows “signed-by” your domain in the message details.

  5. Publish DMARC, starting gently

    What to check: that a DMARC record exists, asks for reports, and ends up at quarantine or reject once every legitimate sender passes.

    How: start with a policy of none and a reporting address (an inbox someone reads, or a reporting service that turns the raw reports into a readable summary). For a few weeks, watch the reports: they show every source sending as your domain; legitimate ones that fail get fixed in steps 3 and 4. When only forgeries fail, move the policy to quarantine, then to reject. In this order, nothing of yours is blocked along the way.

    Good looks like: a DMARC record with reports going somewhere they are read, and a policy of quarantine or reject. A policy of none is a fine first step, not a finish line.

  6. Keep it current

    What to check: that the records still match reality: every new tool that sends email as you must be added to SPF and set up for DKIM before it goes live.

    How: make “is it in SPF and does it sign with DKIM?” a question that is asked whenever a new service is adopted. Glance at the DMARC summary monthly, and once a year remove services you no longer use. If you have the Keeliva monthly plan and entered your domain for the check from the internet, our server re-checks your domain's public email-security records between scans and can email you when a change needs attention.

    Good looks like: adding a sending service includes the DNS step as a matter of course, and the reports show only your own services passing.

What these records don't do

They protect your exact domain name. They do nothing about a lookalike domain (your name with one letter changed, or a different ending), the other common impersonation route; that is a matter of staff awareness and, for some, of registering the obvious lookalikes. They don't filter the spam you receive; that is your mail provider's job. And they don't help if someone has the password to one of your real mailboxes, because mail from the real account passes every check; that is what a second sign-in step is for.

Further reading

dmarc.org's overview explains the thinking behind DMARC and how it builds on SPF and DKIM. For the person who will make the DNS changes, the Canadian Centre for Cyber Security's Implementation guidance: email domain protection is a thorough technical walkthrough, including the same phased rollout (none, then quarantine, then reject).

Check your own network for free

Keeliva runs on one Windows computer on your network and gives you a plain-English grade for free, using only safe connection checks: no logins, nothing changed. The full report explains each finding that needs attention.

Download the free scan

Prefer to read first? How the check works.