Hi @Kmcnet
Thank you for reaching out to Microsoft Learn Q&A!
Based on your description, it seems you're encountering the error: 550 5.7.54 SMTP; Unable to relay recipient in non-accepted domain when attempting to send email from your application to Gmail.
As forum moderators, we don’t have access to a dedicated testing environment to replicate complex, user-specific scenarios. However, our goal is to provide helpful insights based on available resources. From my research, this error may be caused by unauthenticated or insufficiently authorized clients attempting to send mail to external domains.
To help troubleshoot, could you please double-check the configuration of your Receive Connector’s authentication mechanisms?
Please ensure that the Receive Connector on your Exchange server is properly configured to allow relaying for your application.
Additionally, here are some official Microsoft resources related to Receive Connectors that may provide valuable insights and are worth reviewing:
Receive connectors | Microsoft Learn
Allow anonymous relay on Exchange servers | Microsoft Learn
Scenarios for custom Receive connectors in Exchange Server | Microsoft Learn
If I’ve misunderstood any part of your situation, or if you have further questions or updates, please don’t hesitate to reply. Thank you for your patience and for working through this with us.
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