Redirect only external message for 800 users

RAOUF HARBEG 1 Reputation point
2021-10-02T19:03:48.697+00:00

Here is the scenario that I couldn't find answer to:

What we have:
We (company A) have sold part of the company (800 users) to company B. We need to redirect their email (Domain A) to their new email address Domain B with a twist

What we need:
ONLY Emails from outside the organisation should be redirected. Emails from domain A should be blocked/reject or deleted...
meaning employee1@domainA sends email to migrateduser@DomainA should be rejected/deleted
But employee1@Stuff .com sends email to migrateduser@DomainA should get redirect to migrateduser@DomainB

What I did:
First, I put in place one Transport Rule -> to delete email from inside organisation going to the migrated users.
And for the redirect I used the command Set-Mailbox -DeliverToMailboxAndForward $true -ForwardingSMTPAddress $new-address

What's the issue
The issue is that both are applied. employee1@domainA gets an error when he send email from to migrateduser@DomainA but his email is ALSO redirected to migrateduser@DomainB

Help
Any thoughts on this urgent matter?

Thanks

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,166 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,641 Reputation points
    2021-10-04T03:10:15.237+00:00

    Hi @RAOUF HARBEG

    Could you please provide the configuration of your transport rule? Do you configure the rule like below?
    137253-105925.png

    And the migrated user will receive the NDR message as well?

    If so, please use the action Delete the message without notifying anyone instead. And I have test this action without issue.
    137180-110806.png


    If an Answer 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.

    0 comments No comments

  2. RAOUF HARBEG 1 Reputation point
    2021-10-04T05:34:03.19+00:00

    Thanks for your answer.

    We did configure it to delete instead of reject after some tries/// no luck. In the message trace it states (second line)"Reason: [{LED=550 5.2.1 Message deleted by the transport rules agent};{MSG=};{FQDN=};{IP=};{LRT=}]" BUT the email is forwared any way (first line)

    137275-image.png
    Thanks