Share via

Spam filtering before redirecting email

KarolisSSSSS 21 Reputation points
2020-10-22T15:17:49.42+00:00

Hi, we O365 Exchange Online, we've created a shared mailbox and all incoming emails are redirected (automatically forwarded) to external email. If we receive spam email, it is redirected (forwarded) to external email and then goes to spam filter. Is it possible to set rules that first action would be going to spam filter and only if it is not a spam it is being redirected to external email address?

34401-image.png

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.


Answer accepted by question author

  1. Lydia Zhou - MSFT 2,386 Reputation points Microsoft Employee
    2020-10-23T06:57:46.443+00:00

    @KarolisSSSSS

    What about creating an Inbox rule for shared mailbox to redirect or forward messages? If so, you have to create a transport rule to prepend the subject of those inbound messages, then you can create an Inbox rule like this: "messages with specific words in the subject (add by mail flow rule), redirect/forward to another user".

    For your reference: Add rules to a shared mailbox.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    Was this answer helpful?

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 160.2K Reputation points MVP Volunteer Moderator
    2020-10-22T15:28:39.257+00:00

    Not possible since rules fires before the anti-spam checks.

    However... Anti-malware checks happen before a transport rule. Are you saying that malware messages are being forwarded as well?
    If so, I would use a transport rule to forward instead of forwarding from the mailbox and see if at least those are blocked

    If you want to mark specific messages as spam before they're even scanned by spam filtering, or mark messages so they'll skip spam filtering, you can create mail flow rules (also known as transport rules) to identify the messages and set the spam confidence level (SCL). For more information about the SCL, see Spam confidence level (SCL) in EOP.

    https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/use-mail-flow-rules-to-set-the-spam-confidence-level-scl-in-messages?view=o365-worldwide

    https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/exchange-online-protection-overview?view=o365-worldwide#how-eop-works

    34373-image.png

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.