Posted On July 27, 2019

PowerShell: Microsoft Exchange to Require that all Senders are Authenticated

kimconnect 0 comments
blog.KimConnect.com >> Windows >> PowerShell: Microsoft Exchange to Require that all Senders are Authenticated

In this scenario, the business decision is to limit exposure of certain internal accounts to only allow those to receive emails from the same “Exchange Organization”. This is an extra measure to improve enterprise security posture by further reducing spams and potential messaging vulnerabilities.

# Set "Require that all senders are authenticated" for one account
$targetUsername="PORequests"
$targetObject = Get-ADUser -Filter 'SamAccountName -eq $targetUsername'
Set-ADUser $targetObject -Replace @{msExchRequireAuthToSendTo = $True}
# Set "Require that all senders are authenticated" for all Distribution Groups
$distributionGroups = Get-ADGroup -Filter 'groupcategory -eq "distribution"'
ForEach ($group In $distributionGroups){
#$group.Name
Set-ADGroup $group -Replace @{msExchRequireAuthToSendTo = $True}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Office 365 Rules

Block Executables: https://support.office.com/en-us/article/Blocked-attachments-in-Outlook-434752e1-02d3-4e90-9124-8b81e49a8519?CorrelationId=66e06c24-0d68-47c1-a503-5b4e30bc1c8a&ui=en-US&rs=en-US&ad=US&ocmsassetID=HA102749484#_Attachment_file_types Reject large files:  Sender is located Outside the organization The message size is…

Windows Update Error Code 0x80244022

Symptom: There were some problems installing updates, but we'll try again later. If you keep…

How to configure IPMonitor for a server

After enabling the SNMP service via Server Manager > Features, go into Services and locate…