Use the steps in this article if you have multiple domains within your Microsoft 365 tenant and you want to scan only certain domains outbound.
Step 1. Create the Connector
Note that the following steps use the new Exchange admin center user interface.
- Log into the Microsoft 365 admin center https://admin.exchange.microsoft.com/.
- In the left pane, click Mail flow, and click Connectors.
- Click the Add a connector button, and use the wizard to create a new connector.
- For Connection from, select Office 365. For Connection to, select Partner organization.
- Click Next. Enter a Name and (optional) Description to identify the connector:
- Click Next. Select Only when I have a transport rule set up that redirects messages to this connector.
- Click Next. Select Route email through these smart host, and click the + symbol.
- Go to Email Gateway Defense, and click the Domains tab. Copy your outbound hostname from the MX records, and enter it in the add smart host page:
- Go to Email Gateway Defense, and click the Domains tab. Copy your outbound hostname from the MX records, and enter it in the add smart host page:
- Click Next. Use the default settings for the Security restrictions:Always use Transport Layer Security (TLS) to secure the connection (recommended) > Issues by Trusted certificate authority (CA):
- Enter an external email address to validate the connector. For this test, it is important to use an email address from outside your organization , like a gmail or yahoo email address. Click Validate.
There are two parts of the validation:- Test Connectivity – If this test fails, Outbound Groups is not enabled. Contact Barracuda Networks Technical Support and request that Outbound Groups be enabled on your Email Gateway Defense account.
- Send Test Email – If the test fails, there is no cause for concern. The test email comes from a Microsoft domain, not from your domain, so it is rejected. If you changed your domain away from
onmicrosoft.com
, the test should work. Note that you might still receive the email even if the test failed.
- Once the validation process is complete, click Next. Review your settings and then click Create connector.
Step 2. Create Transport Rule
- Log into the Microsoft 365 admin center https://admin.exchange.microsoft.com/.
- In the left pane, click mail flow, and click rules.
- Click Add a rule.
- Select Create a new rule.
- In the new rule page, enter a Name to represent the rule.
- Under Apply this if, select The sender > is external/internal > Inside the organization.
- Click the + to add a new condition.
- From the drop-down menu, select The sender's domain is....
- Enter the domains you want to route through Email Gateway Defense.
- Under Do the following, select Redirect the message to… > the following connector, and select the connector you defined in Step 1. Create the Connector.
- Under Except if, select The Recipient > is external/internal > Inside the organization.
- Click Next.
- Under Match sender address in message, select Header or envelope.
- Click Next.
- Review the settings and then click Finish.