SPF, DKIM and DMARC setup for small organizations: a step-by-step rollout

How a small office or school sets up SPF, DKIM and DMARC: inventory senders, publish records, read reports, then move DMARC from none to reject safely.

  • Published
  • 16 min read
  • Kyber Systems team

Email authentication is three DNS-based checks with awkward names: SPF, DKIM and DMARC. Together they let receiving mail systems decide whether a message that says it is from your domain really is. For a small office, a practice or a school, they do two jobs. They help your real mail reach inboxes, because Gmail, Yahoo and Outlook.com now expect them. And they make it much harder for someone to send a fake invoice, payroll change or “urgent request from the principal” that shows your exact domain in the From line.

This guide explains each record in plain language, the rules the big mailbox providers publish, and a step-by-step rollout that small organizations can follow without breaking their own mail. It is vendor-neutral. Where we name Google or Microsoft, it is because most small organizations run on one of them, and we link their own setup pages. Every technical rule cites the Internet standard (RFC) or the provider’s documentation so you can check it.

If you are still choosing a mail platform, read Microsoft 365 vs Google Workspace for small organizations first. If email authentication is part of a wider security push, our ransomware protection checklist puts it in context.

What are SPF, DKIM and DMARC?

Each one answers a different question about a message.

SPF (Sender Policy Framework) answers: is this server allowed to send mail for this domain? You publish a TXT record in your domain’s DNS that lists approved sending servers and services. The receiver checks the connecting server’s IP address against that list. SPF is defined in RFC 7208. One catch: SPF checks the envelope sender (the hidden return-path address used for bounces), not the From address people see.

DKIM (DomainKeys Identified Mail) answers: was this message signed by this domain, and was it changed in transit? Your mail service signs each outgoing message with a private key. You publish the matching public key in DNS under a “selector” name. The receiver checks the signature. DKIM is defined in RFC 6376, with key and algorithm rules updated by RFC 8301. DKIM survives most forwarding, which SPF does not.

DMARC (Domain-based Message Authentication, Reporting and Conformance) answers: did SPF or DKIM pass for the domain the reader actually sees, and what should happen if not? It ties the visible From domain to SPF or DKIM through a check called alignment, publishes your policy (none, quarantine or reject), and asks receivers to send you reports. DMARC was first published as informational RFC 7489 in 2015. In May 2026 the IETF published the standards-track version, RFC 9989, which obsoletes RFC 7489. Reporting moved into companion documents (RFC 9990 for aggregate reports and RFC 9991 for failure reports).

Without DMARC, a spoofed message can pass SPF for the attacker’s own domain while showing your domain in the From line. DMARC closes that gap.

SPF DKIM DMARC
Standard RFC 7208 RFC 6376 (updated by RFC 8301) RFC 9989 (replaces RFC 7489)
What it checks Sending server IP against an allowed list Cryptographic signature on the message That SPF or DKIM passed for a domain aligned with the visible From
DNS record TXT on the domain, starts v=spf1 TXT at selector._domainkey.yourdomain TXT at _dmarc.yourdomain, starts v=DMARC1
Domain it protects Envelope sender (return-path) The d= domain in the signature The From address people see
Survives forwarding Usually not Usually yes, if the message is not modified Depends on DKIM surviving
Tells receivers what to do on failure Weakly (~all or -all) No Yes (p=none, quarantine, reject)
Sends you reports No No Yes (aggregate reports to rua)
Common small-office mistake Two SPF records, or more than 10 lookups Not turned on for third-party senders Left at p=none forever, or jumped to reject too early

Why do small organizations need email authentication now?

Two reasons: delivery and impersonation.

What do Gmail, Yahoo and Outlook.com require?

Since 02/01/2024, Google’s email sender guidelines require all senders to Gmail personal accounts to set up SPF or DKIM, have valid forward and reverse DNS for sending servers, use TLS, keep spam rates reported in Postmaster Tools below 0.3%, and format messages to the Internet Message Format standard. Senders of more than 5,000 messages a day to Gmail accounts must also set up SPF and DKIM, publish DMARC (a policy of none is accepted), make the From domain align with SPF or DKIM, and support one-click unsubscribe for marketing and subscribed mail.

Yahoo’s sender best practices set similar rules: SPF or DKIM at a minimum for everyone, and for bulk senders SPF and DKIM, a valid DMARC policy of at least p=none that passes, From alignment, a working one-click unsubscribe, honoring unsubscribes within 2 days, and a spam rate below 0.3%.

Microsoft announced in 2025 that domains sending more than 5,000 messages a day to Outlook.com consumer addresses (outlook.com, hotmail.com, live.com) must meet SPF, DKIM and DMARC requirements, with non-compliant mail routed to Junk and later rejected (Microsoft Defender for Office 365 blog). Check that post for the current enforcement status.

A small office rarely sends 5,000 messages a day by itself. But your newsletter platform, school messaging system or billing service may send on your behalf, and the providers judge the domain, not the tool. Meeting the bulk-sender bar for all mail is the simpler rule.

How does DMARC help against impersonation?

Business email compromise and invoice fraud often start with a message that looks like it came from someone you trust. CISA’s phishing guidance recommends enabling DMARC, along with SPF and DKIM, and setting DMARC to “reject” for sent email. For federal civilian agencies, CISA’s BOD 18-01 required valid SPF and DMARC records with at minimum p=none and a report address within 90 days, and a DMARC policy of reject within one year. That directive does not apply to private organizations or schools, but it shows the end state government security agencies recommend: reject. The UK NCSC gives the same advice in its email security and anti-spoofing guidance.

How does DMARC alignment work?

Alignment is the part most people skip, and it is why a message can pass SPF and still fail DMARC.

DMARC passes if at least one of these is true:

  • SPF passes and the envelope sender (return-path) domain matches the visible From domain.
  • DKIM passes and the d= domain in the DKIM signature matches the visible From domain.

“Matches” has two modes:

  • Relaxed (default, aspf=r and adkim=r): the domains share the same organizational domain. mail.example.org aligns with example.org.
  • Strict (aspf=s or adkim=s): the domains must be identical.

Example: your newsletter tool sends mail with From news@example.org, but uses its own return-path such as bounces.vendor.net and signs with d=vendor.net. SPF passes (for the vendor’s domain) and DKIM passes (for the vendor’s domain), yet DMARC fails for example.org because neither aligns. The fix is to set up the vendor’s “custom domain” or “domain authentication” option so it signs with d=example.org (DKIM alignment) and, if offered, uses a return-path under your domain (SPF alignment).

DKIM alignment is the one to aim for with every third-party sender, because it survives forwarding and mailing lists better than SPF.

How do you set up SPF?

  1. List every service that sends mail as your domain. Your mail platform (Microsoft 365 or Google Workspace), plus newsletter tools, billing and invoicing systems, CRM, help desk, website forms, school notification systems, payroll, scanners and copiers that email, and any on-site server.

  2. Get each vendor’s SPF instruction from its own documentation. Usually it is an include: value. Do not guess.

  3. Write one record. A domain has exactly one SPF TXT record. For example (placeholders, not real vendors):

    v=spf1 include:spf.mailplatform.example include:send.newsletter.example -all
  4. Pick the ending. -all (fail) says nothing else may send. ~all (softfail) says other senders are suspicious. Many admins start with ~all while they confirm the list, then move to -all. Once DMARC is at enforcement, DMARC decides the outcome, and the ending matters less, but -all keeps intent clear.

  5. Stay under 10 DNS lookups. RFC 7208 caps the mechanisms that trigger DNS queries (include, a, mx, ptr, exists and the redirect modifier) at 10 per check, and includes nested inside includes count. Over the limit, SPF returns a permanent error. RFC 7208 also says implementations should limit “void” lookups (queries that return nothing) to two.

  6. Do not use ptr. RFC 7208 says the ptr mechanism “SHOULD NOT be published”; it is slow and unreliable.

  7. Protect domains that never send mail. For a parked or defensive domain, publish v=spf1 -all and a DMARC reject record, so nobody can use it to spoof you.

