Problem: An encrypted connection to your mail server is not available.
A Microsoft 365 user tries to set up a mail account for Exchange Online in Microsoft Outlook application. However, the user's Outlook profile isn't automatically set up or at the existing outlook profile specific mail account can not setup. Instead, the user gets the following error message under Searching for your mail server setting in Outlook:
Whereas, This Microsoft Office365 account might be connect by the webmail smoothly.
Learn from the Microsoft Official Page
Solution: Set up Outlook to access mail in Exchange Online through a Post Office Protocol (POP3) / IMAP (Internet Message Access Protocol) connection.
Step-01: At the Windows PC (Control Panel) => Follow the process as per Picture
Step-02: At the Server Information, select type of account POP / IMAP. Placed the mail server information correctly as per server configuration. Example -
Incoming mail server: mail.contoso.com
Outgoing mail server: smtp.contoso.com
Use the Incoming and Outgoing server encrypted Port number, as per design of the Mail server configuration. By following OK & Next button, the problem might be solved so far.
Warning: If the above server information found wrong or spelling mistake, below problem will happened instead of completion the account setting.
Resolve by Quick steps, if showing above warn:
Since, you are not the server administrator somehow and no access into the EAC (Exchange Admin Center), and not know about the server above info. But you have to solve and finished the management issue. Following the some steps problem must be resolved quickly.
All Steps: Click on Outlook apps with the existing profile, following the below steps as per pictures.
If you want to Redirect the OST file folder from default, see step by step -
Step-01: Remove first email account from the Outlook account settings, and follow below steps
*** Short Note for Encryption Method of Mail protocols :
1. STARTTLS (Start Transport Layer Security): Its upgraded an existing insecure connection to secure with non-secure port.
For SMTP as outgoing mail server port, use 587 & 25 Server to Server Connection.
For PoP3 as incoming mail server port, use 110 (unsafe).
For IMAP as incoming mail server port, use 143.
2. SSL/TLS (Secure Socket Layer/Transport Layer Security): Whole session are encrypted and protecting, while communicating mail from email client to email server.
For SMTPS as outgoing mail server port, use 465.
For PoP3S as incoming mail server port, use 995.
For IMAPS as incoming mail server port, use 993.