Add Whitelist Entries in Office 365
-
Originally posted on my Windows Administration blog in 2013 here: http://web.archive.org/web/20130929034913/http://www.scottalanmiller.com/windows/2013/04/24/add-whitelist-entries-in-office-365/
Adding whitelists in Office 365 can be done manually inside of Outlook user by user which is fine when users are managing their own email but often we need universal white lists, bulk white lists or individual white lists done on behalf of a user (or a functional account.) To do this we, as the administrators, need to use PowerShell.
Assuming that you are already connected to Office 365 / Azure:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains "[email protected]","falslyaccusedomain.com"
You can white list individual mailboxes or whole domains as you can see. Using just “Get-Mailbox” as the input selects all mailboxes on the domain, a common choice. You could input just a select few or an individual here as well.
-
If you run this command again with different addresses/domains, doesnt it overwrite the previous items in the list, unwhitelisting your previous whitelist addresses?
-
@momurda said in Add Whitelist Entries in Office 365:
If you run this command again with different addresses/domains, doesnt it overwrite the previous items in the list, unwhitelisting your previous whitelist addresses?
Correct, this is setting the list. You'd have to append the new ones to the command.