How to Find Active Mail Routing Domains

Son 306 Reputation points
2022-01-19T10:50:29.003+00:00

We are starting an SPF/DKIM and DMARC project shortly and I need to find which of our over 200 accepted domains in Exchange online are actively routing mail within the last 60 days so we only make the changes to the domains we need to.

I can pull a list of all accepted domains but how do I find which domains have received inbound email within the last 60 days? I was thinking a message trace but you cannot do a wildcard message trace for all domains or even a per domain basis I don't think.

What's the best way of me gathering this information?

Thanks in advance!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,513 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,163 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,333 questions
{count} votes

Accepted answer
  1. Andy David - MVP 141K Reputation points MVP
    2022-01-19T13:22:22.313+00:00

    Actually you can use wildcard to see which domains senders are using . ( Sending domains are the ones you care about for this)
    *@yourdomain.com

    You can do one at a time though.

    so in the gui:

    https://admin.exchange.microsoft.com/#/messagetrace

    166358-image.png

    or with Exo Powershell:

    Get-MessageTrace  -StartDate 1/19/2022 -SenderAddress *@yourdomain -EndDate 01/20/2022  
    

    Note you can only search 10 days back using this command.

    If you want longer with powershell:
    https://learn.microsoft.com/en-us/powershell/module/exchange/get-historicalsearch?view=exchange-ps

    The Poral GUI may be the easiest solution :)

    0 comments No comments

0 additional answers

Sort by: Most helpful