Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7473

CiviMailProcessor.php fails without descriptive error if port 993 is not open on webhost

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.4.alpha
    • Component/s: CiviMail
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              caseye Casey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: