MTA-STS failure

MP-9510 20 Reputation points
2024-11-22T21:07:09.13+00:00

When emails are sent to my email address on my self-hosted email server, from Microsoft (Office 365 or Exchange), the MTA-STS policy of my self-hosted mailserver is not applied due to the error listed below.

I have tested my MTA-STS policy using several DMARC-providers, eg 'Mailhardener' etc., and they all find the MTA-STS policy url is reachable and the policy is valid.

This problem does not occur with incoming email from other email providers, eg Gmail.

There are no other email problems, eg. SPF, DKIM, DMARC etc.

Please help me solve this issue. I obtained the error from my DMARC-provider.

Error:

{"organization-name":"Microsoft Corporation","date-range":{"start-datetime":"2024-11-18T00:00:00Z","end-datetime":"2024-11-18T23:59:59Z"},"contact-info":"[email protected]","report-id":"133765181884122747+REDACTED","policies":[{"policy":{"policy-type":"sts","policy-domain":"REDACTED"},"summary":{"total-successful-session-count":0,"total-failure-session-count":2},"failure-details":[{"result-type":"sts-policy-fetch-error","failed-session-count":2}]}]}

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Purview
{count} votes

1 answer

Sort by: Most helpful
  1. Nick Dempsey 0 Reputation points
    2025-07-09T10:55:06.21+00:00

    MP-9510 I had issues receiving emails from exchange servers specifically like you were. It was due to the MX record in DNS pointing to a CNAME record. It seems Microsoft may have implemented a stricter reading of an RFC and the MX record needs to point to A / AAAA records. That was the missing piece for me.

    i.e. If your MX record returns mail.<your-domain>
    and mail.<your-domain> is a CNAME record for <your-domain> or any other address
    then mta-sts validation will fail.

    Resolving mail.<your-domain> MUST return an A and/or AAAA record.

    Sources:
    Introducing MTA-STS for Exchange Online
    Clarifications on MTA-STS Policy with CNAME Records

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.