Email remains one of the most critical communication tools in the workplace, yet it is also a common target for spam and phishing. While Exchange Online Protection (EOP) and Microsoft Defender for Office 365 provide strong filtering, users often encounter false positives—legitimate emails ending up in the Junk Email folder. This can disrupt workflows, cause delays, and impact business productivity.
One way to reduce these false positives is by configuring Outlook Safe Senders. Safe Senders allow administrators to define a list of trusted email addresses and domains that Outlook will always treat as safe, ensuring that messages from these sources never get marked as junk.
Traditionally, Safe Sender lists are managed per user, but at scale this becomes difficult to control. Using Microsoft Intune, we can automate the deployment of a centralized Safe Senders list across all managed endpoints. This approach ensures consistency, reduces administrative overhead, and helps maintain a secure yet user-friendly email experience.
In this guide, we’ll walk through:
SafeSenders.txt file to devices.Create a plain-text file (safesenders.txt or something you name it) listing all trusted/safe sender email addresses or domains, each on a new line:
info@microsoft.com
donotreply@eskonr.com
info@edgeflow.com
billing@eskonr.com
safesenders.txt to C:\ProgramData\eskonr\outlooksafesender..intunewin file using Microsoft Win32 Content Prep Tool.
I have uploaded a PowerShell script to Github repository that helps to copy the txt file to local drive and also create a registry key which can be used as as detection method.
If you wish to make any changes to the txt file at a later stage, you can repackage win32 with revision in the version and re-upload the win32 app and update detection method. otherwise you can look at alternatives where the file can be uploaded to secure location (blog storage or something for accessing it). Test it first.
The script contains the following variables if you would like to make changes.
# Define variables
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$SourceFile = Join-Path -Path $ScriptDir -ChildPath 'safesenders.txt'
$TargetFolder = 'C:\ProgramData\eskonr\outlooksafesender'
$TargetFile = "$TargetFolder\safesenders.txt"
$LogFolder = 'C:\ProgramData\eskonr\logs'
$LogFile = "$LogFolder\outlooksafesender.log"
$RegPath = 'HKLM:\Software\eskonr\outlooksafesender'
$RegValueName = 'Version'
$RegValue = '1'


C:\ProgramData\eskonr\outlooksafesender\safesenders.txt).


This method has been tested in classic and new outlook and works fine.
Hope you find this article useful
Please fill out the form, and one of our representatives will contact you in Less Than 24 Hours. We are open from Monday to Friday.
Thank you for subscribing to our newsletter or requesting a quote. You will receive our next month's newsletter. If you have requested a quote, we will get in touch with you as soon as possible.
Something went wrong!
Thank for your reply!