question

SergeyBelikov-1973 avatar image
0 Votes"
SergeyBelikov-1973 asked FLeh-5015 edited

Internet message id differs in Sent and Inbox item when Outlook connected to Exchange in OnlineMode

Hi!

When Outlook is working in online mode (not cached), interenet message id is broken during sent. When I check internet message id (PR_INTERNET_MESSAGE_ID_W) in Sent folder and for the same item in recepient's Inbox folder it is different. Sent time is also different and can differ up to 10 seconds and once it was even 10 minutes! Even in the simplest case when I sent a message to myself breaks.

There is KB924213 that describing a similar issue. It is deleted, but can be found here:
https://www.betaarchive.com/wiki/index.php/Microsoft_KB_Archive/924213

But the situation even worse than described there. It does not work in online mode and:
"In Online mode, when you send a message, it is submitted to Exchange and then stamped with PR_INTERNET_MESSAGE_ID. The copy in your Sent Items and the received item in your Inbox contain the same PR_INTERNET_MESSAGE_ID because they originated from the same message."
is not true.

Tested on different Exchange versions (2013, 2016) - the issue is the same. Outlook is from Office 365.

Any clues why it is broken? Any workaround for this? The only way to identify that this is the same e-mail is PR_SEARCH_KEY, but we get info about the message from the document management system which does not contain such info. They also rely on internet-message-id.

office-exchange-server-administrationoffice-outlook-itprooffice-exchange-server-connectivity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LucasLiu-MSFT avatar image
0 Votes"
LucasLiu-MSFT answered LucasLiu-MSFT commented

Hi @SergeyBelikov-1973 ,
In order to better solve the issue, I need to ask some questions.
1.Only one user have this issue or all users have this issue?
2. Is your Exchange environment separate Exchange 2013 and Exchange 2016 or does Exchange 2013 and 2016 coexist? What is the specific version?You could run the following command to view the Exchange version.

 Get-Exchangeserver | fl *version*

26131-4444.png
3.Which server are the sender and recipient on?

According to my test in Exchange 2016, the message sent/received in Online mode and viewed in Online/Cache mode - PR_INTERNET_MESSAGE_ID is present on message in Sent Items and is the same as PR_INTERNET_MESSAGE_ID of the message in the Inbox. The following is my specific test in the test environment, I send a email from Administrator to user1, and view the PR_INTERNET_MESSAGE_ID by MCFMAPI. Found that the values are the same.
26058-1111.png
26059-22222.png

Please following the steps and see if the issue is resolved:
1.Please check if there have any transport rules that could change the message id.
2.Please try to run “outlook.exe /safe" in “Run” to start Outlook in safe mode. Safe mode will disable the add-in in outlook, in order to exclude the possibility of third-party add-in causing this issue.
3.Please send a test email and then run the following command to check message id in message tracking log. Check whether the message id changes during internal delivery.The screenshot below is my test in lab.

 Get-MessageTrackingLog -Server Exchange2016 -Start <> -End <> -Sender <> | fl messageid,eventid,source

26141-3333.png



If the response is helpful, please click "Accept Answer" and upvote it.
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.






