I've previously asked for message tracking on the add-on too. Would be really handy
In the mean time it's possible to use the 'Get-MessageTrace' powershell command in a simple script. Don't expect the below to work by copying it verbatim as it's not complete but it should give you an idea what I've done to deal with this for the interim. It's not perfect but it does work. If anyone wants to offer suggests to wrap some more smarts around it go your hardest, feedback is more than welcome 🙂
...
<session stuff>
...
For ($i=1; $i -le 10; $i++) {
Get-MessageTrace -PageSize 5000 -Page $i -StartDate ([DateTime]::Now.AddMinutes(-30)) -EndDate ([DateTime]::Now.AddMinutes(-15)) | Select @{Name="time";Expression={$_."Received"}},
@{Name="message_id";Expression={$_."MessageID"}},
@{Name="recipient";Expression={$_."RecipientAddress"}},
@{Name="sender";Expression={$_."SenderAddress"}},
@{Name="src_ip";Expression={$_."FromIP"}},
@{Name="dest_ip";Expression={$_."ToIP"}},
@{Name="subject";Expression={$_."Subject"}},
@{Name="status";Expression={$_."Status"}},
@{Name="size";Expression={$_."Size"}} | Export-Csv "c:\temp\message_trace\$((get-date ([DateTime]::Now) -Format yyyyMMddTHHmm))_page_$i.csv" -NoTypeInformation
}
... View more