I've been asked to see if we can get an idea of how many external mails we receive, and what external domains are the most "active".
Basically what's wanted is a report detailing how many mails we receive from external domains under a specified time period:
I'm thinking something along these lines is what's being asked.
*@gmail.com; 450
*@yahoo.com; 200
I'm comfortable using Powershell and have started looking there, but I'm really not finding anything giving me the results I'm looking for.
Get-MailFlowStatusReport, Get-MailTrafficReport and Get-MailTrafficSummaryReport give me raw numbers for in and outgoing mail, but as far as I can tell they don't give the more detailed reports being asked for.
Theoretically I should be able to write something which iterates over all mailboxes with a Get-MessageTrace and extracting all external addresses. But that's major overkill and would probably take forever to run. Not to mention that would only give me the statistics for the latest ten days.
MS Graph may have better tools for this type of report, but I've barely used Graph, and in my googling I haven't found anything there or in EAC which matches what we're after.