Details
Description
If the firewall on the web-server is blocking port 993, CiviMailProcessor.php will fail with the following error:
connecting to imap.gmail.com, authenticating as user@gmail.com and selecting INBOX
Fatal error: Uncaught exception 'ezcMailTransportException' with message 'An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.' in /home/USER/SITE/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php:97 Stack trace: #0 /home/USER/SITE/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php(377): ezcMailTransportConnection->_construct('imap.gmail.com', 993, Object(ezcMailImapTransportOptions)) #1 /home/USER/SITE/sites/all/modules/civicrm/CRM/Mailing/MailStore/Imap.php(61): ezcMailImapTransport->construct('imap.gmail.com', NULL, Array) #2 /home/USER/SITE/sites/all/modules/civicrm/CRM/Mailing/MailStore.php(63): CRM_Mailing_MailStore_Imap->_construct('imap.gmail.com', 'USERNAME', 'PASSWORD', true, NULL) #3 /home/USER/SITE/sites/all/modules/civicrm/bin/CiviMailProcessor.php(97): CRM_Mailing_MailStore::getStore(NULL) #4 /home/USER/SITE/sites/all/module in /home/USER/SITE/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php on line 97
This error isn't very descriptive. It would be extremely useful if it had an error message like "Could not connect to IMAP server - Please verify port [PORTNUMBER] is open." and provide a link to the wiki, which explains how to check (i.e..: run the command 'openssl s_client -crlf -connect ilovemymail.com:993' or '% telnet imap.gmail.com 993' from the shell).
P.S.: Version 3.3.3 is released, but it is listed as an unreleased version in the Affects Version/s list.