Hi @Jonathan Priyaraj ,
Do you mean you want to retrieve a list of recipients for a specific sender in your organization over the past 6 months? If so, please run the command below to check the current maximum age set for the message tracking log files in your organization. (By default, it's 30 days, see this link.)
Get-TransportService | fl name, MessageTrackingLogMaxAge
If it's set to longer than 180 days, you can then run the command below to get the recipients list for the specific sender:
(Please replace "******@contoso.com" with the sender's email address on your side)
Get-TransportService | Get-MessageTrackingLog -Sender ******@contoso.com -ResultSize Unlimited -Start (Get-Date).AddDays(-180) -End (Get-Date) |select -ExpandProperty Recipients | Sort-Object -Unique > C:\recipients.csv
If the current current maximum age set for the message tracking log files is shorter than 180 days, you could only get the recipient list within that time span. In this case, in case you want to get a list over the past 6 months in the future, it's recommended to adjust the MessageTrackingLogMaxAge value using command below:
Set-TransportService -Identity <ServerName> -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.