question

RAOUFHARBEG-0654 avatar image
0 Votes"
RAOUFHARBEG-0654 asked joyceshen-MSFT commented

Redirect only external message for 800 users

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@gmail.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





office-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joyceshen-MSFT avatar image
0 Votes"
joyceshen-MSFT answered

Hi @RAOUFHARBEG-0654

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.



105925.png (6.5 KiB)
110806.png (3.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RAOUFHARBEG-0654 avatar image
0 Votes"
RAOUFHARBEG-0654 answered joyceshen-MSFT commented

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



image.png (15.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RAOUFHARBEG-0654

Thanks for providing further information, I have tried the scenario in both on-prem server and Exchange online. It seems that it works well in on-prem side and I have the same issue in Exhange online as well. It seems that your users have mailboxes in both domains currently right?

If yes, We could try letting users setting a inbox rule in OWA side to forward their messages(internal mails are deleted by mailflow rule so they will not reach to their inbox) to meet this need

0 Votes 0 ·

Hi @RAOUFHARBEG-0654

Is there any update about your issue?

0 Votes 0 ·