SPF DKIM DMARC: Email Authentication Guide for SMEs
Gmail and Outlook now require email authentication. A step-by-step SPF, DKIM and DMARC guide based on NCSC, Google and Microsoft advice to stop spoofing of your domain.

SPF DKIM DMARC are three DNS records that let receiving mail servers tell your company’s genuine email apart from forgeries that abuse your domain name. Since 1 February 2024, Gmail has required every sender to use SPF or DKIM, and anyone sending more than 5,000 messages a day to also publish DMARC; Outlook.com began enforcing similar rules in May 2025. This guide turns the official advice from the UK’s NCSC, Google and Microsoft into a step-by-step plan for small and mid-sized businesses.
What SPF DKIM DMARC are and why your business needs them
Email was designed when the internet was a small network of universities, so the protocol never checked who was really sending a message. Any server can send a letter that claims to come from accounts@yourcompany.com. Three standards were added over the years to close that gap:
- SPF (Sender Policy Framework): a TXT record in DNS that lists the servers and services allowed to send mail for your domain. The receiving server compares the sending IP address with that list.
- DKIM (DomainKeys Identified Mail): the sending server adds a digital signature to every message using a private key, and the matching public key is published in DNS so receivers can verify it. If the message is altered in transit, the signature no longer validates.
- DMARC: a policy that tells receivers what to do when a message fails SPF or DKIM (take no action, send it to spam, or reject it), and asks them to send regular reports back to the domain owner.
The NCSC notes that these three controls can be applied at the same time rather than one after another. Microsoft describes the goal plainly: stopping the spoofed senders used in business email compromise (BEC), ransomware and other phishing attacks. Once criminals can no longer borrow your exact domain, they have to fall back on look-alike domains, which trained staff find far easier to spot. If your company has already been targeted by fake requests from “the director”, pair this technical layer with a payment verification process against CEO impersonation.
How email spoofing actually works
Every email carries two sender addresses. The first is the MAIL FROM address, also called the envelope sender, which mail servers use while talking to each other and which users rarely see. The second is the From address shown in Outlook or Gmail, the one recipients read and trust.
SPF only checks the MAIL FROM address. DKIM only proves which domain signed the message. Neither of them, on its own, requires that domain to match the visible From address. An attacker can send mail from a throwaway domain with a perfectly valid SPF record while the From line shows your company’s domain. That is why DMARC introduces alignment: a message passes DMARC only when at least one of the SPF or DKIM checks both passes and uses a domain that matches the From address.
Microsoft’s documentation explains the two alignment modes. In relaxed mode, the default, only the organisational domain has to match, so bounces.yourcompany.com counts as aligned with yourcompany.com. In strict mode the full domain name must be identical. For most small businesses, relaxed mode is sufficient and causes fewer false failures.
What Gmail and Outlook now require from senders
Google’s email sender guidelines state that from 1 February 2024 everyone sending to personal Gmail accounts must set up SPF or DKIM, have valid forward and reverse (PTR) DNS records, use TLS when transmitting mail and keep the spam rate reported in Postmaster Tools below 0.3%. Bulk senders, defined as those sending more than 5,000 messages a day to Gmail, must set up SPF, DKIM and DMARC (a DMARC policy of none is acceptable), align the From domain with SPF or DKIM, and support one-click unsubscribe in marketing mail. Google also requires DKIM keys of at least 1024 bits and recommends 2048 bits.
Microsoft has moved in the same direction for Outlook.com. According to the Microsoft Defender for Office 365 team’s official blog, domains sending more than 5,000 emails a day to Outlook consumer addresses must pass SPF, pass DKIM and publish a DMARC policy of at least p=none aligned with SPF or DKIM. From 5 May 2025, non-compliant messages are routed to the Junk folder, and Microsoft says outright rejection will follow at a date still to be announced. Adding a sender to a recipient’s Safe Senders list does not bypass the requirement.
Even if your business never sends 5,000 messages a day, these rules show where the market is heading: unauthenticated mail is increasingly likely to land in spam, and a domain without DMARC is an easy target for impersonation.

Step 1: Inventory every service that sends mail as your domain
The most common mistake when rolling out SPF DKIM DMARC is forgetting a service that quietly sends mail on your behalf. When the DMARC policy is tightened, e-invoices, order confirmations or newsletters suddenly stop reaching customers. The NCSC’s guidance starts by identifying every legitimate source of email. Build a simple table that covers:
- Your main mailbox platform: Microsoft 365, Google Workspace or the email bundled with your hosting plan.
- Your website and online shop: contact forms, WooCommerce order notifications, password reset emails.
- Accounting, e-invoicing, CRM and recruitment software.
- Bulk email platforms such as Mailchimp, SendGrid, Amazon SES and similar services.
- Office devices such as scan-to-email printers, cameras and alarm systems.
Microsoft recommends that services outside your direct control, such as bulk mailing platforms, use a subdomain like marketing.yourcompany.com. That way a problem at the marketing platform does not damage the reputation of the main domain your staff use every day, and each subdomain gets its own SPF DNS lookup budget.
Step 2: Configure SPF correctly
An SPF record is a TXT record on your domain that starts with v=spf1, lists the valid sources and ends with an enforcement rule. For an organisation that sends only through Microsoft 365, Microsoft’s example record is v=spf1 include:spf.protection.outlook.com -all. Google Workspace customers use the include value from Google’s own setup instructions instead.
Microsoft’s SPF configuration guide highlights several points:
- Only one SPF record per domain or subdomain. Two records cause SPF to return a permerror. When you add a new service, merge it into the existing record rather than creating a second one.
- Stay under 10 DNS lookups. Each
include:,a,mx,existsandredirectcosts at least one lookup, and nested includes add more.ip4:andip6:entries do not count. Go over the limit and messages fail SPF with a permanent error. - Prefer
-all(hard fail). Microsoft explains that DMARC treats both-alland~allas failures, but with~allthe DMARC policy is effectively ignored for messages that also lack a DKIM signature. - Use a TTL of at least 3,600 seconds to avoid DNS lookup timeouts.
- Watch for small syntax errors such as a trailing dot after a domain, an equals sign instead of a colon after include, or a space after the colon.
If you have already hit the 10-lookup limit, Microsoft suggests moving secondary services to subdomains, consolidating the number of services that send mail, or replacing an include with a vendor’s stable, documented IP ranges. Do not flatten Microsoft 365 itself this way, because Microsoft’s sending infrastructure uses IP addresses that change frequently.
Step 3: Turn on DKIM in Microsoft 365 and Google Workspace
DKIM matters because a signature usually survives forwarding, whereas SPF often fails in that situation. Microsoft also advises complex organisations that struggle to list every sender to switch on DKIM and a monitoring-only DMARC policy quickly, so that reports reveal the missing sources.
Google Workspace
According to Google’s admin documentation, an administrator opens the Admin console, goes to Apps > Google Workspace > Gmail > Authenticate email, selects the domain and generates a new record. Google recommends a 2048-bit key where the DNS host supports it and keeping the default selector prefix google. After the TXT record is added at the DNS host, DKIM can take up to 48 hours to start working, and you should only click to start authentication once the record is in place. To confirm, send a message to a different Gmail account and check the header for a DKIM pass.
Microsoft 365
If you send from a custom domain, enable DKIM signing with that domain in the Microsoft Defender portal so the signing domain aligns with the From address. Otherwise messages may be signed with a domain such as yourcompany.onmicrosoft.com, and Microsoft confirms that this does not align for DMARC.
Third-party services
Newsletter platforms, CRMs and invoicing tools usually provide their own DKIM records, often as CNAMEs. Microsoft’s troubleshooting tables describe the classic failure: the service signs with its own domain, so DKIM passes but DMARC still fails. The fix is to configure custom DKIM signing with your domain inside that service.
Step 4: Roll out DMARC from none to quarantine to reject
The DMARC record is a TXT record published at _dmarc.yourcompany.com, for example v=DMARC1; p=none; rua=mailto:dmarc@yourcompany.com. The p tag sets the policy, pct sets the share of failing mail the policy applies to (100 by default) and rua is where aggregate reports go. Google advises adding DMARC only after SPF and DKIM have been running for at least 48 hours.
- p=none (monitor only). Mail is delivered as usual, but you start receiving daily XML reports showing which IP addresses send mail in your domain’s name and whether they pass. Google suggests one week at this stage; the NCSC recommends monitoring reports for at least two weeks and fixing legitimate sources that fail.
- p=quarantine with a small percentage. Google suggests starting at
pct=5; Microsoft gives an example progression of 10, 25, 50, 75 and then 100. The NCSC says many organisations report moving on from none after about six to eight weeks, and advises monitoring for at least four more weeks once quarantine reaches 100%. - p=reject. This is the end goal that Microsoft and the NCSC point to: spoofed mail is refused on arrival. Google cautions that failing messages are then never delivered, so make the move only when your reports are clean.
The NCSC also recommends warning marketing and communications teams before each change and asking them to flag planned mass mailings. If you lose confidence at any point, you can revert to p=none. Microsoft suggests starting with low-volume subdomains and saving the parent domain for last.
For reporting, Microsoft recommends a dedicated shared mailbox or Microsoft 365 Group rather than a personal inbox, weekly reviews during the initial deployment and monthly reviews once things are stable. The raw XML is hard to read, so a DMARC reporting service can turn it into dashboards. Keep expectations realistic: Microsoft notes that not every receiver sends reports, and coverage is typically 70 to 90% of total mail volume.

