Spam filtering before redirecting email

KarolisSSSSS 21 Reputation points

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?


Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,059 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,227 questions
{count} votes

Accepted answer
  1. Lydia Zhou - MSFT 2,371 Reputation points Microsoft Employee


    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.

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 138.6K Reputation points MVP

    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.