Office 365 Powershell Add to whitelist KB1039665

KB1039665

In this article we will cover how to whitelist via Powershell in several ways. Assuming that you already have logged into the server using Powershell   (see  http://www.cpumd.com/KB1039659 )

To white list a domain for every user

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

To white list a specific email address for every user

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

To white list a domain for a specific user

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

To white list a specific email address for a specific user

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

Leave a Reply