none
email not received RRS feed

  • Question

  • Hi experts, i am literally confused please guide me

    One of my office365 user has sent emails to onprem user. office365 user claims he sent 5 mails and onprem user says that he got only 2 mails.

    i am trying the below syntax on onprem to check if mail has been received to onprem,
    i am not getting output, please help me correct syntax.

    $servers = get-content "C:\Myexchangeservers.txt"
    $servers | foreach {Get-TransportService -Identity $_ | Get-MessageTrackingLog -sender "off365user@mydomain.com" -recipients "exchangeonpremuser@mydomain.com" -ResultSize unlimited -Start "10/01/2018" -End "10/05/2018"| Where-Object {$_.Eventid -like "Deliver" -and $_.Source -like "STOREDRIVER"} | Select-Object sender,messagesubject,@{Name="Recipients";Expression={$_.recipients}},@{Name="RecipientStatus";Expression={$_.recipientstatus}},messageid,timestamp,Eventid,Source,TotalBytes} | Export-Csv C:\received.csv -NoTypeInformation

    To check if mail has hit exchange and has not received on mailbox.

    $servers = get-content "C:\Myexchangeservers.txt"
    $servers | foreach {Get-TransportService -Identity $_ | Get-MessageTrackingLog -sender "off365user@mydomain.com" -recipients "exchangeonpremuser@mydomain.com" -ResultSize unlimited -Start "10/01/2018" -End "10/05/2018" | Where-Object {$_.Eventid -like "*fail*"} | Select-Object sender,messagesubject,@{Name="Recipients";Expression={$_.recipients}},@{Name="RecipientStatus";Expression={$_.recipientstatus}},messageid,timestamp,Eventid,Source,TotalBytes} | Export-Csv C:\fail.csv -NoTypeInformation


    From message trace in office365 i can see user has sent emails, he has added many people either is cc or bcc, i can see all the details.

    sender address: off365user@mydomain.com
    Recipient status: exchangeonpremuser@mydomain.com##Receive, Deliver;
    message subject:xyz
    message id:

    Please help me resolve this

    Monday, October 29, 2018 5:45 PM

Answers

  • Hi Risingflight,

    Just run commands below three times on-Premise Exchange, why bother to writing a script? In this situation, writing a script will waste your time rather than save your time.

    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject1"
    
    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject2"
    
    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject3"

    Regards, 

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, October 30, 2018 9:05 AM
    Moderator

All replies

  • Hi Risingflight,

    Just run commands below three times on-Premise Exchange, why bother to writing a script? In this situation, writing a script will waste your time rather than save your time.

    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject1"
    
    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject2"
    
    Get-MessageTrackingLog -Sender off365user@mydomain.com -Recipients exchangeonpremuser@mydomain.com -MessageSubject "Subject3"

    Regards, 

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, October 30, 2018 9:05 AM
    Moderator
  • Hi Risingflight,

    Any update now?

    If the above suggestion helps, please be free to mark it as answer for helping more people.

    Regards,

    Kyle Xu


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, November 1, 2018 8:49 AM
    Moderator