Sign up for Office 365
Learn more about Office 365
Thanks for the feedback.
I would like to confirm if you are trying to add a domain to the Safe Sender list, so that every user can receive the emails from this domain safely.
When you configure safe senders and blocked senders for mailboxes in Microsoft Exchange Online in Microsoft Office 365, mailboxes store the safe senders and blocked senders for each user independently. Office 365 administrators must use Exchange Online PowerShell to configure these settings for user mailboxes. Please refer to the following steps.
How to configure safe senders and blocked senders in bulk
1. Connect to Exchange Online PowerShell as an Exchange Online administrator.
2. At the PowerShell prompt, type the following command, and then press Enter:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains "domainA.com","user@domainB.com","..." -TrustedSendersAndDomains "domainC.com","user@domainD.com","..."
Note: The placeholder email@example.com represents the user whose settings are being configured, and the placeholder "domainC.com","user@domainD.com","..." represents a list of domains or individual email addresses that must be added to the list. For example, the following command will block all email messages from "spamA.com" and accept all email messages from "john@spamB.com" for all the users in Contoso:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains "spamA.com" -TrustedSendersAndDomains "john@spamB.com"
How to verify safe senders and blocked senders
To verify that the safe senders and blocked senders settings were applied successfully, use the Get-MailboxJunkEmailConfiguration cmdlet to confirm the status of the list for any user. To do this, type the following command at an Exchange Online PowerShell prompt, and then press Enter:
Get-MailboxJunkEmailConfiguration -Identity User@contoso.com
Note: The placeholder firstname.lastname@example.org represents any user in the organization.
thanks. if I run this command - can I do something like:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains "*@spamB.com"
I'm trying to allow all emails from a specific domain
To allow all emails from a specific domain, you can try the command:
Get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains "spamB.com"
How are the things going? Do you have any updates about the status of the issue?
Am getting the following errors :
The Junk E-Mail configuration couldn't be set. The user needs to sign in to Outlook Web App before they can modify their Safe Senders and Recepients or Blocked Senders Lists.
+ CategoryInfo : Not Specified: (69:Int32) [Set-MailboxJunkEmailConfiguration], DataSourceOperationException
+FullyQualifiedErrorId : 47182804,Microsoft.Exchange.Management.StoreTasks.SetMailboxJunkEmailConfiguration
I want to append to peoples list. The method you show here erases there original list and applies the entry you specify. I used the following article, which allows me to append to an individual user but does not instruct on how append to users in bulk using the += operators. Is there a way this can be done?
I have the same issue as Garvie.
Is there a way to do this? I've yet to see a solution so far.
A 'company wide safe list' should simply be included in the Admin UI. It was included with our old exchange provider.