Mail count

Hriday Saha 146 Reputation points
2022-09-11T11:07:38.433+00:00

I need a mail count from any mailbox of my organization to a distribution mailgroup. is there any script or cmd to find out this information?

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,762 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,291 Reputation points
    2022-09-12T02:11:08.367+00:00

    @Hriday Saha

    You could use command below to check for it:

    Get-TransportService | Get-MessageTrackingLog -Start "9/01/2022 09:00:00" -End "9/13/2022 09:10:00" -Recipients DL@domain.com -EventId RECEIVE -Source SMTP | select Sender  
    

    Please note, Message Tracking Log only could check logs within 30 days by default.

    Get-TransportService | fl MessageTrackingLogMaxAge  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

0 additional answers

Sort by: Most helpful

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.