Forum Discussion
Charles-André Bélanger
Jul 12, 2017Brass Contributor
Looking for a way to track secondary email address
Hello, in my Office 365 tenant , every user has a secondary email addres (lower case smtp:xxxx-upa@mydomain.com) I need a way to track email to those addresses , so I can evaluate the needs of that...
VasilMichev
Jul 12, 2017MVP
Message trace will work just fine for secondary aliases:
[21:34:52][O365]# Get-MessageTrace -RecipientAddress postmaster@michev.info Received Sender Address Recipient Address Subject Status -------- -------------- ----------------- ------- ------ 12/07/2017 18:35:01 michev@gmail.com postmaster@michev.info Test Resolved [21:38:01][O365]# (Get-Mailbox vasil).emailaddresses SIP:vasil@michev.info SMTP:vasil@michev.info smtp:postmaster@michev.info
- Charles-André BélangerJul 12, 2017Brass Contributor
thanks for the answer
this is good for a "one by one" interrogation. what if I want the big picture, I suppose I need to code some powershell to go thru all of my mail file?
- VasilMichevJul 13, 2017MVP
There are scripts out there that do this already, such as: https://gallery.technet.microsoft.com/office/Office-365-Mail-Traffic-afa37da1
You can simply modify it to fit your needs.