Protect parked domains and encrypt mail in transit
Many companies register extra .com, .net or campaign domains that never send email. Criminals love these unattended domains because nobody is watching them. For domains that send no mail, Microsoft recommends two simple records: SPF v=spf1 -all, meaning no server is authorised to send, and DMARC v=DMARC1; p=reject;. If you use Microsoft 365 but do not send from the onmicrosoft.com domain, add a reject DMARC record for it in the admin center as well. A useful bonus: the DMARC record on a parent domain automatically covers every subdomain that lacks its own DMARC record, including subdomains that do not exist.
Authentication only answers the question “who sent this?”. To stop messages being read in transit, the NCSC recommends MTA-STS together with TLS-RPT. MTA-STS tells sending servers that mail to you must use TLS 1.2 or higher with a valid certificate. The policy file lives at https://mta-sts.yourdomain/.well-known/mta-sts.txt. Start in testing mode with a max_age of 86,400 seconds, monitor TLS-RPT reports (published at _smtp._tls) for at least a month, and then switch to enforce with a recommended max_age of at least 1,209,600 seconds, or two weeks.
What this means for SMEs in Vietnam and Japan
Vietnamese companies that work with Japanese partners exchange quotations, contracts and invoices by email every day. Without DMARC, a criminal can send a “change of bank account” notice from your exact domain, and the partner has little chance of telling it apart. In the other direction, when genuine mail lands in spam because it is not authenticated, you lose business without ever knowing why.
The good news is that the cost is low: a few DNS records and some time spent reading reports. The real challenge is knowing every sending source and avoiding syntax mistakes. If you use domain-based email bundled with a hosting plan and are not sure who manages your DNS, review it with your domain, hosting and business email provider before making changes. For companies in Japan, the Gmail and Outlook rules apply in exactly the same way, so the SPF DKIM DMARC roadmap in this guide can be used as is.
Use this quick checklist to see where you stand:
- A complete list exists of every system that sends mail as your domain.
- Each domain and subdomain has exactly one SPF record with fewer than 10 lookups.
- DKIM is enabled with 2048-bit keys for the main mail platform and third-party services.
- A DMARC record exists, reports go to a shared mailbox and someone owns reading them.
- There is a dated plan to move from none to quarantine and then reject.
- Domains that never send mail have SPF -all and DMARC reject.

Common mistakes when deploying SPF DKIM DMARC
- Staying at p=none forever. A none policy gives you data; it does not block a single spoofed message. Set a firm date to move to quarantine.
- Nobody reads the reports. Reports flowing into the inbox of someone who left the company are surprisingly common. Use a shared mailbox and assign an owner.
- Forwarding and mailing lists. Both the NCSC and Microsoft note that mail relayed through intermediaries can fail SPF; if DKIM survives, DMARC still passes. That is another reason not to rely on SPF alone.
- Reports sent to another domain. If your
ruaaddress belongs to a reporting vendor’s domain, that domain must publish a record authorising it to receive your reports, or receivers will not send them. - Forgotten subdomains. The parent domain’s SPF record does not cover subdomains; every subdomain that sends mail needs its own SPF and DKIM.
FAQ
Does a small business that sends little email need DMARC?
Yes. The Gmail and Outlook mandates use a 5,000-messages-a-day threshold, but impersonators do not care how much mail you send. DMARC is the only one of the three standards that lets you ask receivers to reject mail forging your domain and to send you reports about spoofing attempts.
Should I use -all or ~all in my SPF record?
Microsoft recommends -all once you have DKIM and DMARC in place, because with ~all the DMARC policy can be ignored for messages without a DKIM signature. Make sure every legitimate sender is in the record before you switch.
How long does it take to reach p=reject?
There is no universal deadline. Google suggests at least a week at none before starting quarantine at a small percentage; the NCSC says many organisations move on from none after about six to eight weeks and then monitor for at least four more weeks once quarantine reaches 100%. Businesses with few senders can often move faster.
How do I check that SPF DKIM DMARC is working?
Send a message to an external Gmail or Outlook account, open the original headers and look for spf=pass, dkim=pass and dmarc=pass in the Authentication-Results line. Online DNS tools can also count your SPF lookups.
Will DMARC stop phishing from look-alike domains?
No. DMARC protects only your own domain. Mail from a near-identical domain, for example one that swaps the letter “l” for the number “1”, can still have valid SPF and DMARC, so staff training and payment verification remain essential.
If you would like a team to review your DNS, configure email authentication and monitor the reports on a schedule, take a look at Quy Nhon ADV’s system maintenance and security service.
Sources: NCSC UK, Google Workspace Admin Help, Microsoft Learn (DMARC), Microsoft Learn (SPF), Microsoft Tech Community