• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Bulk Add Addresses to Safe and Blocked Senders Lists

Slipstick Systems

› Exchange Server › Bulk Add Addresses to Safe and Blocked Senders Lists

Last reviewed on December 4, 2018     2 Comments

Applies to: Office 365 Exchange

An administrator wanted to know if he could set up global safe and blocked lists for distribution to his users.

Is there a way to set a Global Safe Sender List for everyone in Exchange Online?

Yes, you have two options: you can add domains and addresses to the safe or blocked lists in the Exchange admin center or you can add addresses to the user's Junk mail lists in Outlook. If you block the addresses in Exchange, you can add words to the message header ("[Spam]") or delete the spam before it gets to the user's mailbox. If you add the addresses to Outlook, mail will be moved to the Junk Email folder (unless the user has Outlook configured to delete junk email).
 

Exchange admin center

To block domains in the Exchange admin center, log in then go to Protection and select spam filter. Open the default list and add addresses and domains to the blocked lists. If any domains or addresses that should be trusted are routinely marked as spam, add them to the allow lists to bypass filtering. Choose how to handle the spam at the top of spam and bulk actions. Tip: If you create a new list, you can apply it to specific users.
Add blocked addresses in the Exchange admin center

 

Add to Outlook's Safe or Blocked lists

If you prefer to add domains and addresses to a user's lists in Outlook, use the Set-MailboxJunkEmailConfiguration cmdlet to create lists for individual users or use it in conjunction with the Get-Mailbox cmdlet to add the addresses to all mailboxes.

To add addresses and domains to the user's junk mail lists in Outlook without affecting entries already on the list, use the following cmdlet.

Set-MailboxJunkEmailConfiguration user@mydomain.com -BlockedSendersAndDomains @{Add=" @baddomain.com"} -TrustedSendersAndDomains @{Add="gooddomain.com","sally@safedomain.com"} 

For new mailboxes or to replace existing lists, use this cmdlet. Note that double quotes around the domain and email addresses is optional with the cmdlet; they are required when using Add.

Set-MailboxJunkEmailConfiguration -Identity user@slipstick.com -BlockedSendersAndDomains "baddomain.com","alias@domain2.com" -TrustedSendersAndDomains "good-domain.com","alias@trusted.com"

Remember: using this cmdlet will replace the user's own lists with the domains you add. Use the one with @Add if you want to add to the user's list.

check the junk list in outlook

To check the settings, use:

Get-MailboxJunkEmailConfiguration -Identity user@slipstick.com

To add address to the lists in all mailboxes, use

Get-Mailbox | Set-MailboxJunkEmailConfiguration -BlockedSendersAndDomains @{Add="domain1.com", "user@domain2.com"}-TrustedSendersAndDomains @{Add="domain3.com","user@domain4.com"}

To replace lists, don't wrap @{Add= } around the addresses and domains:

Get-Mailbox | Set-MailboxJunkEmailConfiguration -Identity user@slipstick.com -BlockedSendersAndDomains "baddomain.com,"alias@domain2.com" -TrustedSendersAndDomains "good-domain.com","alias@trusted.com"

If your organization is large, you may want to spot check a few accounts, but smaller organizations can check all mailboxes using

Get-Mailbox | Get-MailboxJunkEmailConfiguration

check junk mail settings on all mailboxes

More Information

Set-MailboxJunkEmailConfiguration (TechNet)

Bulk Add Addresses to Safe and Blocked Senders Lists was last modified: December 4th, 2018 by Diane Poremsky

Related Posts:

  • Add Addresses to Safe (and Blocked) Senders for Users
  • Understanding the Safe and Blocked Senders lists
  • Exchange 2007 & Outlook 2007 error: Cannot add to the server Junk E-ma
    Error: Cannot Add to the Server Junk E-mail Lists
  • How do I access the blocked sender list in outlook.com. It's in Outloo
    Blocked Senders List in Outlook.com

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
2 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Albert Van den Woulden (@guest_218741)
September 24, 2021 7:53 am
#218741

It was very useful for me too! Thanks!

0
0
Reply
Chris Hayes (@guest_218400)
June 14, 2021 6:57 am
#218400

Immensely useful and works a treat, thank you Diane

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 28 Issue 27

Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Subscribe to Exchange Messaging Outlook






Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Outlook: Web Bugs & Blocked HTML Images
  • How to Remove the Primary Account from Outlook
  • Adjusting Outlook's Zoom Setting in Email
  • Move an Outlook Personal Folders .pst File
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Remove a password from an Outlook *.pst File
  • Create rules that apply to an entire domain
  • Use PowerShell to get a list of Distribution Group members
  • This operation has been cancelled due to restrictions
  • Outlook Auto Account Setup: Encrypted Connection not available
  • How to Block Foreign Spam
  • Automatically Open New Outlook when Windows boots
  • Block External Content in New Outlook
  • Save Messages in New Outlook
  • Send Individual Messages when Sending Bulk Email
  • Centrally managed signatures in Office 365?
  • Create a rule to delete spam with no sender address
  • Open Outlook Folders using PowerShell or VBScript
  • Cannot add Recipients in To, CC, BCC fields on MacOS
  • Change Appointment Reminder Sounds
Ajax spinner

Newest Code Samples

Delete Old Calendar Events using VBA

Use PowerShell or VBA to get Outlook folder creation date

Rename Outlook Attachments

Format Images in Outlook Email

Set Outlook Online or Offline using VBScript or PowerShell

List snoozed reminders and snooze-times

Search your Contacts using PowerShell

Filter mail when you are not the only recipient

Add Contact Information to a Task

Process Mail that was Auto Forwarded by a Rule

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




Windows 10 Issues

  • iCloud, Outlook 2016, and Windows 10
  • Outlook Links Won’t Open In Windows 10
  • Outlook can’t send mail in Windows 10: error Ox800CCC13
  • Missing Outlook data files after upgrading Windows?

Outlook Top Issues

  • The Windows Store Outlook App
  • The Signature or Stationery and Fonts button doesn’t work
  • Outlook’s New Account Setup Wizard
  • Outlook 2016: No BCM
  • Exchange Account Set-up Missing in Outlook 2016

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Contact Tools

Data Entry and Updating

Duplicate Checkers

Phone Number Updates

Contact Management Tools

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2023 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment