Knowledge Base

How to check if emails are correctly routed through the CodeTwo service in Microsoft 365

Problem:

You would like to check if the email you sent was correctly routed through the CodeTwo cloud service.

Solution:

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:

Info

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.

How to check if an email was routed through the CodeTwo service by using the message trace tool

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

  1. Open the Exchange admin center and go to Mail flow > Message trace (Fig. 1.).

Preparing a message trace query in the Exchange admin center.
Fig. 1. Preparing a message trace query in the Exchange admin center.

  1. Click Start a trace to start configuring a new message trace query.
  2. Use the Senders field to only include the user account from which the test message was sent.
  3. Limit the period covered by the message trace report to only include the time when the test message was sent.
  4. In the Choose report type section, select Summary report.
  5. Click Search to run a message trace and generate a report.

How to interpret the information in the message trace 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.).

Locating your test message in the message trace report.
Fig. 2. Locating your test message in the message trace report.

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.

Details of a message routed to the CodeTwo cloud service.
Fig. 3. Details of a message routed to the CodeTwo cloud service.

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.

Info

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.).

Details of a message routed back from the CodeTwo cloud service and sent to the recipient.
Fig. 4. Details of a message routed back from the CodeTwo cloud service and sent to the recipient.

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:

Info

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.

How to save an email message as a file in Outlook

To save a received email as a file, follow the steps below:

  1. Open Outlook.
  2. Double-click the message to open it in a new window.
  3. Go to File > Save as.
  4. Select the MSG file type, choose location and click Save (Fig. 5.).

Saving an email message as a file in Outlook.
Fig. 5. Saving an email message as a file in Outlook.

Info

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.

How to interpret the information available in the message header

  1. Open the message in Outlook. If you received an EML file, you can also use Notepad. Learn more
  2. Go to File > Properties to open the Properties window.
  3. In the Internet header field, find the following phrase:
X-CodeTwoProcessed: true

If this item is present in the header, the message has been routed to the CodeTwo cloud service (Fig. 6.).

The message header displayed in Outlook.
Fig. 6. The message header displayed in Outlook.

Opening an EML file in Notepad

  1. Right-click on the file, click Open with and select Notepad from the list of apps.
  2. Search for the following phrase in the file:
X-CodeTwoProcessed: true
  1. If found, the message has been routed to the CodeTwo service.

See also:

If you encounter any problems and you would like CodeTwo to check in detail if the messages are routed correctly, you can prepare an extended message trace and contact our Customer Support team.

Was this information useful?