Enable internal relay domain
Enabling internal relay will forward email sent to users that do not exist on the Office 365 server to the MX records of the domain.
Login to Admin Portal with admin account.
Exchange admin center
- Click mail flow on the right.
- Click accepted domains from top menu.
- Double click on your domain.