Hello
Thank you for your question and reaching out. I can understand you are having query\issues related to specify sender for email enabled security group.
You can use below Powershell commands to Specific senders
Set-DistributionGroup -identity "MyGroup" -AcceptMessagesOnlyFromSendersOrMembers “MyGroup ”,”MyGroup2”
--If the reply is helpful, please Upvote and Accept as answer--