420 4.2.0 Recipient deferred because there is no Mdb'

Adebowale Ademosu 20 Reputation points
2024-08-16T11:27:03.3666667+00:00

exchange server decommissioned but used as an SMTP relay. user created not as a mail user but mails are not getting sent and getting error below 420 4.2.0 Recipient deferred because there is no Mdb'

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

Accepted answer
  1. Alex Zhang-MSFT 945 Reputation points Microsoft Vendor
    2024-08-19T06:44:03.0266667+00:00

    Hello, @Adebowale Ademosu,

    Welcome to the Microsoft Q&A platform!

    Based on your description, I understand that You have deactivated the Exchange server and are using it as an SMTP relay, and you are receiving an undelivered report with code 420 4.2.0 when sending mails.

    As for the reason for this problem, if you introduce On-Premises Exchange in your infrastructure it can see your Active Directory users, but it doesn't see their mailboxes (because they were created and used only in Cloud). For cloud only users, it can't find those users in Active Directory, so it forwards emails for non-existing accounts using Internal Relay setting.

    To fix it, run the following command in your PowerShell.

    Enable-RemoteMailbox "Test User" -RemoteRoutingAddress "test.user@mydomain.mail.onmicrosoft.com"
    

    Above command, while simple is required to fix your problem, now you only need to set this for all remaining users so that this issue is no more.

    Please feel free to contact me if you have any queries. If my reply is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.

    Best Wishes,

    Alex Zhang

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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