Add sender to Safe Senders List through PowerShell

Add sender to Safe Senders List through PowerShell


Add sender to Safe Senders List through PowerShell


Blocking pictures can help protect your computer. Microsoft Outlook is configured by default to block automatic picture downloads from the Internet. However, you can unblock pictures to be downloaded and automatically image download using Safe Senders List.


Configuring a Safe Senders list for all users using both Outlook Web Access (OWA) and the desktop client, can be achieved through a combination of methods. Since Group Policy Objects (GPOs) only apply to the Outlook desktop client and don't affect OWA settings, additional step through PowerShell Script is needed to ensure that Safe Senders lists are populated for all users. 


Utilize PowerShell scripts to manage Safe Senders lists for OWA users. You can use the Exchange Online PowerShell module to connect to your Exchange Online environment and manipulate Safe Senders lists programmatically. 



Here's a basic example of how you can add a sender to the Safe Senders list for a single user using PowerShell:

# Add sender to Safe Senders list for a single user

Set-MailboxJunkEmailConfiguration -Identity <UserEmailAddress> -TrustedSendersAndDomains @{Add="<SenderEmailAddress>"}
Generic


After testing the above, you can add a sender to the Safe Senders list for all mailboxes using PowerShell:

# Add sender to Safe Senders list for all mailboxes

Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{Add="example.com","example@domain.com"}
    • Related Articles

    • Whitelisting

      Welcome to PhishGuard Email Whitelisting! What Is Email Whitelisting? Whitelisting email addresses means adding the sender to the approved senders list, which will keep emails away from the spam folder. Whitelisting consists of many levels and may be ...
    • Add New Group

      Add New Group Having a group of targets created is one of the essential steps prior launching your campaign. Login using your username and the associated password. From the side menu, select Groups. Click New Group button [1]. Enter a unique group ...
    • PhishGuard Reporter Add-in for Office 365

      PhishGuard Reporter Add-in for Office 365 This guide will walk you through the steps to install the PhishGuard reporter, and how to view reported emails. Install PhishGuard Reporter (Single Device Installation) You can install it using the Outlook ...
    • FAQs

      HOW to Open a CSV File In Excel? Steps on how to open a CSV file in Excel: Open a new Excel document and navigate to the Data tab. Click From Text. Navigate to the CSV file you wish to open and click Import. From the newly-opened window, choose ...
    • Whitelisting PhishGuard in Proofpoint

      output:Whitelisting PhishGuard in Proofpoint Essentials The instructions below are for third-party software. When you're ready to whitelist in Proofpoint, follow the below instructions. Navigate to Security Settings > Email > Sender Lists. Under the ...