Sophos Email customers using IP-based mailflow rule connectors must migrate to certificate-based configuration by March 31st. To see if you're affected Click Here.

Sophos Email: How to Export Allow Sender domain email and Block Sender domain email from AntiSpam policy in 0365.

Disclaimer: This information is provided as-is for the benefit of the Community. Please contact Sophos Professional Services if you require assistance with your specific environment.


Table Of Contents:

Overview:

This Recommended read will show how to export  Allow Sender domain\email and Block Sender domain\email from the AntiSpam policy in 0365.

Product and Environment

Sophos Email

Configuration:

Step 1: Login to your Sophos Email  from Sophos central

 

Step 2: Go to My Product > Email Protection>Click Mailboxes  

 

 

Step 3:  Click on Add > Click Import Mailboxes & Aliases

 

Step 4: Export the Allow Sender domain\email and Block Sender domain\email from the AntiSpam policy in 0365 using these PowerShell commands.

Get-HostedContentFilterPolicy | select -expandproperty blockedsenderdomains | export-csv block-domain.csv

Get-HostedContentFilterPolicy | select -expandproperty blockedsenders | export-csv blockuser.csv

Get-HostedContentFilterPolicy | select -expandproperty allowedsenderdomains | export-csv allowdomain.csv

Get-HostedContentFilterPolicy | select -expandproperty allowedsenders | export-csv alloweduser.csv 

You may also refer to this MS KBA for the Powershell Commands: https://learn.microsoft.com/en-us/powershell/module/exchange/get-hostedcontentfilterpolicy?view=exchange-ps

Related Information:

Sophos Email Import Mailbox: https://docs.sophos.com/central/customer/help/en-us/ManageYourProducts/EmailSecurity/Mailboxes/AddMailboxes/AddMailboxImport/index.html

MS Powershell Commands: https://learn.microsoft.com/en-us/powershell/module/exchange/get-hostedcontentfilterpolicy?view=exchange-ps




Edited Grammar
[edited by: Raphael Alganes at 3:01 PM (GMT -8) on 8 Jan 2025]