--- title: "Email that lands: SPF, DKIM and DMARC explained | ALCO USA Inc" url: "https://alcohq.com/insights/email-that-lands-spf-dkim-dmarc-explained" description: "Three records in your domain decide whether your mail reaches the inbox and whether a stranger can send as you. What each one does, and how to check yours." --- Insights # Email that lands: SPF, DKIM and DMARC explained Three records in your domain decide whether your mail reaches the inbox and whether a stranger can send as you. What each one does, and how to check yours. Example domains. Per RFC 7208, SPF checks the envelope sender. [Adam Leveille](https://alcohq.com/about#team) President & Lead Consultant 22 October 2026 Updated 11 November 2026 19 min read You send a quote. It goes to spam. You send a reminder. Same thing. Meanwhile someone you have never met sends an invoice to your customer with your name on it, and that one lands fine. Both problems have the same fix. Three records in your domain settings tell the world which servers may send mail as you and what to do with mail that fails the test. They are called SPF, DKIM and DMARC. Here is what each does, in plain words, and how to set them up without blocking your own mail. ## Every message carries two sender addresses The envelope address, which servers call the MAIL FROM, is used between mail servers while the message is handed along. The From address is the one your customer sees. They do not have to match, and forgers rely on that. Under the SPF standard, RFC 7208, SPF checks the envelope address, not the From line, and Microsoft notes that the domain behind a DKIM signature does not have to match either one. DMARC ties both checks back to the From address your customer actually reads. That is why a message can pass SPF or DKIM for someone else's domain and still fail DMARC for yours. ## SPF is the list of who may send SPF is a list you publish. It says, in effect, "mail from ourcompany.com comes from these servers." Google's servers, Microsoft's, your invoicing tool, your newsletter service. When your mail arrives, the receiving server checks the sending server against the list. On the list, good. Not on the list, suspicious. The list is a single TXT record on your domain that begins with v=spf1. Google's setup guide gives v=spf1 include:_spf.google.com ~all for a business that sends only through Google Workspace, and Microsoft's gives v=spf1 include:spf.protection.outlook.com -all for Microsoft 365. Other sending services often need an include entry of their own, and their setup instructions give the exact text. You publish the record at your DNS host, often the company you registered the domain with; Microsoft notes there is no setting for it inside Microsoft 365. The ending decides what happens to everyone else. The -all ending says unlisted servers fail, ~all says they soft fail, and ?all says nothing either way; Microsoft says ?all is for testing and does not recommend it in production. Google recommends ~all. Microsoft recommends -all because it also expects you to run DKIM and DMARC. Follow the guide for the platform that carries most of your mail. The common mistakes are simple. The list is missing a tool you added last year, so your invoices fail the check. Or the list has grown so long it breaks a technical limit and stops working for everything. SPF is worth a review every time you add a service that sends email on your behalf. That limit is ten DNS lookups. RFC 7208 caps the include, a, mx, ptr and exists mechanisms and the redirect modifier at 10 per check, and if a receiver needs more, the result is a permanent error instead of a pass. Microsoft's guide adds that lookups nested inside a vendor's include count too, so fewer than ten include entries does not guarantee fewer than ten lookups. Plain ip4 and ip6 addresses do not count. Two more rules catch people out. A domain may publish only one SPF record, and when a receiver finds two, the check ends in a permanent error. Small typing slips break the whole record as well; Microsoft lists a trailing period after a domain name, an equals sign instead of a colon after include, and a space after that colon as common examples. Each subdomain that sends mail needs its own SPF record, because the record for your main domain does not cover it. For services you do not control, such as a bulk newsletter platform, Microsoft recommends sending from a subdomain like marketing.yourdomain.com. That keeps problems with the service's mail from hurting the reputation of your staff mail, and Microsoft notes that each subdomain gets its own ten-lookup budget. ## DKIM is the seal on the envelope SPF says where mail may come from. DKIM proves the message was not changed on the way. Your mail server signs each message with a private key. The matching public key sits in your domain settings. The receiver checks the signature. If it matches, the message is intact and really came from a server you control. The signature travels in a header called DKIM-Signature. Its d= value names the signing domain, and its s= value names the selector, a label that tells the receiver where to find the public key: a record named for the selector, followed by ._domainkey and the signing domain. The DKIM standard uses selectors so that one domain can hold several keys at once, which is how each of your services can have its own. You turn DKIM on at your email platform and add the key it gives you to your domain. Each sending service has its own key, so your newsletter tool needs one too. Many businesses have DKIM on for their main mail and off for everything else, which is why the newsletter lands in promotions and the invoice lands in spam. Watch for one trap. Microsoft notes that many hosted services sign messages with their own domain and add a signature for your domain only after you set it up. The service's own signature proves the message is intact, but DMARC for your domain counts only a signature whose domain matches yours. In Google Workspace, a super administrator opens the Google Admin console and goes to Apps, then Google Workspace, then Gmail, and clicks Authenticate email. Choose the domain, click Generate New Record, pick a 2048-bit key if your DNS host supports it, and keep the default prefix selector, google. Add the TXT record it shows at your DNS host, then return and click Start authentication; Google says the status should change to Authenticating email with DKIM. Google's sender guidelines require keys of at least 1024 bits for mail to personal Gmail accounts and recommend 2048. In Microsoft 365, this step is easy to miss. Microsoft's DKIM guide says no DKIM signing occurs for outbound mail from custom domains until you configure it; only the onmicrosoft.com domain created when you signed up is signed automatically. To set it up, open the Microsoft Defender portal and go to Email & collaboration, Policies & rules, Threat policies, Email authentication settings, then the DKIM tab. Slide the Toggle for your domain toward Enabled; Microsoft's guide says an error dialog appears and the status changes to CnameMissing, which is expected at this stage. Open the domain's details, copy the two values under Publish CNAMEs, and create CNAME records named selector1._domainkey and selector2._domainkey at your DNS host. Once Microsoft detects them, which can take a few minutes or longer, turn on Sign messages for this domain with DKIM signatures, and the status should read Signing DKIM signatures for this domain. ## DMARC gives the instructions SPF and DKIM are checks. DMARC is the rule that says what to do with mail that fails them, and it asks receivers to send you reports. A DMARC record has a policy. None means watch and report, but deliver anyway. Quarantine means send failures to spam. Reject means refuse them. Most domains that have DMARC at all sit on none forever, which is a smoke alarm with the battery out. Spoofed mail still lands. DMARC also adds a test the other two lack, called alignment. A message passes DMARC when SPF passes for a domain that matches the From address, or when DKIM passes with a signature from a domain that matches it. Alignment is relaxed by default, so mail signed by mail.yourdomain.com counts for yourdomain.com, while mail signed only by your newsletter service's domain does not. The record is a TXT record named _dmarc on your domain. Google's rollout guide starts with v=DMARC1; p=none; plus an rua tag, written as rua=mailto: followed by the address of the mailbox that will collect reports. The p tag sets the policy, rua says where to send the summary reports, sp sets a separate policy for subdomains, and adkim and aspf switch alignment from relaxed to strict. Microsoft notes that, unlike SPF and DKIM, a DMARC record on your main domain also covers subdomains that do not publish their own. Publish exactly one record, because under RFC 9989, the current DMARC standard published in May 2026, a receiver that finds more than one discards them all. The receiving system has the final word. RFC 9989 tells receivers not to reject mail solely because a domain publishes reject and, without other evidence, to treat that mail as quarantine. Microsoft 365, for example, rejects failing mail from a reject domain if its anti-phishing policy has Honor DMARC record policy when the message is detected as spoof turned on, which Microsoft recommends. Either way, a receiver that honors your policy keeps the forgery out of the inbox. ## What the reports show you Aggregate reports are where DMARC earns its keep. Microsoft describes them as messages each receiving system typically sends once a day, with an XML file, usually compressed, listing the servers that sent mail as your domain, how many messages each sent, and whether they passed. They carry addresses and counts, not message content. The data is hard to read raw; Microsoft calls it vast and difficult to parse. Google and Microsoft both recommend a dedicated mailbox or group for the reports, and Microsoft says not to deliver them to a user's own mailbox. Both point to reporting services that turn the XML into something readable. Not every receiver sends reports, and Microsoft puts typical coverage at 70 to 90 percent of mail volume. When you review them, put every sending source in one of three groups: - Your own mail platform, which should pass with your domain aligned. - Real services that send for you but fail, which need to sign with your domain or use your domain in their envelope address. - Servers you do not recognize that fail, which are potential forgeries and exactly what enforcement is for. Expect a little noise. Forwarding breaks SPF, and mailing lists that change a message break DKIM, so Microsoft treats some failures from forwarded mail as normal. ## Moving from none to reject The goal is reject. You get there in steps. Start on none, read the reports for a few weeks, fix every real sender that fails, then move to quarantine, then reject. Once you are there, a stranger sending mail as you is refused or sent to spam by receivers that honor DMARC, before your customer ever sees it in the inbox. How long is a few weeks? The guidance varies. Google's rollout guide says to set up SPF and DKIM at least 48 hours before DMARC, and that a week at none is usually enough for daily reports to show all your mail streams. RFC 9989, for domains whose users post to mailing lists, suggests at least a month at none and an equally long period at quarantine. For a small business, the practical test is whether every kind of mail you send, including monthly statements and quarterly mailings, has appeared in the reports and passed. If something goes out only once a quarter, send a test from it rather than wait. Many guides, including Google's and Microsoft's current pages, describe applying quarantine to a share of failing mail with a pct tag and raising the share in steps. RFC 9989 dropped pct because receivers usually applied it accurately only at 0 or 100, and it added a t tag for testing instead. Do not count on a partial percentage; raising the whole policy one level at a time is the dependable route. Make sure DKIM is in place before you reach reject. RFC 9989 says a domain that publishes reject must not rely on SPF alone for a DMARC pass and must sign its mail with valid DKIM, because forwarded mail usually fails SPF while DKIM signatures generally survive. Weigh one exception before you publish reject. RFC 9989 says domains whose users post to mailing lists should not publish reject, or should tell those users that list participation may be hindered. If someone on staff depends on an industry discussion list, decide deliberately: stop at quarantine, or tell that person their list posts may not reach everyone. Domains you own but never send from are the easy case. Microsoft recommends v=spf1 -all, which authorizes no server at all, plus a DMARC record of v=DMARC1; p=reject; and no DKIM record. With no real mail to break, a parked domain can go straight to reject. If your Microsoft 365 organization never sends from its onmicrosoft.com domain, Microsoft says to give that domain the same DMARC record, which you add in the Microsoft 365 admin center under Settings, then Domains. ## Why this matters more than it used to Since February 1, 2024, Google has required everyone sending to personal Gmail accounts to set up SPF or DKIM. Anyone sending more than 5,000 messages a day to personal Gmail accounts must set up both, publish DMARC (a policy of none is allowed), align the From domain with SPF or DKIM, and support one-click unsubscribe on marketing mail. Yahoo began enforcing similar rules the same month; its bulk senders must publish a DMARC policy of at least none, and their mail must pass DMARC. Microsoft has followed. In April 2025 it announced that domains sending more than 5,000 messages a day to Outlook.com, Hotmail and Live addresses must pass SPF and DKIM and publish a DMARC policy of at least none that aligns with SPF or DKIM. It said that after May 5, 2025, Outlook would begin routing mail from high-volume domains that fall short to the Junk folder, and that rejection would come later. Mail without these records is not just risky. It is increasingly refused outright or filed as junk. If your deliverability has gotten worse since early 2024 and you have not changed anything, this is often why. The bulk rules start above 5,000 messages a day, but Google and Yahoo both ask every sender to keep its spam rate below 0.3 percent. ## How to check yours in five minutes Three checks tell you where you stand: - Look up your domain's TXT records. You want one starting v=spf1, a DMARC record at _dmarc.yourdomain.com, and a DKIM key for each service that sends. - Send a message to a personal Gmail account. Open it, choose Show original, and look for SPF, DKIM and DMARC each marked PASS. - Read the DMARC policy. If it says p=none, your protection is not switched on yet. The first check needs no special software. On a Windows PC, open Command Prompt; on a Mac, open Terminal. Type nslookup -type=TXT yourdomain.com for SPF, then nslookup -type=TXT _dmarc.yourdomain.com for DMARC, with your real domain in place of yourdomain.com. The Google Admin Toolbox also has a browser-based Dig tool for the same lookup. DKIM is harder to see from outside, because you need the selector. For a Google Workspace domain using the default, look up the TXT record google._domainkey.yourdomain.com. For Microsoft 365, look up the CNAME records selector1._domainkey.yourdomain.com and selector2._domainkey.yourdomain.com with nslookup -type=CNAME. For any other service, open a message it sent and read the s= value in its DKIM-Signature header. To see the headers in Gmail on a computer, open the message, click More next to Reply, and choose Show original. In new Outlook and Outlook on the web, choose More actions, then View, then View message details. In classic Outlook, open the message in its own window, choose File, then Properties, and read the Internet headers box. The headers show more than PASS. In the Authentication-Results line, smtp.mailfrom shows the envelope sender SPF checked, header.d or header.i shows who signed, and header.from names the domain your recipient sees. A healthy result is dmarc=pass with your own domain, or a subdomain of it, beside the DKIM pass. A DKIM pass for someone else's domain, or an SPF pass only for a service's own bounce domain, explains a DMARC failure. Test every sender, not only your own mailbox. Send a real invoice, a newsletter test and an appointment reminder, or whatever your tools send, to an outside account; Google notes that you cannot verify DKIM by emailing yourself. If any of those come back wrong, do not guess at the fix. A broken SPF record can stop your own mail cold. Make the change on a quiet afternoon and test again. Google says new SPF and DKIM records can take up to 48 hours to start working, so check again over the next two days. ## A worked example Imagine a ten-person accounting office that uses Microsoft 365 with the domain example.com. It also sends invoices through a cloud billing service and a quarterly newsletter through an email marketing service. Clients have started mentioning that invoices land in spam. The five-minute check finds an SPF record of v=spf1 include:spf.protection.outlook.com -all, no DMARC record and no DKIM CNAME records. The billing service is missing from SPF, and nobody ever turned on DKIM for the custom domain, so Microsoft 365 has not been signing staff mail with example.com at all. In week one, the office's IT administrator turns on DKIM in the Defender portal, follows the billing service's documentation to add its SPF entry and sign invoices with example.com, and moves the newsletter to a subdomain, news.example.com, with its own SPF and DKIM records. Two days later, the administrator publishes a DMARC record at p=none, with reports going to a new mailbox set up for them and read through a reporting service. Over the next four weeks, the reports show Microsoft 365 and the billing service passing. They also show a sender nobody listed: a payroll portal that emails pay-stub notices with the office's address in the From line. It passes SPF for its own domain and fails DMARC for example.com, so the administrator sets it up to sign with the office's domain. The reports also show a few hundred messages a week from servers the office has never used, all failing, which is what someone forging the office's name looks like in a report. In week five, the administrator sends a test issue of the newsletter, confirms it passes, and moves the policy to p=quarantine. Nobody at the office posts to outside mailing lists, so after four more weeks with no legitimate failures, the policy goes to p=reject. The whole job takes about nine weeks, and most of it is waiting to see each kind of mail pass at least once. ## Common mistakes and how to spot them Most problems show up in the record text, in a test message's headers or in the reports: - Two SPF records on one domain, for example one added by a web host and one by a mail provider, visible as two lines beginning v=spf1. - An SPF record that needs more than ten lookups, which shows up as spf=permerror in test headers. - A service that passes SPF or DKIM for its own domain but not yours, shown by a pass next to another company's domain and dmarc=fail. - DKIM never switched on for a Microsoft 365 custom domain, shown on the DKIM tab in the Defender portal by a Disabled toggle and a status of NoDKIMKeys or CnameMissing. - A DKIM CNAME entered with the full domain in the name field, which some DNS hosts turn into selector1._domainkey.yourdomain.com.yourdomain.com, so the status stays CnameMissing. - Strict alignment copied from an example (adkim=s or aspf=s), which fails mail whose envelope or signature uses a subdomain such as bounces.yourdomain.com. - A DMARC record with no rua tag, or reports going to a former employee's mailbox, so nobody sees what is failing. - Parked domains with no SPF or DMARC record at all, which leaves them open to forgery. ## What to do this week A realistic first week looks like this: - Write down every domain you own, including old brand names. - List every system that sends mail with your name on it, from invoices and reminders to newsletters and scan-to-email copiers. - Run the five-minute check on each domain and save the exact record text with the date. - Find out which company hosts your DNS and who is allowed to change it. - If there is no DMARC record, publish one at p=none with a reporting address that someone will actually watch. - Put two dates on the calendar, one to review the first reports and one to decide on quarantine. ## One more thing These records protect your name. They do not stop a scammer from registering ourcompany-billing.com and sending from that. Train your team to check the sender's address, not just the display name, and to confirm any change of bank details by phone. Call a number you already have on file, not one in the message that asks for the change. The records close the front door. Your people watch the side door. ## Where ALCO can help For every Google Workspace and Microsoft 365 client, SPF, DKIM and DMARC are set up, aligned and enforced, and we read the reports so you do not have to. Adding a new tool that sends email is a request, not a project. Our email security service aligns these records for every service that sends as you, including CRM, invoicing and newsletter tools, and keeps DMARC in monitoring until every sender is authenticated. The help desk is staffed 24 hours a day, including holidays, and calls are answered by a person. If a message looks wrong, your staff can forward it to the help desk and have a person check it before anyone acts on it. The Google Workspace page at [alcohq.com/services/google-workspace](https://alcohq.com/services/google-workspace) and the Microsoft 365 page at [alcohq.com/services/microsoft-365](https://alcohq.com/services/microsoft-365) cover each platform, and the email security page at [alcohq.com/services/email-security](https://alcohq.com/services/security-and-compliance) covers other mail hosts too. ## Sources - SPF standard, RFC 7208, IETF - [datatracker.ietf.org/doc/html/rfc7208](https://datatracker.ietf.org/doc/html/rfc7208) - DMARC standard, RFC 9989, IETF - [rfc-editor.org/rfc/rfc9989.html](https://www.rfc-editor.org/rfc/rfc9989.html) - Email sender guidelines, Gmail Help, Google - [support.google.com/mail/answer/81126](https://support.google.com/mail/answer/81126) - Set up DKIM, Google Workspace Help, Google - [knowledge.workspace.google.com/…](https://knowledge.workspace.google.com/admin/security/set-up-dkim) - Set up SPF to identify valid email sources for your Microsoft 365 domain, Microsoft Learn - [learn.microsoft.com/…](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-spf-configure) - How to use DKIM for email in your custom domain, Microsoft Learn - [learn.microsoft.com/…](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure) - Set up DMARC to validate email in Microsoft 365, Microsoft Learn - [learn.microsoft.com/…](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-dmarc-configure) - Outlook's new requirements for high-volume senders, Microsoft Community Hub - [techcommunity.microsoft.com/…](https://techcommunity.microsoft.com/blog/microsoftthreatprotectionblog/strengthening-email-ecosystem-outlook%E2%80%99s-new-requirements-for-high%E2%80%90volume-senders/4399730) ## More from ALCO 3 December 2026 ### [What to look for in a help desk](https://alcohq.com/insights/what-to-look-for-in-a-help-desk) The help desk is the part of IT your team actually touches. Eight things to check before you choose one in the new year, and a scorecard to check them with. 18 min read [Read more](https://alcohq.com/insights/what-to-look-for-in-a-help-desk) 1 December 2026 ### [Why every device we manage gets a sticker](https://alcohq.com/insights/why-every-device-we-manage-gets-a-sticker) A small sticker with a big record behind it: who has the device, what it is, when the warranty ends. Why it matters the day a laptop goes missing. 18 min read [Read more](https://alcohq.com/insights/why-every-device-we-manage-gets-a-sticker) 30 November 2026 ### [QuickBooks Desktop without the one PC it depends on](https://alcohq.com/insights/quickbooks-desktop-without-the-one-pc) The whole business stops when the QuickBooks computer does. Hosting the desktop version on a server fixes that without moving to QuickBooks Online. 18 min read [Read more](https://alcohq.com/insights/quickbooks-desktop-without-the-one-pc) ## Apply this to your business Talk with ALCO about your systems and the next practical step for your organization. Name Email Details Interested in Help desk Development Hosting Other Fields marked “required” must be completed. Prefer to talk? Call [+1 (208) 391-7176](tel:+12083917176) or [contact us](https://alcohq.com/contact) .