Failed to connect to the Store error when using maileater against Office 365 server

Document ID : KB000123126
Last Modified Date : 18/12/2018
Show Technical Document Details
Question:
When CA SDM Maileater is configured with Office 365 account, maileater_nxd.log shows below errors and does not make connection:

2018-12-07 11:06:56:167 ERROR [ForkJoinPool-1-worker-1] c.c.S.m.c.JavaMailIMAPClient - Failed to make connection with STARTTLS to server outlook.office365.com, port 993, trying SSL connection 
2018-12-07 11:07:17:172 ERROR [ForkJoinPool-1-worker-1] c.c.S.m.c.JavaMailIMAPClient - Failed to connect to the Store. 
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: outlook.office365.com, 993; timeout -1 
Answer:
The error usually indicates that the needed ports are not open between the SDM Server where maileater program runs (in Advanced Availability setup its on the active Background server,  its on the Primary Server in case of a Conventional configuration).

Microsoft provides the correct ports and hostnames to be used here: 
https://support.office.com/en-us/article/pop-and-imap-email-settings-for-outlook-8361e398-8af4-4e97-b147-6c6c4ac95353

Work with network administrators to get the needed ports opened up for the communication and retest the integration.
 
Additional Information:
https://docops.ca.com/ca-service-management/14-1/en/administering/configure-ca-service-desk-manager/how-to-configure-the-mailbox-to-handle-inbound-emails/connecting-maileater-to-office-365-mail