Hi @procc ,
If I try to connect to SMTP server with user@ssss .onmicrosoft.com it works without a problem, but if I try to connect with user@ssss .com it gives me error
Are there any differences between these 2 accounts?
Due to the issue only happen to this specific account, it may be related to the account itself. I have researched a lot about your error and found it may happen when you configure a Microsoft 365 account and don't specify the correct SMTP server in Gmail. For more information, please refer to this article: How to find the correct SMTP server settings so that you can Send Mail As from Office365 in Gmail(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
For your error, the ping result address may be your Office 365 SMTP server address, it's suggested to change the server address to the ping result as Manu mentioned to check if your issue has any difference.
If your issue still exists, considering you also couldn't configure it in Outlook, in order to perform more targeted test, please provide me with more information about your account and the version of your Outlook Client(File>Office account>About Outlook).
If your issue has any update, please feel free to post back.
If the response is helpful, please click "Accept Answer" and upvote it.
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.