Junk E-mail Settings for Shared Mailboxes

Occasional Visitor



We started to receive all email for our shared inbox to junk folder. I have set some of them as safe senders, but it didn't help. How can I check/amend junk settings for our shared mailboxes please?



5 Replies

To modify your Junk Email settings on Shared Mailbox, you may follow these steps:

1. Access it via browser by using this URL, https://outlook.office365.com/ecp/admin@contoso.com (Sample Shared Mailbox Email Address)

2. On the options, click block or allow. Select "Don't move email to my Junk folder" and click Save.

PowerShell is easiest way to set junk mail configurations for shared mailbox.


To fetch the configuration:


Get-MailboxJunkEMailConfiguration -Identity "Shared Mailbox" | Format-List


To set it, use Set-MailboxEmailConfiguration. In this instance, I add "BadGirls.com" to the blocked list and set three domains up as trusted senders.


Set-MailboxJunkEMailConfiguration –Identity "Shared Mailbox"
–BlockedSendersAndDomains @{Add="Badgirls.com"} –ContactsTrusted $True
–TrustedSendersAndDomains "Microsoft.com", "Office365.com", "Outlook.com"


And of course, if you wanted to set the same configuration for all shared mailboxes in the tenant, you'd do:


Get-Mailbox -RecipientTypeDetails SharedMailbox | Set-MailboxJunkEMailConfiguration....

Aljohn, when I click on your link it says "Access Denied" is this a setting for admins only or is it something I need to request access to?

Yes, you need to be at least an Exchange Administrator to do this.