Microsoft’s SPF setup guide and Google’s sender guidelines give the exact include value for each platform.

What breaks SPF most often?

  • Two SPF records on the same domain after a new vendor told someone to “add a TXT record”. Merge them.
  • Too many includes, especially when each vendor’s include pulls in more includes.
  • Forgotten senders, like a copier that emails scans to outside addresses through an old relay.
  • Forwarding. When a message is forwarded, the forwarding server’s IP is not in your SPF record, so SPF fails. This is normal and is why DKIM matters.

How do you set up DKIM?

DKIM is turned on per sending service, not once for the domain.

  1. Your main mail platform. In Microsoft 365, DKIM is enabled per custom domain in the Defender portal after you publish two CNAME records Microsoft gives you (Microsoft DKIM guide). In Google Workspace, you generate a key in the Admin console, publish the TXT record, then start authentication.
  2. Every third-party sender. In each newsletter, billing or CRM tool, look for “domain authentication”, “custom DKIM” or “sender authentication”. It will give you one or more records to publish under a selector such as s1._domainkey.example.org.
  3. Key strength. RFC 8301 says signers must use RSA keys of at least 1024 bits and should use 2048 bits, and must not sign with rsa-sha1. Choose 2048-bit keys when the service and your DNS host allow it.
  4. Selectors let you rotate keys. Because each key lives under its own selector name, you can publish a new key, switch signing to it, and remove the old one later without an outage.
  5. Check a real message. Send a test to a Gmail or Outlook mailbox you control, open the message headers (“Show original” in Gmail) and confirm dkim=pass with d= your domain.

How do you set up DMARC?

Publish a TXT record at _dmarc.yourdomain. A safe first record looks like this:

v=DMARC1; p=none; rua=mailto:dmarc-reports@example.org

Tag by tag:

  • v=DMARC1 identifies the record.
  • p= is the policy for your domain: none (monitor only), quarantine (treat failures as suspicious, usually spam folder) or reject (refuse failures).
  • rua= is where aggregate reports go. Use a mailbox or a DMARC reporting service; reports are XML files and arrive daily from large receivers.
  • sp= sets a different policy for subdomains. If omitted, subdomains follow p=.
  • adkim= and aspf= set relaxed (r, default) or strict (s) alignment.
  • np= (added in RFC 9989) sets the policy for subdomains that do not exist, which blocks spoofing of made-up names like billing.example.org.
  • t=y (added in RFC 9989) asks receivers to apply one level below your stated policy while you test.

About pct. Older guides, including Google’s and Microsoft’s DMARC pages at the time we checked, describe a pct tag to apply the policy to a percentage of failing mail. RFC 9989 removed pct, noting that receivers applied values other than 0 and 100 inconsistently, and added t instead. Receivers will take time to update. A rollout that moves cleanly from none to quarantine to reject, without relying on percentages, works under both the old and new specifications.

If the report address is on a different domain from the one publishing DMARC (for example a reporting service), that service has to publish an authorization record. Reputable services do this for you; confirm it in their setup steps.

What is a safe DMARC rollout for a small organization?

The goal is p=reject without blocking a single legitimate message. Take it in phases. The durations below are typical planning ranges, not rules; move on when the reports are clean, not when a date arrives.

Phase DMARC record What you do Move on when
0. Inventory none yet List every service that sends as your domain; check SPF and DKIM for each Every known sender has SPF or, better, aligned DKIM
1. Monitor p=none; rua=… Read aggregate reports weekly; find unknown senders; fix alignment Reports show only known senders, all passing, for at least a few weeks including a month-end billing cycle
2. Quarantine p=quarantine; rua=… (or t=y with a stricter policy where supported) Watch reports and the help desk for “my mail went to spam” No legitimate failures for several weeks
3. Reject p=reject; rua=… Keep reading reports monthly; add new senders before they go live Ongoing
4. Harden add sp=reject, np=reject; lock down parked domains Defensive records on every domain you own Ongoing

What do DMARC aggregate reports show?

