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
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, 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:, 993; timeout -1 
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:

Work with network administrators to get the needed ports opened up for the communication and retest the integration.
Additional Information: