How to check if emails are correctly routed through the CodeTwo service in Microsoft 365
You would like to check if the email you sent was correctly routed through the CodeTwo cloud service.
The first step in checking if the email was routed through our service is sending a test message. Such a message can be sent using your own account or from another user account, as discussed in this article. Make sure that:
- this account belongs to the senders scope defined when configuring Exchange Online connectors (as discussed here),
- it is included in at least one active (published) cloud/server-side signature rule,
- the conditions defined in the Senders, Recipients and Keywords steps of that rule are met when the test message is sent (see this article to learn more about signature rule conditions).
Then, once sent a test message, there are two methods to check if your message was routed correctly:
CodeTwo Outlook (client-side) email signatures are added directly in Outlook or OWA. This means that messages which receive the Outlook signatures are never routed through CodeTwo. The solution discussed in this article does not apply to such messages.
To check if an email was routed through CodeTwo, you can generate a message trace report and interpret the information found in the report.
Follow the links below to learn:
- How to create a message trace report in the Exchange admin center
- How to interpret the information in the message trace report
- Open the Exchange admin center and go to Mail flow > Message trace (Fig. 1.).
- Click Start a trace to start configuring a new message trace query.
- Use the Senders field to only include the user account from which the test message was sent.
- Limit the period covered by the message trace report to only include the time when the test message was sent.
- In the Choose report type section, select Summary report.
- Click Search to run a message trace and generate a report.
In this example, we will have a look at a message trace report generated in the Exchange admin center. If your test email was routed through CodeTwo, it will appear twice on the Message trace search results list (Fig. 2.).
This happens because a message is first sent to the CodeTwo cloud service via the outbound connector (this is indicated by the first result in the report). Then, after being routed to our service, the message is received back in Exchange Online via the inbound connector and sent to the intended recipient (this is indicated by the second result in the report).
Click on the first result (the message with an earlier date and time of sending) to view message trace details, as shown in Fig. 3.
If the message was sent to our service, the name of the CodeTwo Outbound Connector will be listed in the Connector name field. Also, the address in the Destination smart host field will refer to CodeTwo. This confirms that it was sent to the CodeTwo service.
If you have configured connectors automatically, the name of the connector will be CodeTwo Outbound Connector (followed by an individual number). If you have configured your connectors manually, the name may be different. However, it is recommended to follow our naming convention to make it clear what the function of the connector is.
If you are using smart host (mail relay) services in your environment, the trace report may look different. Read this article to learn more about configuring smart host services.
When you open the second message trace result that refers to the same message (the one with the later date and time of sending, as shown in Fig. 2. above), you will find a confirmation that the message was sent to its intended recipient (Fig. 4.).
How to check if an email was routed through CodeTwo by using the information found in the message header
To check if a message was routed through the CodeTwo service, you need to obtain the test message you sent, saved as an MSG or EML file. If you sent this message to an external recipient, request that person to provide you with a copy of the message. Once you get it, you can find the necessary information in the message header.
Follow the links below to learn:
- How to save an email message as a file in Outlook
- How to interpret the information available in the message header
It is not sufficient if the recipient sends a reply to your message. If that is the case, the header will not contain the information you require to verify if the message was correctly routed to the CodeTwo service. Make sure the recipient sends you a file containing the original message.
To save a received email as a file, follow the steps below:
- Open Outlook.
- Double-click the message to open it in a new window.
- Go to File > Save as.
- Select the MSG file type, choose location and click Save (Fig. 5.).
Not all email clients have the option to save a message as a file. One such example is Outlook on the web (OWA). Make sure that the recipient of your test message will be able to provide you with the file you need.
- Open the message in Outlook. If you received an EML file, you can also use Notepad. Learn more
- Go to File > Properties to open the Properties window.
- In the Internet header field, find the following phrase:
If this item is present in the header, the message has been routed to the CodeTwo cloud service (Fig. 6.).
- Right-click on the file, click Open with and select Notepad from the list of apps.
- Search for the following phrase in the file:
- If found, the message has been routed to the CodeTwo service.