Run a message trace against one of the offending messages, see what the details therein show. It will give you an idea whether the "move" action happened server-side or client-side, and you can go from there.
Spam still going to junk email folder despite anti-spam policy
Hi Guys,
I'm trying to configure the default inbound anti-spam policy in Exchange Online Protection (now under Microsoft 365 Defender / security.microsoft.com) to allow all spam through and only block phishing attempts. We do this by setting the "Spam" and "High confidence spam" actions to either "Add X-Header", or "Prepend subject line with text". These both work, but the problem is that emails that are classified as spam are still going into the user "Junk email" folder.
Does anyone know how to prevent this? There's a seperate action called "Move message to Junk Email folder" but we're not using that. What is causing the mail to go into the junk folder. I've checked the Outlook client settings and they're set not to do any spam filtering.
Any help would be much appreciated, otherwise I'll have to go through the rigmarole of engaging Microsoft support.
Cheers
6 answers
Sort by: Most helpful
-
-
Yuki Sun-MSFT 41,046 Reputation points Microsoft Vendor
2021-10-20T03:20:29.15+00:00 Hi @Tom Wardrop ,
According to the document below, "In Exchange Online, the message is moved to the Junk Email folder if the junk email rule is enabled on the mailbox (it's enabled by default).".
Configure anti-spam policies in EOPSo I'd recommend run the command below on one user mailbox and see if junk email rule is enabled:
Get-MailboxJunkEmailConfiguration -Identity "<MailboxIdentity>" | Format-List Enabled
If it's indeed in the enabled state, try disabling it and check the result:
Set-MailboxJunkEmailConfiguration -Identity "Ori Epstein" -Enabled $false
If it works, you can disabling the junk email rule for all users using:
$All = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited; $All | foreach {Set-MailboxJunkEmailConfiguration $_.Name -Enabled $false}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
Jay Schwenk 1 Reputation point
2021-11-05T05:25:34.977+00:00 Hi have the same issue, although I am not trying to disable this for the group but rather one mailbox that we rely on mails reaching the inbox to process the inbound communications and direct them correctly.
I have created a new spam filter, applied to the specific mailbox only, the rest follow the default policy. If I check via powershell it confirms that mailboxjunkemailconfiguration is set to false however mails are still being directed to junk.
-
Benjamin Goinar 1 Reputation point
2021-12-07T16:13:17.893+00:00 Interesting. Stumbled upon this via a google search.
I am having the exact same issue. I have had an open ticket with 365 support since mid-November about this with no fix in sight.
We have customer anti spam policy set to only tag emails and yet EOP is still delivering emails to the junk folder.
The above Powershell commands have been confirmed to no longer have any sort of effect (but we have run them for good measure just incase to no avail).
EOP is simply ignoring the actions set and still delivering mail to the junk folder.
-
AspageAutomatisering 1 Reputation point
2022-02-04T08:48:59.683+00:00 Same problem here. I use an external spam service and disabled antispam on all my mailboxes. However, Microsoft 365 / Exchange still delivers (valid) mail to my junkmail folder.
How to stop this permanently?