Office 365 blacklist address / domain KB1039657

KB1039657

Situation: Client is receiving spam email from a cretin email address in Office 365

Solution: Use Office 365 Powershell to block the email address

To blacklist a domain for every user

Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains “domain.com”

To blacklist a domain for a specific user

Set-MailboxJunkEmailConfiguration -Identity youruser@yourdomain.com -BlockedSendersAndDomains “domain.com”

To blacklist a specific email address for every user

Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains “user@domain.com”

To blacklist a specific email address for a specific user

Set-MailboxJunkEmailConfiguration -Identity youruser@yourdomain.com -BlockedSendersAndDomains “user@domain.com”

Leave a Reply