Exchange 2010: Populate Safe Senders List on all Mailboxes via PowerShell script


When you have external legitimate email sender’s email address and domains, it may have been end up in Junk E-Mail in Outlook. You can tell users to right click on the email in Junk E-Mail folder and select Junk –> Never Block Sender (or Never Block Sender’s Domain). But every user had to do this by him/herself.

image

I wrote a script to add Safe Sender’s email and domain from a text file to all Mailboxes in the Exchange.  This is based on Set-MailboxJunkEmailConfiguration Exchange cmdlet. You can download this script and run it as it is. All you need is a text file with emails & domains in separate line on the same location of script file.

Download the script SetSafeSendersList.ps1. Enjoy.

5 thoughts on “Exchange 2010: Populate Safe Senders List on all Mailboxes via PowerShell script

  1. Nice script, works like charm. But how do i remove the added entries from a trustedsendersanddomains using this script?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s