There is an application in the environment that sends out a thousand messages each month via SMTP on a scheduled date and time. I have been asked to verify that every message has arrived and been processed successfully by the Exchange servers (the SMTP server has, in the past, encountered issues forwarding mail).
Is there a log file on the Exchange servers somewhere that contains metadata information that I can query via PowerShell?
I don't want to check every mailbox in the environment to see if it contains a specifically worded message, since that message can be deleted by the recipient upon arrival -- not to mention the time and resource utilization that would be required.
Any thoughts or suggestions on how to make this happen?
Is there a way to get a list of the users who received a specific message?
Something to the effect of:
Get-MessageTrackingLog -ResultSize unllimited -Sender <name of sender here> -SubjectContains <Some text here that's in the subject line> -EventID <Success, or something to the effect, to get successful deliveries>