Configuring Microsoft O365 with Sorb SCES

What Is Office 365?

Office 365 is the brand name that Microsoft uses for a group of software and services subscriptions, which together provide productivity software and related services to their subscribers.
For business users, Office 365 offers service plans providing e-mail and social networking services through hosted versions of Exchange Server, Skype for Business Server, SharePoint and Office Online, and integration with Yammer, as well as access to the Microsoft Office software.

Configuring Microsoft 365 with Sorb SCES

Option B: Configuring Microsoft 365 with Sorb SCES by M365 Connectors

Bypass Spam Filtering Rule

  1. Log-in to the Microsoft 365 Admin Center (https://portal.microsoft.com)
  2. In the left-hand menu, expand Admin Centers
  3. Click Exchange
  4. From the left-hand menu, navigate to Mail flow > Rules
  5. Click [+] to create a new rule
  6. Select Create a new rule… in the drop-down list
  7. Enter in a name for your new rule: Bypass Spam Filter – Inbound email from Sorb SCES
  8. For “*Apply this rule if…”, select: The sender – IP address is in any of these ranges or exactly matches
    • For the “specify IP address ranges” pop-up, add the IP addresses that are indicated in Connection Details under IP addresses
    • Click OK
  9. For “*Do the following…”, the new rule has pre-selected: Set the spam confidence level (SCL) to… – Bypass spam filtering
  10. Click Save
  11. Click the newly created Rule which is Disabled, then switch it to Enabled.

Your bypass spam filtering rule should look similar to the following:

Moving the detected emails to Junk FolderOptional for MARK Customers ONLY

Requirement for configuring following the O365 mail flow rule on Sorb SCES

  1. From the left-hand menu, navigate to Mail flow > Rules
  2. Click [+] to create a new rule
  3. Select Create a new rule in the drop-down list
  4. Enter in a name for your new rule: Move the detected mails to Junk Folder – Inbound from Sorb SCES
  5. Click More options
  6. For “Apply this rule if…“, choose “A message header…”, then matches these text patterns. On the right side of the windows, click “Enter text…“, fill in “X-SorbSecurity-Detected” as an example. Then click “Enter text patterns…“, fill in “yes“, click + icon. as an example.
  7. For “*Do the following…”, choose Modify the message properties…, then Set the spam confidence level (SCL) to… 9
  8. Click Save

Your Junk Folder rule should look similar to the following:

Receiving Connector

  1. Remain in the Exchange Admin Center
  2. From the left-hand menu, navigate to Mail flow > Connectors
  3. Click [+] to create a new connector
  4. In the “Select your mail flow scenario” pop-up window, choose the following:
    • From: Partner organization
    • To: Office365
  5. Click Next
  6. Enter in a name for your new connector: Inbound from Sorb SCES
  7. Enter a description, if you wish
  8. Click Next
  9. Click Use the sender’s IP address
  10. Click Next
  11. Click [+] and enter the IP addresses from Connection Details under IP Addresses
  12. Click Next
  13. Select Reject email messages if they aren’t sent over TLS
  14. Click Next
  15. Click Save

Your new connector should look similar to the following:

Configure “Connection filter policy” under Microsoft 365 Defender

1. In the Microsoft 365 Defender portal at https://security.microsoft.com, go to Email & Collaboration > Policies & Rules > Threat policies > Anti-spam in the Policies section. Or, to go directly to the Anti-spam policies page, use https://security.microsoft.com/antispam

2. On the Anti-spam policies page, select Connection filter policy (Default) from the list by clicking anywhere in the row other than the check box next to the name with the IP / IP range from https://doc.sorbsecurity.com/sorbsecurity-cloud-connection-details/

Note: M365 does not support /23 that you have to break the subnet into 2 records as above.

Configure Outbound Routing

1. Log into the DNS Admin Console to update SPF record from here

v=spf1 include:spf.sorbsecurity.com include:spf.protection.outlook.com ~all

2. Log in to the Sorb Admin Console, https://admin.sorbsecurity.com

3. Navigate to Mail Routing | Outbound. Follow the SPF record “spf.protection.outlook.com” to add the ip4 subnets to Outbound Mail Source

40.92.0.0/15
40.95.0.0/16
40.107.0.0/16
52.100.0.0/14
104.47.0.0/17

4. Log in to the Microsoft 365 Exchange Console, https://admin.exchange.microsoft.com

5. Navigate to Mail Flow | Connectors, Click “Add a Connector”. Configure the new connector as the figures

Bypass Anti-Phishing Feature on M365(Optional & Suggested)

1. Go to Security on M365, then choose Policies & Rules -> Threat Policies.

2. Navigate to Advanced devliery, then choose Phishing Simulation tab, click Edit

3. Find Sending IP and click the arrow to expand the input form. Then fill up the IP and save.