Setting up journaling for Exchange and Microsoft 365

Point a journal rule in Exchange Online at an ingestion address of the archive without changing the mail flow: create the source in the portal, set the rule in Microsoft Purview, TLS and sender restriction, structure of a journal report, verification and failure patterns.

If the mail flow runs through the Conbool gateway, the archive archives without any further connection. With Exchange on premises a gap remains: messages between two mailboxes of the same organisation are delivered locally by the mailbox transport and never reach the gateway. With Microsoft 365 the outbound rule routes those messages through the connector as well, so only internal calendar traffic is missing there, which the rule excludes. Journaling closes both gaps, because a journal rule creates a copy of every message, regardless of its path.

For Exchange and Microsoft 365 the journal rule is the intended path. Every other mail server instead delivers a copy by BCC to the same address, described under your own mail server.

The journal rule does not need the mail flow through Conbool. MX, SPF and DKIM stay unchanged, no connectors or transport rules are created in Exchange, and an existing gateway or spam filter in front of Microsoft 365 stays where it is. How the setup without the mail flow starts in the portal is described under ways into the archive.

Step 1: create the source in the portal

In the archive under Sources and status on the Journaling and retrieval tab, create a source in the Journaling and mail server copies section. Three details are set in the process.

  • Name, to distinguish several mail systems, for instance Exchange Online or a site with its own server.
  • Delivery path, here journal. The default recognises the kind per message itself, a fixed setting is clearer as soon as a source serves only one mail system.
  • Sender IP allowlist, optional. For Exchange Online it stays empty, because Microsoft's outbound address range is shared and changes. It makes sense with your own server on a fixed address.

Afterwards the portal shows the ingestion address in the form identifier@journal.conbool.com. This address cannot be guessed and acts as a secret. It can be rotated at any time, after which the old address accepts nothing more.

Archiving has to be activated beforehand, see setup. Without an active archive an incoming copy is not stored.

Step 2: journal rule in Exchange Online

With Microsoft 365, Conbool can create the rule. You do not need Microsoft Purview for this. With Exchange Server, or if a requirement is not met, you set up the rule yourself.

Set up automatically

The way is in the archive under Sources, tab Connections, Microsoft 365. It is available if these points are met:

  • Exactly one Microsoft 365 organization is connected.
  • The archive address is not limited to individual mailboxes and not paused.
  • You are allowed to edit the organization settings.

How to proceed:

  1. If there is no archive address yet, choose Set up address and journal rule. This also replaces step 1. If there is an address without a rule, choose Set up automatically under Set up the journal rule. Your click is the consent, without it Conbool creates nothing.
  2. If your Microsoft 365 has no mailbox for undeliverable journal reports yet, the portal asks for it. Microsoft requires one before the first journal rule. Enter the address under Mailbox for undeliverable journal reports, tick the box and choose Enter and set up.
  3. If the portal reports that the address is not active in Microsoft 365 yet, choose Try again in a few minutes.

For the mailbox:

  • It must be outside Exchange Online, for instance with another provider. The portal refuses addresses that are in Exchange Online, as well as the archive domain of Conbool and domains that do not accept mail.
  • Use a separate mailbox that only authorised people can access. If Microsoft 365 cannot deliver a journal report, it goes there with a notice and contains the mail concerned. Mail sent directly to this address does not reach the archive.
  • If a mailbox is already set, it stays. Conbool does not ask for one in that case.
  • The address can be changed later, but no longer cleared.
  • Request and entry are recorded in the Audit log of the archive, with only the domain of the address. If the request cannot be logged, Conbool changes nothing.

Set up yourself

In the portal, Set up yourself shows the steps with your archive address. If Microsoft Purview does not open, the same steps for PowerShell are below them. Copy commands copies them.

Journal rules for Exchange Online are not in the Exchange admin center under mail flow but in the Microsoft Purview portal under Data lifecycle management, Exchange (legacy), Journal rules. For Exchange Server they are in the Exchange admin center under Compliance management, Journal rules.

  1. Set the address for undeliverable journal reports. It applies once for the organisation, and Exchange Online requires it before the first rule. For Exchange Online it must be outside Exchange Online, for instance a mailbox with another provider or on your own server. Microsoft does not support an Exchange Online mailbox here, and messages addressed to it are not journaled themselves. It must not be the journal target either, otherwise error reports circle. In PowerShell the command is Set-TransportConfig -JournalingReportNdrTo address@example.com.
  2. Add a rule and enter the ingestion address from the portal under Send journal reports to.
  3. Choose all messages as the scope, that is incoming, outgoing and internal. Only then is the gap for purely internal mail closed.
  4. Apply the rule to all messages of the organisation instead of limiting it to individual mailboxes.

A mailbox in Exchange Online is not permitted as a journal target. That is exactly why an external address is needed, and the archive provides it.

What a journal report contains

Exchange does not send a simple copy but a report: a short message with the lines Sender, Recipient and On-Behalf-Of, carrying the original message as an attachment of the type message/rfc822.

From these lines the archive reads the actual parties of the envelope. That is the decisive difference from the copy by BCC: Bcc recipients and the resolution of distribution lists are in the envelope but in no visible header. Only the report captures them completely.

Archiving happens per party whose address belongs to a verified domain of the tenant. Foreign counterparts create no entry of their own.

Protecting the address

Three checks run before acceptance, each with an unambiguous answer.

  • Without TLS, delivery is rejected with 530 5.7.0 Journal ingestion requires TLS. Newly created sources require TLS, and the source reports the state with the label TLS required. Exchange Online delivers over TLS on its own.
  • An unknown, rotated or deactivated address is rejected with 550 5.1.1.
  • If an allowlist is set and the delivering address is not in it, 550 5.7.1 Source not permitted for this journal address follows.

Verifying the setup

In the archive the Sources and status area shows the ingest state and the time of the last archiving. After the first message the counter of the source starts moving.

A meaningful test is a message between two of your own mailboxes, with Exchange on premises any internal message, with Microsoft 365 and the mail flow through Conbool an internal calendar invitation. It does not appear in message tracing, because it never touches the gateway, but it has to appear in the archive. Exactly that difference proves that the journal rule is working.

Failure patterns

  • Nothing arrives at all. First check whether archiving is activated, then the scope of the journal rule and finally the address for typos. A rotated address in an old rule is the most common case after a change.
  • Only part of the messages arrive. The scope of the rule is set to internal or external instead of all messages.
  • Reports pile up and are rejected. A sender IP allowlist was set for Exchange Online. Microsoft's outbound address range is shared and cannot sensibly be listed, so the list belongs emptied here.
  • Undeliverable journal reports accumulate. The address stored for them is missing or points at the journal target itself.
  • Messages to one particular mailbox are missing from the archive. That mailbox is set as the address for undeliverable journal reports. Exchange does not journal messages to this address. The address belongs on a dedicated mailbox outside Exchange Online.

Duplicate deliveries are harmless. The archive creates exactly one entry per message, recipient and direction and discards repetitions.

Further reading

Activation, storage classes and legacy data are described in the setup. Retention periods and immutability are described under retention and WORM, access to the holding under search and access. For mail servers without a journal function the path through your own mail server applies.