4444.png (3.2 KiB)
1111.png (13.4 KiB)
22222.png (9.2 KiB)
3333.png (17.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

  1. It was reproduced at least on 2 accounts on the same server

  2. Exchange version: 15.0.1473.4003. It is a separate server in a cloud.

  3. Issue happens only when I send an e-mail to myself in Outlook online mode. In cached it works ok. Sending message to another user or even adding someone to CC also works ok.

Can you tell me what is the difference between cached and online-mode regarding internet-message-id generation?
I thought that in both cases they are generated by Exchange on a server-side. Or maybe there is some kind of optimization when sending message to self which works incorrectly?


0 Votes 0 ·

Hi @SergeyBelikov-1973 ,
I am writing here to confirm with you how thing going now? If the above suggestion helps, please click “Accept as answer” to mark helpful reply as an answer.Your action would be helpful to other users who encounter the same issue and read this thread.
Thanks for your understanding.



If the response is helpful, please click "Accept Answer" and upvote it.
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.


0 Votes 0 ·
LucasLiu-MSFT avatar image
0 Votes"
LucasLiu-MSFT answered LucasLiu-MSFT edited

Hi @SergeyBelikov-1973 ,
1. According to the information, you mean that this issue only occurred during you send an email to yourself in Outlook online mode. Please correct me if I understand it wrong.
2. Based on my knowledge, you are correct, the Message ID is generated by the mailbox system, which is Exchange server. When Outlook is in Online mode, it will always be connected to the Exchange server. According to my test, it is the same as the article you provided. Sending or receiving emails in Online mode can be viewed the same "PR_INTERNET_MESSAGE_ID" on both sent and received emails. If you sending or receiving emails in Cache mode, you couldn’t view the “PR_INTERNET_MESSAGE_ID" on send mail in Cache mode.
This article will help you better understanding : Comparison of Cached Exchange Mode and Online Mode
3. What is the query result of sending a test email and running the above command line? Did the parameter "Message ID" changed during the delivery process?
4. You could send a test email, and then put the email header into the Message Header Anaylzer in ExRCA for analysis. The analysis result will show the routing information of the mail during transmission.
About ExRCA: Microsoft Remote Connectivity Analyzer
26395-33333.png



If the response is helpful, please click "Accept Answer" and upvote it.
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.





33333.png (114.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SergeyBelikov-1973 avatar image
0 Votes"
SergeyBelikov-1973 answered LucasLiu-MSFT commented
  1. On Exchange 2013 yes, it is stable reproduced only when I sent message to myself. On Exchange 2016 (Exchange Server 2016 CU15December 17, 201915.1.1913.515.01.1913.005) it was reproduced once when sending to another user on the same server, but selfsend is working ok even in online mode with the same Outlook client (using different profiles to check).

  2. Actually, in cached mode internet-message id also appears on sent item on the next synchronization with Exchange. But we can see it in online mode or bypassing the cache. Anyway, currently, we are trying to make it work properly in online mode.

I checked the article you provided, but want to know how it is handled inside Exchange. When it sets internet-message-id, how and when sent-time transformation happens, which optimizations uses when message sent between users on the same server? I was not able to find such info.

I have also tested selfsent on Exchange 2013 using OWA. In this case, it is the same. So this looks like Outlook/Exchange combination issue.
Outlook version is Outlook for Microsoft 365 16.0.13127.20266 32-bit.
But our clients using Outlook 2016 and we need to support it also.

Regarding command line checks, will try to contact our admins to test.
Nothing interesting in headers. See picture.
26483-screenshot-2020-09-22-132849.png



· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SergeyBelikov-1973 ,
According to my research and test, the "Sent" time stamp on email messages in outlook is determined by the time zone information of the operating system where the Outlook client is located. Exchange server itself will not perform any optimizations. Message Id is the unique identifier assigned to the mail by the Exchange server. However, when the message is delayed or blocked in the delivery process, the message Id may change.
For more information :The "Sent" time stamp
1.Please run the following command to check if the time zone of the problematic user's mailbox the same as the time zone of the normal user's mailbox.

 Get-MailboxRegionalConfiguration -Identity <>

2.Please check if there have any related transport rules in your Exchange server and any inbox rule in your outlook.



0 Votes 0 ·
  1. In order to better solve your problem, it is recommended that you send a test email and follow the command line provided above to view the message tracking log, you will be able to view the time spent and message Id value of the message every steps during transmission.



If the response is helpful, please click "Accept Answer" and upvote it.
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.


0 Votes 0 ·

This is not a timezone issue, because the sent time difference is seconds, not hours. As I understand, in Cached mode, Outlook sets Sent time on the sent item with local time and when it is actually sent, Sent time is set on a server and then propagated back to the OST (with internet message id too).

No inbox rules in Outlook.
On the server we have Amazon SES enabled, but as I understand it is not used when sending messages to self. And when internet-message-id is set by SES it is in entire different format. In those selfsent messages format is the same, but value differs.


0 Votes 0 ·

Hi @SergeyBelikov-1973 ,
According to Amazon's official article, when Amazon SES is deployed, Amazon SES will overwrite the message id of the sent email with its own value. If possible, please try to temporarily close Amazon SES and send a test email to see if the message id of the email will change.
For more information: Header fields
As mentioned above, Message tracking log will help solve the issue.



If the response is helpful, please click "Accept Answer" and upvote it.
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.





0 Votes 0 ·
Show more comments

Hi @SergeyBelikov-1973 ,
I am writing here to confirm with you how thing going now? If the above suggestion helps, please click “Accept as answer” to mark helpful reply as an answer.Your action would be helpful to other users who encounter the same issue and read this thread.
Thanks for your understanding.



If the response is helpful, please click "Accept Answer" and upvote it.
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.


0 Votes 0 ·

Hi @SergeyBelikov-1973 ,
I haven't received your reply for a long time, I am writing here to confirm with you how thing going now?



If the response is helpful, please click "Accept Answer" and upvote it.
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.




0 Votes 0 ·
SergeyBelikov-1973 avatar image
0 Votes"
SergeyBelikov-1973 answered FLeh-5015 edited

New info. We were able to reproduce this again when sending between users on the same Exchange. But this time with Exchange 365 (15.20.3391.14). In Outlook cached mode works ok, in online internet-message-id changes. Both Outlook users are in online mode.
28392-wrong-internet-message-id.png



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @SergeyBelikov-1973 ,

We have encountered exactly the same problem in our Exchange 365 tenant with some users.
The message ID changes in online mode and we have problems with an external provider attaching signatures.

Have you been able to resolve the issue?

Thanks

0 Votes 0 ·