Office365 checking DMARC on the inbound


According to a recent blog post, Office365 is starting to evaluate incoming messages for DMARC. I talked a little bit about DMARC in April when Yahoo started publishing a p=reject message.

DMARC stands for Domain-based Message Authentication, Reporting and Conformance. What DMARC does is allow domain owners to publish policy statements in DNS telling receiver domains what to do with messages that do not authenticate. In addition, DMARC introduces the concept of “domain alignment.” What this means is that the authentication has to be from the same domain (or a sub-domain) as the address in the header-from: line. The idea behind DMARC is that organizational owners can use SPF and DKIM authentication to authenticate their actual domain in the header-from line. This moves authentication from a important but behind the scenes technology out to an end user visible technology.

What Office365 is doing is evaluating incoming messages by checking to see if the domain in the visible from is publishing a DMARC record by doing a DNS lookup on and seeing if the domain publishes a policy (p=reject, p=quarantine or p=none). I find it hard to keep all this authentication talk straight in my head, so we’ll walk through an email in my inbox from a domain I know publishes a DMARC policy: LinkedIn.
We can look at LinkedIn’s DMARC record and see they are publishing a p=reject message. 43200 IN TXT "v=DMARC1\; p=reject\;,\;,\;pct=100"

This tells us that LinkedIn claims any mail with a visible From address that is not authenticated by LinkedIn should be rejected. For the actual authentication we use SPF and DKIM.
SPF looks at the domain in the return path to see if it authenticates. Pulling data out of the mail I got from linked in earlier today we see a return path and a connecting IP.

Return-Path: <>
Received: from ( []) by (Postfix) with ESMTPS id B026F17EC4E for <>; Thu, 22 Jan 2015 14:51:37 -0800 (PST)

SPF does a TXT lookup on, that sends us to and we see a number of IPs listed.   "v=spf1"       "v=spf1 ip4: ip4: ip4: ip4: ip4: ip4: ip6:2620:109:c00d:104::/64 ip6:2620:109:c006:104::/64 ip6:2620:109:c003:104::/64 ip4: mx ~all"

SPF passes as the IP we received the message from ( is in the SPF record.
We can actually stop here, SPF has authenticated and DMARC only requires either SPF or DKIM to be valid. But let’s keep going.
DKIM cryptographically signs an email and assigns responsibility (authenticates) the domain in the d=value, in this case

Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=proddkim1024; t=1421967091; bh=M6KAF0X71EsB2NXpXSB0cB2ZaXEq7pcw31B8cHashmk=; h=From:Subject:MIME-Version:Content-Type:To:Date:X-LinkedIn-Class: X-LinkedIn-Template:X-LinkedIn-fbl; b=U2WtG04z5aII8BjRBiurVonfR9ZB5bmqs51Aon0OrscuGe6k2U7ml9xPf3NNYeiTA +MrAsjUVpPr4mUD9uRrILKfO4Yu+szi3LBaJbCc2SrcmDq7kaanOqEswkUn1UfDEs4 hfO5gxZ7VKdovTVwHp1Rbe/tGb1DR+V09QgDBUjY=

Our mail server does check DKIM on the inbound, so we look at the authentication results to see if the mail passed.

Authentication Results: dkim=pass (1024-bit key)

This email is also authenticated by DKIM.
Finally, the authenticated domains (in this case authenticated with SPF and authenticated with DKIM) are compared with the address in the from line.

Anthony Chiulli <>

All of these domains are in the same organizational domain ( so the message is authenticated with DMARC.
If the message was not authenticated by SPF and DKIM, or the authentication mapped back to domains that were not then the mail would fail DMARC authentication. Companies checking DMARC on the inbound could reject the message for failing DMARC authentication.
There are some sticky corners where valid mail will fail DMARC authentication. Due to this, Microsoft is not going to reject mail that fails DMARC even when the sender publishes a p=reject. Instead, they will quarantine that message. In Microsoft’s own words:

One of the key changes that Office 365 has made that differs from the DMARC specification is how it treats messages that fail DMARC for inbound messages. If the DMARC policy says p=reject, EOP will mark the message as spam instead of rejecting it. In other words, for inbound email, EOP treats p=reject and p=quarantine the same way.
The reason for this is that there is some legitimate email that fails DMARC. Examples include sending email to mailing lists which is relayed to all list participants, and “Send-to-a-friend” articles from newspaper websites. If EOP rejected these messages per the DMARC specification, people could lose legitimate email with no way to retrieve it.
In EOP’s implementation, these types of emails will still fail DMARC but they will be marked as spam. However, users can still get them to their inboxes by adding safe senders or by administrators creating Exchange Transport rule (ETR) Allow for those particular senders. When the DMARC Working Group adds support for these types of messages, EOP will support it. But for now, this is the way it works.

Microsoft isn’t the only company who is only partially implementing DMARC, but they are the first to make a public statement about it.
Companies using Office365 seeing odd or unexpected mail failures should check their quarantine/bulk/spam folders and follow the directions on the Office365 website if those failures are due to a DMARC fail.
HT: Anthony Chiulli from Salesforce.

About the author


This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • On a DMARC failure with p=reject, Office 365 also sets the Phishing Confidence Level to 8 (X-MS-Exchange-Organization-PCL: 8). In Outlook mail clients this sets the phishing flags and disables Reply, Reply All, attachments, and links (we are currently working on verifying this end-to-end). That helps to prevent users from taking action on a message that failed DMARC.

  • My employer has a O365 tenant, and I am trying to understand how DKIM and DMARC works for inbound emails.
    When you say “Our mail server does check DKIM on the inbound”, how did you enable your exchange server or O365 to check DKIM on the inbound? Or is it ON by default?
    Can you disable DKIM checking on inbound?
    Same question for DMARC, does it need to be enabled for INBOUND emails?

  • The “our mail server” is the one we manage and run, it’s not hosted by MS. For Office365, the DMARC and DKIM checking are on by default.
    I can’t believe I didn’t link to Terry’s blog post. He’s got a lot of good ones, I suggest checking his page:

By laura

Recent Posts


Follow Us