Experience Center
Configuring Microsoft Exchange for Zscaler Outbound Email DLP
Zscaler Outbound Email Data Loss Prevention (DLP) allows you to establish a connection between your Exchange server and Zscaler's cutting-edge Data Loss Prevention (DLP) tools to prevent the exfiltration of sensitive data in outbound emails sent to external domains. To do so, you must configure connectors to allow bidirectional communication between your Exchange server and the Zscaler smart host, and you must configure mail flow rules (also known as transport rules) to determine how mail flows from your Exchange server to the Zscaler service, and vice versa.
This article explains how to configure your Exchange server to use a Zscaler smart host for a basic use case. To learn more about configuring your Exchange server for other use cases, refer to the Microsoft technical documentation. To learn about configuring your Gmail server for Outbound email DLP, see Configuring Gmail for Zscaler Outbound Email DLP.
To configure the Exchange server to use a Zscaler smart host:
- 1. Configure a smart host send connector.
To create a connector so that outbound email sent to external domains is routed from Exchange to the Zscaler smart host:
- Sign in to the Exchange Admin Center.
- In the left-side navigation, go to Mail flow > Connectors.
See image.
The Connectors page appears.
See image. - On the Connectors page, click Add a connector.
The Add a connector panel opens. - In the Connection from section select Office 365, and in the Connection to section, select Partner organization, then click Next.
See image. Specify a name (i.e.,
Office-to-Zscaler
) and an optional description, deselect the Turn it on checkbox, then click Next.
See image.Zscaler recommends disabling the connector that sends email from your Exchange server to the Zscaler smart host until all connectors and mail flow rules are configured.
- On the Use of connector page, select Only when I have a transport rule set up that redirects messages to this connector, then click Next.
See image. On the Routing page, select Route email through these smart hosts, specify the Smart Host FQDN, then click the + button to add the smart host server.
See image.You can find the Smart Host FQDN on the Edit Email Tenant page in the Admin Portal.
- Click Next.
- On the Security restrictions page, select Issued by a trusted certificate authority, then select the Add the subject name or subject alternative name (SAN) matches this domain name checkbox. Enter the domain for the Zscaler cloud where your smart host is located (i.e.,
*.zscloud.net
), then click Next.
See image. - On the Validation email page, enter a validation email address for the smart host server, then click the Add icon to add the email address.
See image. - Click Validate to validate the connection to the smart host server.
You receive a confirmation message. The validation for the email address might fail because mail flow rules aren't in place yet. Before you continue setting up the connector, however, ensure that the connectivity task is successful.
See image. - Click Next.
If you receive a confirmation message because the test email didn't send successfully, click Yes, proceed.
See image. - Review the connector settings, then click Create connector.
See image.
A confirmation page appears. - Click Done.
You return to the Connectors page and the new connector appears in the list.
- 2. Configure a smart host receive connector.
To create a connector to receive processed email from the Zscaler smart host:
- Sign in to the Exchange Admin Center.
- In the left-side navigation, go to Mail flow > Connectors.
See image.
The Connectors page appears.
See image. - On the Connectors page, click Add a connector.
The Add a connector panel opens. - In the Connection from section select Your organization's email server, then click Next.
See image. - Specify a name (i.e.,
Zscaler-to-Office
) and an optional description, then click Next. - On the Authenticating sent email page, select By verifying that the sender domain matches one of the following domains, enter the domain for the Zscaler cloud where your smart host is located (i.e.,
*.zscloud.net
), click the Add icon, then click Next.
See image. - Review the connector settings, then click Create connector.
See image.
A confirmation page appears. - Click Done.
You return to the Connectors page and the new connector appears in the list.
- 3. Configure a mail flow rule to send email to the Zscaler smart host.
After setting up the connector for the Zscaler smart host, you must configure a mail flow rule to forward email to the Zscaler service. You add a header with information from your configured Zscaler smart host so that the Zscaler service can properly receive and process email content from your Exchange server.
To configure a mail flow rule to forward email to the Zscaler service:
- Sign in to the Exchange Admin Center.
- In the left-side navigation, go to Mail flow > Rules.
See image.
The Rules page appears.
See image. - On the Rules page, click Add a rule > Create a new rule.
The New transport rule panel opens on the Set rule conditions page. - On the Set rule conditions page:
- Name: Enter a name for the transport rule.
- Apply this rule if: Select The recipient in the first drop-down menu, then is external/internal from the second drop-down menu. In the select recipient location panel that opens, select Outside the organization from the drop-down menu, then click Save.
See image. - Do the following: Select Redirect the message to, then select The following connector from the second drop-down menu. In the select connector panel that opens, select the send connector you created earlier, then click Save.
See image. - Click the Add icon to add a condition to set a header for the Zscaler smart host you configured. This condition helps the Zscaler smart host identify the mail it receives from your Exchange server.
- In the And drop-down menu, select Modify the message properties, then in the Select one drop-down menu, select set a message header.
- Click the first instance of Enter text.
See image.
The message header panel appears. - On the message header panel, for the message header value, enter
X-Zscaler-TenantId
, then click Save.
See image. - Click the second instance of Enter text.
See image. - For the message header value, paste the Key for Transport Rules value from the Admin Portal. You copied the Key for Transport Rules value when you configured the email tenant in the Admin Portal. You can also find the value on the Edit Email Tenant page in the Admin Portal.
See image.
- Except if: To ensure that mail flow rules are configured correctly and that already-inspected email is not returned to the Zscaler smart host for inspection, you need to add an exception that includes the default Allow and Block Zscaler header values. To add the exception:
- In the Except if drop-down menu, select The message headers..., then select includes any of these words.
- Click Enter text to specify the name for the header.
See image.
The specify header name panel appears. - On the specify header name panel, for the specify header name value, enter
X-Zscaler-Block
, then click Save. - Click Enter words to specify the value for the header.
See image.
The specify words or phrases panel appears. - On the specify words or phrases panel, for the specify words or phrases value, enter
1
to indicate the Block action and click Add, then enter0
to indicate the Allow action and click Add, then click Save.
The configured exception appears.
See image. - (Optional) Click the Add icon and follow the prompts to specify any necessary exceptions to the rule (i.e., if you want to exempt specific members of your organization from email content inspection).
See image.
- Click Next.
- On the Set rule settings page, ensure that Rule mode is set to Enforce, specify other settings for the rule as needed (i.e., severity, activation dates, etc.), then click Next.
- Review the rule settings, then click Finish.
See image.
A confirmation page appears. - Click Done.
You return to the Rules page and the new rule appears in the list.
- 4. Configure a mail flow rule to act on email received from the Zscaler smart host.
After the Zscaler service inspects and processes email content, it sends the content back to the Exchange server (to the next hop address configured on the email tenant). The following example shows how to configure a mail flow rule to use the default block header added by the Zscaler service to emails that trigger outbound email policy.
To learn more about how Zscaler applies headers to emails that trigger outbound email policy rules, see Configuring Outbound Email Policy Rules.
To configure an incoming mail flow rule on Exchange to use the default Zscaler block header:
- Sign in to the Exchange Admin Center.
- In the left-side navigation, go to Mail flow > Rules.
See image.
The Rules page appears.
See image. - On the Rules page, click Add a rule > Create a new rule.
The New transport rule panel opens on the Set rule conditions page. - On the Set rule conditions page:
- In the Name field, enter a name for the transport rule (i.e.,
Zscaler-to-Office-Block
). - In the Apply this rule if drop-down menu, select The recipient in the first drop-down menu, then is external/internal from the second drop-down menu. In the select recipient location panel that opens, select Outside the organization from the drop-down menu, then click Save.
See image. - Also in the Apply this rule if section, click the Add icon to add a condition to the rule that specifies the name:value pair for the Zscaler block header.
The And drop-down menu appears. - To specify the name:value pair for the Zscaler block header, in the And drop-down menu, select The message headers..., then select includes any of these words.
- Click Enter text to specify the name for the header.
See image.
The specify header name panel appears. - On the specify header name panel, for the specify header name value, enter
X-Zscaler-Block
, then click Save.
See image. - Click Enter words to specify the value for the header.
See image.
The specify words or phrases panel appears. On the specify words or phrases panel, for the specify words or phrases value, enter
1
to indicate that the message is blocked, click Add, select the value, then click Save.You can use the same basic process to map a custom header to an action in Exchange. For example, you can configure an outbound email policy rule in the Admin Portal to attach a custom header (e.g.,
X-Zscaler-Encrypt:1
) to emails that trigger the policy. You can then map the custom header to the appropriate action in Exchange. To learn more, refer to the Microsoft technical documentation.- In the Do the following drop-down menu, select Block the message.
- In the Select one drop-down menu, select reject the message and include an explanation.
The specify rejection reason panel opens. - In the specify rejection reason field, a message sent to recipients whose emails contain sensitive information, then click Save.
See image. - For the Except if option, specify any necessary exceptions to the rule (i.e., if you want to exempt specific members of your organization from email content inspection).
- In the Name field, enter a name for the transport rule (i.e.,
- Click Next.
See image. - On the Set rule settings page, ensure that Rule mode is set to Enforce, specify other settings for the rule as needed (i.e., severity, activation dates, etc.), then click Next.
- Review the rule settings, then click Finish.
See image.
A confirmation page appears. - Click Done.
You return to the Rules page and the new rule appears in the list.
- 5. Enable the smart host send connector.
With connectors and mail flow rules in place, you can safely enable the connector created at the beginning that sends email from your Exchange server for inspection by the Zscaler smart host.
To enable the smart host send connector:
- Sign in to the Exchange Admin Center.
- In the left-side navigation, go to Mail flow > Connectors.
See image.
The Connectors page appears.
See image. - On the Connectors page, click the name of the send connector in the list.
The information panel for the send connector appears. - In the Status section, click Edit name or status.
See image.
The Connector name panel appears. - On the Connector name panel, select the Turn it on checkbox, then click Next.
See image. - If prompted to send a validation email, click Validate.
On the confirmation message page, click Save.
You receive confirmation that the connector has been updated.
See image. - Close the Connector name panel.
You return to the Connectors page, and the connector is enabled.
With these settings configured, and with a Zscaler outbound email policy rule configured to detect and block sensitive information, users who try to send an email containing HIPAA information to an external domain receive a message from the Exchange server that their message was blocked.
See image.