Configure Incoming Filtering with Exchange Online (Microsoft 365)
In order to configure incoming filtering for Exchange Online/Microsoft 365 follow these steps:
- Step 1 - Add the domain in Spam Experts
- Step 2 - Create a partner connector and rule in Exchange Online to accept filtered mail
- Step 3 - Change MX record for the domain to point to incoming servers
Step 1 - Add the domain in Spam Experts
To add the domain manually:
- Log in to the Spam Experts control panel as an admin
- Click on General > Add Domain
- Enter the domain name and click Continue
- Under the Destination Routes Hostname enter the destination server IP/hostname, or use the auto-detected route if it is correct
- Click Add routeto add additional route hostnames
- Select the Regionfrom the dropdown from the following selection
- Global (Recommended)
- United States
- European Union
- United Kingdom
- Canada
- Australia
- South Africa
- Click Add and go to Overview or Next
- Add and go to overview takes you into the Domain Overview
- Next provides a summary of the domain configuration, and provides access to the Mailbox Configuration or access to the Domain Overview
Step 2 - Create a partner connector and rule in Exchange Online to accept filtered mail
For further details about creating a partner connector and rule in either the Classic EAC or the New EAC in Microsoft 365, and to ensure you fully read the Microsoft documentation page.
Step 2:1 - Create the Partner Connector in the Exchange Admin Center
- Log in to the Exchange Admin Center with Organization Management admin credentials
- Click on Mail Flow > Connectors
- Click the + button to add a connector
- Choose the following:
- Connection From - Partner organization
- Connection To - Microsoft 365
- Click Next
- Give the connector a Name you will recognize in Step 2:2 #5 and optionally, provide a description
- Ensure the What do you want to do after connector is saved setting, Turn it On is selected
- Click Next
- Choose By verifying that the IP address of the sending server matches one of the following IP addresses, which belong to your partner organization
- Add the following Spam Experts delivery IP ranges one at a time and click the +symbol:
- 185.201.16.0/24
- 185.201.17.0/24
- 185.201.18.0/24
- 185.201.19.0/24
- Add the following Spam Experts delivery IP ranges one at a time and click the +symbol:
- Click Next
- Ensure that Reject email messages if they aren't sent over TLS is ticked and click Next
- Verify the settings and click Create Connector
- Click Done
Step 2:2 - Create the Rule in the Microsoft 365 Defender Security Portal
- Login to the Microsoft 365 defender security portal with Organization Management admin credentials
- Under the Email & Collaboration section of the left-hand menu, select Policies & Rules
- Click Threat Policies
- Scroll to the Rules section and select Enhanced Filtering
- Select the Connector Name as created in step 2:1
- Select Skip these IP addresses:
185.201.16.0/22
199.115.117.7/32
46.165.223.16/32
94.75.244.176/32
- For Apply to these users, select Apply to Entire Organization
- Click Save
Failing to setup the partner connector correctly will cause messages to be incorrectly rejected by the Microsoft systems.
Step 3 - Change MX record for the domain to point to incoming servers
Once you have verified configuration as above, update the domain's MX records to route mail through Spam Experts. For full details on MX records (including region specific MX records), see Hosted Cloud MX Records.
Reference Link: https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin%20Level/Microsoft365/conf-inbound-filtering-with-exch-m365.htm#add-domain