Forum Discussion
How to resolve Junk email validation error
I tried the commands below and it worked on my end.
See screenshot below.
- set-mailboxjunkemailconfiguration -identity email address removed for privacy reasons -TrustedSendersAndDomains @{Remove="email address removed for privacy reasons"}
I went ahead and add the address to multiple mailbox safe senders list and I was able to remove the address from the list for multiple mailboxes using the command below.
- get-mailbox -ResultSize unlimited | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{remove="email address removed for privacy reasons"}
Please confirm if this helps.
If I have answered your question, please mark your post as Solved If you like my response, please give it a Like Appreciate your Kudos! Proud to contribute! ๐ |
Deleted
Thank you for your response.
I created a PowerShell script that processes all of the licensed mailboxes using a method similar to the one in your post. The command completes successfully for all but 20 of the 5200 mailboxes. I ran the commands as shown to reduce the time it takes for the script to complete.
My current working theory is that the Outlook application allows end users to add domain accounts to their mailboxes that PowerShell (and OWA) would block. Since those entries exist the PowerShell command fails, even when its trying to remove the entries. To test this theory I will grant myself access to the mailbox and remove the entries to determine if this clears up the issue.
Thanks again for your response!