Inbound Email error Unable to set InboundEmail::$server_url: Expected internet domain name or IP address, outlook.office365.com given when trying to create a new group mail account

Hi all,

I got this error message when trying to create a new group mail in an Inbound Email: 

Unable to set InboundEmail::$server_url: Expected internet domain name or IP address, "outlook.office365.com " given

Updated: I just found that the domain contains a space 

For the existing connection, it works well. I'm able to "Test Settings" connection and it successful.

Is there anyone experiencing this issue?

SugarCRM Version 14.0.0 (Build 233) (Q2 2024) Enterprise

Many thanks