Configure Mail Server
Configure mail server: Set up Exchange Online connectors and transport rules.
To successfully configure your mail server, connectors, transport rules, and a correct MX record are required.
The following describes the setup with Microsoft Exchange Online. The procedure can be applied analogously to other mail servers.
Overview
1. Set Up Connectors
Connectors control the mail flow between your Microsoft 365 organization and Conbool. Two connectors are required:
Inbound
From Conbool → Your organization
Outbound
From your organization → Conbool
Navigation: Microsoft 365 Admin Center → Exchange Admin Center → Mail flow → Connectors
Inbound Connector (From Conbool)
Allows Conbool to deliver emails to your organization.
- Click + Add a connector.
- Connection from: Partner organization
- Connection to: Office 365
- Name: From Conbool
- Authentication / Identifying the partner organization:
- Recommended: By verifying that the subject name of the certificate matches this domain name →
mail.conbool.com - Enforce TLS: Enable Reject emails if they are not sent over TLS
- Recommended: By verifying that the subject name of the certificate matches this domain name →
- Review summary → Create connector.
Alternative (not preferred): Authentication via IP list. Certificate verification via
mail.conbool.comis more update-proof in case IPs change.

Outbound Connector (To Conbool)
Routes emails from your organization through Conbool.
- Click + Add a connector again.
- Connection from: Office 365
- Connection to: Partner organization
- Name: To Conbool
- Usage: Only when email messages are routed through these smart hosts
- Smart host:
mail.conbool.com
- Smart host:
- Security settings:
- Enable Always use Transport Layer Security (TLS)
- When connecting with: Certificate issued by a trusted certificate authority
- Optional (recommended): Certificate name must contain mail.conbool.com
- Validation email: Enter an external address and start validation.
- Note: Validation may fail if the transport rule (e.g., X-Conbool header) is not yet active. In practice, this is usually not critical.
- Review summary → Create connector.

2. Define Transport Rules
Transport rules control which messages are routed through Conbool and prevent loops.
Navigation: Exchange Admin Center → Mail flow → Rules
Rule "Relay to Conbool"
Determines which emails are routed through Conbool.
- Create new rule → + New rule.
- Name: Relay to Conbool.
- Apply this rule if…
- e.g., The sender is located… → Inside the organization (adjust as needed)
- Do the following…
- Redirect the message to the following connector → To Conbool
- Except if… (prevent loops)
- The message headers match these text patterns
- Header name:
X-Conbool-<YourSecondLevelDomain-TopLevelDomain>(e.g.,X-Conbool-example-com) - Value:
yes
- Review settings → Save and Enable.

(Optional) Rule "Classify Spam"
Automatically classifies emails marked as spam by Conbool.
- Create new rule → + New rule.
- Name: Classify Spam.
- Apply this rule if…
- Message header contains → X-Conbool-Flag = YES
- Do the following…
- Set SCL to 7 (message is moved to the Junk folder)
- Review priority/mode → Save and Enable.
