Step 2 - Configure Microsoft 365 for Inbound and Outbound Mail
You can configure Microsoft 365 with Email Gateway Defense as your inbound and/or outbound mail gateway.
If you make changes to the settings, allow a few minutes for the changes to take effect.
Microsoft 365 IP addresses and user interfaces can change; refer to Microsoft documentation for configuration details.
You can specify Email Gateway Defense as an inbound mail gateway through which all incoming mail for your domain is filtered before reaching your Microsoft 365 account. Email Gateway Defense filters out spam and viruses, then passes the mail on to the Microsoft 365 mail servers.
You can also specify Email Gateway Defense as the outbound mail gateway through which all mail is sent from your domain via your Microsoft 365 account to the recipient. As the outbound gateway, Email Gateway Defense processes the mail by filtering out spam and viruses before final delivery. By configuring Microsoft 365, you instruct the Microsoft 365 mail servers to pass all outgoing mail from your domain to Email Gateway Defense (the gateway server).
- 1 Step 1. Launch the Setup Wizard
- 2 Step 2. Deploy Partner Connector
- 3 Step 3. Add Additional Email Domains (Optional)
- 4 Step 4. Configure Tenant Restrictions
- 5 Step 5. Configure Sender Policy Framework for Outbound Mail
- 6 Step 6. Configure User Accounts and User Lists
- 7 Step 7. Configure Outbound Mail
- 8 Step 8. Disable RTF (Rich Text Format) (Optional)
Before you launch the wizard, verify you have the following:
Microsoft 365 admin credentials
Credentials to run a PowerShell script or terminal to manually execute PowerShell scripts
Note that you cannot reopen the wizard after you have completed the wizard. If you have started the wizard but did not complete it, log into BarracudaONE and select Apps > Email Gateway Defense. Click Set Up Now in the top banner to relaunch the wizard.
The setup wizard includes steps to identify your email server, add MX records, and remove MX records. Each of the domains where you want to filter email must be verified by Email Gateway Defense for proof of ownership; Email Gateway Defense does not process email for a domain until the verification process is complete.
Note that after verifying your domain, any mail sent to your domain from another Barracuda Email Gateway Defense customer will be processed normally by your Email Gateway Defense account and not delivered via MX records.
Log into BarracudaONE. Select Apps > Email Gateway Defense. If this is your first time launching the setup wizard, you will be redirected to the Barracuda Trials Hub page. Click Open under Email Protection.
Alternatively, if you have started the setup wizard but did not complete it, click Set Up Now in the top banner to launch the setup wizard.
The setup wizard launches.
Click Next in the upper right corner to get started.
Click Connect to connect to Microsoft.
Note that if you are using inline deployment method, you cannot skip the “Connect to Microsoft” step.
You will be prompted to log in with a global admin account to give permissions to the application to access your Microsoft data. Click Accept to authorize Barracuda Networks to access your details.
Once you are connected, Barracuda Networks will initiate a scan to identify any email threats. During this process, click Next in the upper right corner to continue.
Select the Region for your data center. Then click Next.
After you select your region, you cannot change it.
Confirm the domain(s) you would like to protect. Then click Next.
Note: Selecting one domain allows inline or MX deployment. Selecting multiple domains uses inline deployment only.
Choose the deployment section that matches your domain selection:
If you selected one domain, you can choose either MX record deployment or Inline deployment.
If you selected multiple domains, see the Inline deployment section below.
Step 2. Deploy Partner Connector
The steps in this section enhance the security of the connection between Email Gateway Defense and Microsoft 365.
Create a Partner Connector
Creating a partner connector will allow you to use enhance filtering along with tenant access restrictions, ensuring a safe and secure environment.
Click the Add a connector button, and use the wizard to create a new connector.
For Connection from, select Partner organization. Then, click Next.
Enter a Name “Barracuda Inbound Connector” and (optional) Description to identify the connector. Then, click Next.
Select By verifying that the IP address of the sending server matches one of the following IP addresses, which belong to your partner organization.
Click the + to enter the correct IP range for your region. Then, click Next.
This is the region selected when setting up your Barracuda Networks instance. Refer to the Email Gateway Defense IP Ranges Used for Configuration for the IP ranges corresponding to your region.
For example, for the US region, enter 209.222.82.0/24.
Use the default settings for the Security restrictions: Reject email messages if they aren’t sent over TLS. Then, click Next.
Review your settings and then click Create connector.
Enable Enhanced Filtering for Connectors
To enable Enhanced Filtering for Connectors, use the following instructions:
Select Barracuda Inbound Connector, the partner connector you previously created.
Select Automatically detect and skip the last IP address and Apply to entire organization.
Click Save.
Review Microsoft Anti-Spam Settings
Enhanced Filtering for Connectors allows customers to continue to leverage anti-spam capabilities provided in Exchange Online. Review your Microsoft anti-spam policy to ensure it is configured to follow recommended best practices.
Log into the Microsoft Defender portal https://security.microsoft.com/.
On the left, navigate to Email & collaboration > Policies & rules.
Select Threat policies > Anti-spam.
Select Anti-spam inbound policy (Default).
Scroll down and click Edit actions.
Review your settings and click Save.
Note: The settings shown here are the default Microsoft anti-spam settings. Organizations may opt for a different level of filtering based on the needs of the organization. To learn more about Microsoft anti-spam policies, see https://learn.microsoft.com/en-us/defender-office-365/anti-spam-protection-about.
You configured your primary email domain in Step 1 of the wizard, above. Barracuda Networks recommends adding all Microsoft 365 accepted domains into Email Gateway Defense.
Repeat these steps, as needed, for additional Microsoft 365 domains before continuing with the next step.
Obtain the hostname:
Log into the Microsoft 365 admin center.
In the left pane, click Settings > Domains.
In the Domains table, click on your domain.
Take note of the hostname. This is the address of your destination mail server, for example, cudaware-com.mail.protection.outlook.com
Enter the hostname:
Barracuda Networks recommends using a hostname rather than an IP address so that you can move the destination mail server and update DNS records without making changes to the Email Gateway Defense configuration. This address indicates where Email Gateway Defense should direct inbound mail from the Internet to your Microsoft 365 Exchange server. For example, your domain displays to the Internet as: bess-domain.mail.protection.outlook.com
Log into the Barracuda Cloud Control as administrator. In the left panel, click Email Gateway Defense. Select the Domains tab, then click Add Domain.
Enter the domain name and destination mail server hostname obtained from your Microsoft 365 account:
Click Add Domain; the Domain Settings page displays, listing the new domain.
Verify that the domain is yours. Follow the instructions in How to Set Up MX Records for Domain Verification. Make sure that you see that the domain is successfully verified, then return to this page.