Server name for Microsoft 365/Office 365 accounts is: outlook.office365.com.
To find the server name, you can login OWA to check it.
- Sign into office.com
- Click Settings in the upper right-hand corner.
- Click Mail from the Your app settings section on the right-hand side near the bottom of the screen. If you don’t see Mail, click on View all Outlook settings.
- Expand Mail on the left-hand side under the Options menu.
- Expand Accounts.
- Click POP and IMAP.
- Copy the value for Pop setting and IMAP setting.