How to Whitelist by IP Address in Office 365

  1. Log into your mail server Admin portal and click Admin
  2. Click on Exchangeoffice365-exchange-screenshot
  3. Click on connection filter, then click the Pencil icon to edit the default connection filter policy
  4. Under the IP Allow list, click the+ sign to add an IP address
  5. On the  Add allowed IP address screen, add these IP addresses:
  6. Click OK, then Save
  7. Next, go to Admin > Mail > Mail Flow:
  8. Click the (+) Create New Rule button beneath Mail Flow > Rules
  9. Give the rule a name, such as "Wizer Spam Filtering"
  10. Click on More options
  11. Add the condition Apply this rule if...
  12. Select The sender, then click on More Options and select address is in any of these ranges or exactly matches
  13. Specify the following sender IP addresses, then click OK:
  14. Beneath Do the following, click Modify the message properties then Set a Message Header
  15. Click on the *Enter text... button to set the message header:
    Set the message header "X-MS-Exchange-Organization-BypassClutter" to the value " true"
  16. Add an additional action beneath Do the following to Modify the message properties.  Here, click onSet the spam confidence level (SCL) to... and select Bypass Spam Filtering
  17. Click Save
  18. Completed Mail Flow Rule screen should look like this: