Forum Discussion
How to set an organization wide setting to automatically download pictures from a trusted sender.
There's no organisational setting or policy as such, but you can set it for all existing mailboxes in your org with the following powershell:
$mailboxes = Get-Mailbox -ResultSize Unlimited foreach ($mailbox in $mailboxes) { $mailboxIdentity = [string]$mailbox.UserPrincipalName Set-MailboxJunkEmailConfiguration -Identity $mailboxIdentity -TrustedSendersAndDomains @{Add="<SenderEmailOrDomain>"} }
You'll then just need to make sure you add them to all new mailboxes going forward, so there is some admin overhead at account creation.
I consistently get this error: Set-MailboxJunkEmailConfiguration: ||Property validation failed: TrustedSendersAndDomains
- LomTongOct 30, 2024Copper Contributor
Does the email address you're trying to add exist within your org? I think this error occurs if the address is in your directory.
I've had success with @mycompany.com addresses using the above (which is fine as they're sent from a marketing platform with a noreply address), but if there's a recipient in exchange with that address assigned I get the above error.
I've had a dig and Microsoft seem to claim this is expected behaviour, although I don't know why it doesn't return an appropriate error message.- TandyWineOct 31, 2024Iron ContributorThanks for the reply. As you've suggested the sending address is in Exchange is it is the address of an internal shared mailbox. However that email address is being intentionally spoofed as the sender by a vendor for a product we own. So it looks like it's from the internal address but it is not. So I think that I should use the real senders email address or at least domain, right? After running this command, should I expect any change in existing emails in my mailbox, or only in new ones? Also, is there a delay in how long after running the script before I should see results? And do I need to restart my outlook? I'm trying to get this to work with just my own mailbox before I think about applying to the whole tenant.