Hi @ Андрей Михалевский ,
Just want to determine if your Exchange environment is a hybrid deployment?
When I researched this error, I found that the XOORG command was only understood by Exchange.
In cases where the sender is external (like forward scenario) the XOORG use the default accepted domain. The following two conditions are checked on the on-premises Server:
1.If the Receive connector TlsDomainCapabilities is set to AcceptedCloudServicesMail,
2.If the XOORG Domain mentioned with MAIL FROM Command matches on-premises Accepted Domain or matches any remote domains with TrustedMailInboundEnabled set to true.
If the above conditions are true, on-premises server will treat the connection as Authenticated and will promote cross premises headers to org headers.
X-OriginatorOrg: contoso.com
In addition, it is recommended that you use the rule to add X-OriginatorOrg headers when relaying to see if it works.
More information about XOORG can be found here:Advanced Office 365 Routing: Locking Down Exchange On-Premises when MX points to Office 365 - Microsoft Community Hub
Hope the above information is helpful to you!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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