Modify User-Defined Blocked Senders

How to Display/Modify User-Defined Blocked Senders #

PROMPT: You wish to modify a user’s blocked sender list as they claim they are ’not getting mail’ when in reality they ‘blocked the sender’.

Resources: #

Microsoft Learn Article

Steps: #

  1. Connect to the tenant via the Exchange Online v3 PowerShell module: Connect-ExchangeOnline and then enter the global admin/exchange admin credentials.
    • If you do not have EXOv3 module, use an elevated window to run Install-Module -Name ExchangeOnlineManagement (supported in both PowerShell v5/v7)
  2. To get a list of blocked senders, use the following command: (Get-MailboxJunkEmailConfiguration -Identity user@domain.com).BlockedSendersAndDomains. We can also use .TrustedSendersAndDomains parameter view trusted senders.
  3. To remove a blocked sender, use the following command: Set-MailboxJunkEmailConfiguration user@domain.com -BlockedSendersAndDomains @{Remove="emailofblockedsender@domain.com"} and to add a blocked sender, use @{Add="emailofblockedsender@domain.com"}. Lastly, we can swap the -BlockedSendersAndDomains for -TrustedSendersAndDomains.