I'm attempting to configure this feature for the first time using Moodle 2.9.3+ and I'm getting this message in the cron.php output:
Unable to connect to IMAP server. Failed with 'Error connecting to mail server.'
I've defined the mailbox name, the hostname:port (port 993) and tried each of the SSL options available during my tests...all with no success so far. I'm able to use other applications from the moodle server to successfully connect to the mailbox I want to use, so I know my server:port settings and user/pass info is correct.
I believe I'm having an CA trust issue with the certificate from our Exchange Server. The admin UI doesn't appear to give me any options for overriding certificate validation or adding any external CA trusts. Any suggestions on how to overcome this issue?