Mailshake DKIM half configured in Microsoft 365 (CNAME fix)
Publishing the two Microsoft 365 DKIM CNAMEs without enabling signing does not usually cause bounces; Microsoft keeps signing with its default domain. The risk is DMARC alignment that rests on SPF alone. Finish enabling in Defender or PowerShell, or delete the CNAMEs, then verify a test message before sending.
Sohail Hussain8 min readShort answer
- Finish the job: once both CNAMEs resolve, enable DKIM signing for the domain in Microsoft 365, or delete both CNAMEs if you do not control the tenant.
- Send a test message to a personal mailbox and confirm dkim=pass with your own domain in the header before you resume any Mailshake campaign.
You followed Mailshake's DKIM steps for Microsoft 365, published the two CNAME records, and then stopped, usually because the last step needed tenant admin rights or PowerShell. Now the records sit in DNS, signing is not on, and you are wondering whether your cold email is quietly going wrong.
A half-configured setup is less dangerous than it sounds, but it is not safe to leave. What it does depends on which half you finished.
Why a half-configured setup causes trouble
Microsoft 365 DKIM has two parts. The DNS part is two CNAME records, selector1._domainkey and selector2._domainkey, which point to keys Microsoft hosts for your tenant. The tenant part is a per-domain switch that tells Exchange Online to start signing with those keys. Publishing the CNAMEs does not flip the switch.
People on public forums have reported this exact situation, often on a client's domain where an agency published the records but the client never approved the admin step. I would not expect the first state in the table below to cause bounces by itself. Trouble comes when a DMARC policy of quarantine or reject is in place and SPF does not align cleanly, or when someone later breaks the records of a domain that is already signing. We do not know of any case where unused CNAMEs alone trigger rejections.
| State | What happens to your mail | Fix |
|---|---|---|
| CNAMEs published, signing off | Microsoft signs with its default onmicrosoft.com domain, which does not align with your From domain, so DMARC leans on SPF alone | Enable signing |
| Signing on, CNAMEs later removed or changed | Signature cannot be verified; receivers see dkim=fail or a DNS error; strict DMARC can quarantine or reject | Restore the exact CNAMEs |
| Only one CNAME published | Portal will not let you enable signing and reports missing records | Publish the second CNAME |
| Both CNAMEs correct, signing on | Mail is signed with d=example.com | Target state |
Portal menus change over time, so follow the descriptions below rather than old screenshots.
Check where you are right now
Look up both records from any terminal:
nslookup -type=CNAME selector1._domainkey.example.com
nslookup -type=CNAME selector2._domainkey.example.com
Each should return a Microsoft-hosted name tied to your tenant. If one is missing, or points to a different tenant, fix that first. Copy the exact values from Microsoft's own DKIM page for your domain rather than from any guide, because the target format differs between tenants.
Then check whether signing is on. In the Microsoft Defender portal, open Email authentication settings (search for it if the menu has moved), select the DKIM tab, and select your domain. The toggle Sign messages for this domain with DKIM signatures shows the state.
Fix 1: finish enabling DKIM
This is the usual fix. You need an account with admin rights on the tenant. For a client's domain, ask them to do this step or grant you delegated access.
- In your DNS provider, confirm both CNAMEs exist exactly as the Defender portal shows them. DNS can take minutes, sometimes a few hours, to propagate.
- In the Defender portal, open the DKIM tab and select the domain.
- Switch Sign messages for this domain with DKIM signatures to enabled.
- If the portal says the CNAME records do not exist, wait and retry. Do not republish different values.
Do not edit records to chase the error
Changing CNAME values while the portal is still waiting on DNS is how people end up with a mismatch. Wait, retry, and only edit if a lookup shows the wrong target.
If the portal fails: PowerShell
If the portal fails or the domain does not appear, PowerShell works. Connect to Exchange Online first, then:
# See whether a signing config exists for the domain
Get-DkimSigningConfig -Identity example.com
# If Get returned nothing, create it
New-DkimSigningConfig -DomainName example.com -Enabled $true
# If it exists but is disabled, enable it
Set-DkimSigningConfig -Identity example.com -Enabled $true
Run only one of the last two, depending on what the first command returned.
Fix 2: remove the CNAMEs
If you do not control the tenant, or the client will not approve the change, delete both CNAMEs. Check first that signing is not already enabled for the domain; deleting records under an active signing config creates the failure state in the table above.
If signing was never enabled, removal returns you to Microsoft's default signing, and a stale record stops being a trap for whoever inspects DNS next. Then make sure SPF and DMARC are in a state where mail still passes without your own DKIM. Until then, I would hold cold sequences rather than send on SPF alone.
Verify before you send
Do not resume a campaign on assumption.
- Send a message from the connected mailbox to a personal Gmail address.
- In Gmail, open the message menu and choose Show original.
- Look for
DKIM: PASSand, in the headers,dkim=pass header.d=example.com. Ifheader.dshows youronmicrosoft.comdomain, your own signing is not active yet. - Paste the raw headers into our email header analyzer if you want the result laid out clearly.
If the test still shows the old domain
Right after enabling the toggle, Exchange can keep signing with the old identity for a while. Wait and send another test rather than changing records.
Checklist before you resume campaigns
- Both
selector1._domainkeyandselector2._domainkeyresolve to Microsoft-hosted targets for your tenant. - The DKIM toggle for the domain is enabled in Microsoft 365.
- A test message shows
dkim=passwithheader.dset to your own domain. - SPF includes Microsoft 365 for the mailbox you send from.
- DMARC is at
p=nonewhile you are still sorting out authentication.
Prevent it next time
Treat DKIM as three tasks, not one: publish both CNAMEs, enable signing, verify with a real message. Do not start a cold sequence between tasks one and three. Keep a p=none DMARC policy until reports show clean passes, then tighten it. Our SPF, DKIM and DMARC setup guide covers the full sequence, and the DKIM glossary entry explains selectors if the record names look odd.
If nothing works
Start with whoever controls the tenant. Microsoft 365 support or your tenant admin can see why the toggle will not enable; Mailshake support can only confirm which records their guide asks for. Include the domain, the output of both nslookup commands, the exact portal message, the time of your last test send, and the raw headers of a test message.
Subject: DKIM will not enable for example.com in Microsoft 365
Hello,
Both DKIM CNAME records (selector1._domainkey and selector2._domainkey)
are published for example.com and resolve to Microsoft-hosted targets.
When I try to enable signing, the portal says: {exact message}.
Steps already tried: waited {hours} hours, confirmed records with nslookup,
tried Set-DkimSigningConfig in PowerShell (result: {result}).
Test message headers attached, sent at {timestamp}, showing
header.d={domain seen}.
Can you tell me why signing is not enabling for this domain?
Where Mailneo fits
This problem comes from Mailshake's setup instructions and Microsoft's tenant settings, so switching sending tools does not fix it. What Mailneo does help with: for connected accounts, it checks your sending domain's SPF, DKIM and DMARC records and whether they authorize the provider you use, and it tells you what to fix. It cannot change your DNS or enable signing inside your Microsoft 365 tenant; both stay with you or your IT admin. See how Mailneo connects email accounts.
Common questions
Will unused DKIM CNAMEs get my mail rejected?
On their own, no. Unused CNAMEs mean Microsoft keeps signing with its default domain. Problems start when a strict DMARC policy meets weak SPF alignment.
Do I need both CNAMEs?
Yes. Microsoft will not let you enable signing until both selector records resolve, because it rotates between the two keys.
How long until DKIM shows as passing?
DNS can take minutes to a few hours. After you enable the toggle, send a fresh test message; older messages keep their original signature.
Can I enable DKIM without admin rights?
No. The toggle and the PowerShell commands need admin rights on the tenant, so ask the tenant owner to do it or grant delegated access.
Explore: Email Deliverability
Related Articles
Mailshake emails going to spam: will switching to Smartlead help?
Switching cold email tools rarely fixes spam placement, because the tool is not what Gmail judges. Your domain reputation, authentication, list quality and sending pattern are. Audit those first; if they pass and one provider still fails, then compare tools. A clean audit is the only point where a switch makes sense.
Pre-send deliverability checks: what to test and how often
Run a full pre-send check when something changes: new creative, new domain, new mailbox, new list source. In steady state, do a short weekly spot check and a quick look before each send. Check more often during warm-up. Falling open rates tell you too late, so check authentication, list quality and blacklists first.
0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed
Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.
SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it
`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free