Following on from the blocked senders blog http://support.risualblogs.com/blog/2015/04/01/how-to-check-a-users-blocked-senders-in-exchange-20102013/ , I thought I’d let you know the commands to add a safe sender , they’re very similar to adding a blocked sender.
From the EMS run the below commands:
To Find out a user’s Safe senders
Get-MailboxJunkEmailConfiguration -Identity “ChangeName” | FL TrustedSendersandDomains
This will return the below
To Add a user to Safe senders
Set-MailboxJunkEmailConfiguration -Identity “ChangeName” –TrustedSendersandDomains @{Add=”test2@test.com”}
If you run the Get-MailboxJunkEmailConfiguration -Identity “ChangeName” | FL TrustedSendersandDomains , you will see the address has been added.
To Remove a user from trusted senders
Set-MailboxJunkEmailConfiguration -Identity “ChangeName” –TrustedSendersandDomains @{Remove=”test2@test.com”}
Those are the commands to add, remove and check blocked senders!