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
    office365-filter-screenshot
  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:
    34.66.138.178
    34.121.251.163
    35.239.224.225
    104.197.155.117
    104.236.69.186
    142.93.178.213
    office365-ips-screenshot
  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
    office365-mail-screenshot
  13. Specify the following sender IP addresses, then click OK:
    34.66.138.178
    34.121.251.163
    35.239.224.225
    104.197.155.117
    104.236.69.186
    142.93.178.213
  14. Beneath Do the following, click Modify the message properties then Set a Message Header
    office365-set-header-screenshot
  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:
    office365-save-screenshot