Each report lists, per sending IP address, how many messages claimed your domain, and whether SPF, DKIM and DMARC passed and aligned. Read them by source:

  • Your platform (Microsoft or Google IPs): should be passing both.
  • Known third parties failing alignment: fix their DKIM domain setting.
  • Unknown sources passing nothing: often spoofing. This is what DMARC enforcement will stop.
  • Forwarders and mailing lists: often fail SPF but pass DKIM. If DKIM breaks there too, that is expected for some lists; RFC 8617 (ARC) exists for that problem but is experimental.

Raw XML is hard to read. A reporting service or a small parser turns it into a table. Whoever reads them, put a name on the task. Reports nobody reads are the main reason small organizations stay at p=none for years.

What about subdomains, newsletters and school messaging?

Send bulk mail from a subdomain. Put newsletters and marketing on news.example.org and keep staff mail on example.org. Each gets its own SPF and DKIM, the SPF lookup count stays low, and a spam complaint problem on the newsletter does not drag down staff mail. Yahoo’s guidance recommends separating email types by IP or DKIM domain for this reason.

One-click unsubscribe. Google and Yahoo require bulk marketing and subscribed mail to support one-click unsubscribe headers and a visible unsubscribe link. Most newsletter tools do this when the domain is authenticated in the tool. Transactional mail such as receipts and password resets is treated differently; check each provider’s page.

Schools. Parent notification platforms, learning management systems, cafeteria payment and library systems often send as the school domain. Inventory them in phase 0. If a system cannot sign with your domain, have it send from its own domain with your school name in the display name, rather than weakening your DMARC policy.

Website forms. A contact form that sends “from” the visitor’s address will fail DMARC for that visitor’s domain. Send form notifications from an address on your own domain through an authenticated service, and put the visitor’s address in Reply-To.

What else improves email security beyond SPF, DKIM and DMARC?

Authentication is one layer. Pair it with:

  • Multifactor authentication on every mailbox, especially admins and finance. CISA treats MFA as a baseline control (CISA MFA). DMARC does nothing if an attacker logs in to a real mailbox.
  • Turn off legacy authentication (basic auth for POP, IMAP and older SMTP clients) where your platform still allows it.
  • External sender tags and look-alike domain warnings in your mail platform.
  • A payment-change rule: any change to bank details or an urgent payment request is confirmed by phone, using a number you already have, not one in the email.
  • TLS for mail in transit. Google requires TLS for sending to Gmail. MTA-STS (RFC 8461) lets you tell other servers to require TLS when delivering to you.
  • Staff training on reporting suspicious mail, with one easy button or address.
  • Defensive domains: register obvious look-alikes only if you will actually maintain them, and publish reject records on them.

Email authentication setup checklist

  • Owner named for DNS and for reading DMARC reports.
  • DNS host access confirmed, with MFA on the registrar and DNS account.
  • Inventory of every service that sends as each domain, including copiers, forms and school platforms.
  • One SPF record per sending domain, under 10 DNS lookups, no ptr.
  • DKIM enabled on the main mail platform with 2048-bit keys where supported.
  • DKIM enabled with your domain (d=yourdomain) in every third-party sender.
  • DMARC published at p=none with a working rua address.
  • Reports reviewed weekly during monitoring; unknown senders explained.
  • Bulk mail moved to a subdomain with its own records.
  • One-click unsubscribe working on marketing and newsletters.
  • Quarantine, then reject, each after clean reports.
  • sp= and np= set to protect subdomains.
  • Parked domains locked down with v=spf1 -all and p=reject.
  • MFA on all mailboxes; legacy authentication off.
  • Process for adding a new sending service: records first, then go live.
  • Key rotation date on the calendar for DKIM.

Questions to ask your IT provider or email vendor

  • Which services send mail as our domain today, and how did you find them?
  • Is DKIM signing with our domain for each of them, or with the vendor’s domain?
  • How many DNS lookups does our SPF record use now?
  • Who receives and reads our DMARC reports, and how often?
  • What is our current DMARC policy, and what is the plan and date to reach reject?
  • How will you add a new sending service without breaking delivery?
  • Do our newsletter and marketing tools support one-click unsubscribe?
  • Is MFA enforced on every mailbox, and is legacy authentication off?
  • Which of our domains do not send mail, and are they locked down?
  • Who controls our registrar and DNS logins, and are they in our name?

