Share via

RequireSenderAuthenticationEnabled

Glenn Maxwell 13,761 Reputation points
2022-05-24T21:34:59.967+00:00

HI

i have DLs in a csv file in the below format. i want to know what is the delivery management setting on the DLS. For some DLs i want to set RequireSenderAuthenticationEnabled as false(Senders inside and outside of my organization) and for some RequireSenderAuthenticationEnabled as true(Only senders inside my organization). Please guide me in exporting the data to csv file.

alias
dl1@Company portal .com
dl1@Company portal .com

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

Answer accepted by question author

Kai Yao 37,791 Reputation points Moderator
2022-05-25T02:47:12.18+00:00

Hi @Glenn Maxwell

You may use the following syntax:

import-csv DLs.csv | Foreach-object {Get-distributiongroup -identity $_.alias | Select-object Name,PrimarySMTPAddress,RequireSenderAuthenticationEnabled | Export-csv result.csv -append}  

To change the value of RequireSenderAuthenticationEnabled, you may create two csv files, one contains RequireSenderAuthenticationEnabled to be false and the other to be true.
Then use this syntax (modify $false or $true according to the specified csv files in the import-csv part):

import-csv DLs.csv | Foreach-object {Set-distributiongroup -identity $_.alias -RequireSenderAuthenticationEnabled $false}  

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.