Trying to configure Email Setting with Office 365 to support inbound email.
The Test Connection raises the error message saying "connection reset". Checking the log it shows password=<blank> but definitely the passowr is filled.
In the Server field, change "outlookoffice365.com" to "outlook.office365.com".
Here you have an example of OFFICE 365 configuration for IMAP, POP and SMTP (from left to right):
