Feb 09 2023 04:09 PM
I'm attempting to add an email address to all users mailboxes using Set-mailboxJunkEmailConfiguration.
The command fails and returns an email address as the error (see below).
I've dumped the three lists contained in the record and the address displayed in the error isn't in any of them. The lists are TrustedSendersAndDomains, TrustedRecipientsAndDomains, and BlockedSendersAndDomains.
The command I'm running is:
set-mailboxjunkemailconfiguration -identity email address removed for privacy reasons -TrustedSendersAndDomains @{Remove="email address removed for privacy reasons"}
The error returns:
Set-MailboxJunkEmailConfiguration: |Microsoft.Exchange.Data.Storage.JunkEmailValidationException|Junk email validation error. Value:
email address removed for privacy reasons.
Note: all email addresses have been changed.
The error happens on a handful of accounts and the value is unique to each user.
This error happens on approx. 20 of 5100 mailboxes.
Any ideas?
Feb 09 2023 04:32 PM - edited Feb 18 2023 01:20 AM
I tried the commands below and it worked on my end.
See screenshot below.
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.
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! 🙂 |
Feb 10 2023 06:56 AM
@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!
Feb 11 2023 04:20 AM
Thank you for providing more information on your findings.
I reproduced in my environment and added a domain-like account on Outlook client but it was blocked on OWA. Screenshot below shows the behavior (outlook client on the left and OWA on the right).
I checked further on PowerShell and I was unable to add the domain account. However, I was able to remove the domain account entry. See screenshot below showing the powershell output.
Kindly provide the status of your test. Is it possible to check through one of the affected account and see if that is the case?
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!
Feb 11 2023 04:35 AM - edited Feb 11 2023 04:36 AM
This issue occurs because the Exchange server cannot validate the email addresses in the trusted senders list when the server tries to manage the junk email rules that are stored in the mailbox.
REGARDS : thedrivingtutors
Feb 12 2023 05:24 PM - last edited on Feb 13 2023 11:29 AM by EricStarker
Feb 12 2023 05:24 PM - last edited on Feb 13 2023 11:29 AM by EricStarker
Hi,
The error message you're encountering, "Junk email validation error," suggests that there is an issue with the email address you're trying to add to the TrustedSendersAndDomains list. This may be due to a number of reasons, including:
Invalid email address format: Make sure that the email address is entered in a valid format.
Email address not found: Verify that the email address exists and is in use.
Address already in the list: Check if the email address is already in the TrustedSendersAndDomains list and remove it if necessary.
Permission issues: Ensure that you have the appropriate permissions to modify the mailbox's junk email configuration.
You can try to resolve the issue by checking these possible causes and updating the email address or your permissions as needed.
(external link removed by moderator)
Feb 13 2023 01:25 PM
Feb 13 2023 01:29 PM
Apr 06 2023 07:04 PM - last edited on Oct 17 2023 10:05 AM by EmilyPerina
Apr 06 2023 07:04 PM - last edited on Oct 17 2023 10:05 AM by EmilyPerina
This issue occurs because the Exchange server cannot validate the email addresses in the trusted senders list when the server tries to manage the junk email rules that are stored in the mailbox.
regards : [link removed by admin]