Exchange Online’s Reject Direct Send setting blocks anonymous mail from your own domains: add partner connectors first
Exchange Online’s RejectDirectSend setting, off by default, rejects anonymous messages whose envelope sender uses one of the tenant’s accepted domains unless a mail flow connector attributes them. Devices and services that send as your domain need a partner connector first, and Microsoft plans to enable it by default for new tenants.
Read the guide