Common mistakes and how to avoid them

  • Stopping at p=none. Monitoring mode tells receivers to take no action. It gives you reports, but no protection against spoofing. Set a target date for reject.
  • Jumping to p=reject on day one. You will find out about the forgotten billing system when customers say they never got invoices.
  • Letting a vendor sign as itself. A green “DKIM pass” in the vendor dashboard can still be DKIM for the vendor’s domain. Check the d= value.
  • DNS in someone else’s name. If a former web designer or provider owns your DNS account, you cannot fix any of this. Move it into an account your organization owns.
  • Copying records from a blog post. Every include value comes from the vendor’s own documentation for your account.

Where Kyber Systems fits

Kyber Systems sets up and maintains email authentication for small offices, practices and schools in Jersey City, Hoboken and New York City as part of managed IT and security work: sender inventory, SPF and DKIM for each service, DMARC reporting, a staged move to reject, and a written process for adding new senders. Your DNS and mail admin accounts stay in your organization’s name. For choosing a provider for this kind of ongoing work, see managed IT services in Jersey City: how to choose a provider.

Checked against the RFCs, provider documentation and government sources listed below on 12/03/2026. Provider sender rules change; read the current page before you change DNS.

FAQ

Common questions.

What is the difference between SPF, DKIM and DMARC?

SPF (Sender Policy Framework, RFC 7208) is a DNS record listing which servers may send mail using your domain in the envelope sender. DKIM (DomainKeys Identified Mail, RFC 6376) adds a cryptographic signature to each message that receivers check against a public key in your DNS. DMARC (RFC 9989, which replaced RFC 7489 in 2026) checks that SPF or DKIM passed for a domain that matches the visible From address, tells receivers what to do when it does not, and sends you reports.

Does a small organization really need DMARC?

If you send mail to Gmail, Yahoo or Outlook.com users, you already need SPF or DKIM, and bulk senders need DMARC too. Even below those thresholds, DMARC is the only one of the three that protects the address people actually see, so it is the main defense against someone sending invoices or payroll requests that appear to come from your domain.

Should I start DMARC at p=reject?

No. Start at p=none with a report address, read the reports for a few weeks, and fix every legitimate sender that fails. Then move to p=quarantine and later p=reject. Jumping straight to reject can block your own invoices, newsletters, payroll notices or website form emails.

Why does my SPF record fail with too many lookups?

RFC 7208 limits SPF evaluation to 10 DNS lookups. Each include, a, mx, ptr, exists and redirect counts, and includes inside includes count too. A record that pulls in many vendors can exceed the limit and return a permanent error. Remove services you no longer use, avoid ptr, and send bulk mail from a subdomain with its own SPF record.

Can I have more than one SPF record?

No. A domain must publish a single SPF record. Two v=spf1 TXT records on the same name cause a permanent error. Merge them into one record.

What DKIM key length should I use?

RFC 8301 says signers must use RSA keys of at least 1024 bits and should use at least 2048 bits, and must not sign with rsa-sha1. Use 2048-bit keys where your DNS host and mail service support them, and rotate keys on a schedule.

Is the DMARC pct tag still used?

RFC 9989, the standards-track DMARC specification published in May 2026, removed the pct tag and added a t (test mode) tag. Some receivers and admin consoles still document pct. A staged rollout that moves from none to quarantine to reject works under both versions.

Will DMARC stop all phishing?

No. DMARC stops exact-domain spoofing of your domain at receivers that honor it. It does not stop look-alike domains, compromised mailboxes or display-name tricks. Pair it with multifactor authentication, staff training and a payment-verification process.

Related posts

Security 7 min read

Backup and disaster recovery planning for small organizations

Use the 3-2-1 rule, set how much data you can lose and how long you can be down, keep one copy offline, and prove it works with scheduled restore tests.

Backups · Disaster recovery · Security · Small business · K-12

Planning something like this?

Tell us about the site, the users and the deadline. We reply with questions or a written scope.

Start a project