We recently migrated from a local Exchange server to Office 365 and now I cannot get CF9 to make a connection using CFIMAP.
Here is the offending code:
<cfimap
action ="OPEN"
connection = "Test"
password = "*****"
port = "993"
secure = "yes"
server = "outlook.office365.com"
stoponerror = "true"
timeout = "10"
username = "***@****.org">
The CF error says "This exception was caused by: javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect."
Among the things I've tried is installing the Office 365 SSL certificate on the CF server, as described here in an extremely helpful answer that solved an earlier CFHTTP problem.
I greatly appreciate any help anyone who's been able to connect CF9 to Office 365 with CFIMAP can offer.