CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail can't connect to Gmail
Pages: [1]

Author Topic: CiviMail can't connect to Gmail  (Read 1910 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
CiviMail can't connect to Gmail
February 03, 2011, 02:31:37 pm
Can't even connect using the processor script in Civi 3.3.3.  I have checked the settings in Thunderbird and can connect.

This is what I get when I run from browser using this command:
Quote
https://www.wildsight.ca/sites/all/modules/civicrm/bin/CiviMailProcessor.php?name=admin&pass=pass&key=key
or without SSL
Quote
http://www.wildsight.ca/sites/all/modules/civicrm/bin/CiviMailProcessor.php?name=admin&pass=pass&key=key

Error:
Quote
connecting to imap.gmail.com, authenticating as noreply@wildsight.ca and selecting INBOX
<br />
<b>Fatal error</b>:  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/wildsigh/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php:97
Stack trace:
#0 /home/wildsigh/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php(377): ezcMailTransportConnection-&gt;__construct('imap.gmail.com', 993, Object(ezcMailImapTransportOptions))
#1 /home/wildsigh/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore/Imap.php(61): ezcMailImapTransport-&gt;__construct('imap.gmail.com', NULL, Array)
#2 /home/wildsigh/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore.php(63): CRM_Mailing_MailStore_Imap-&gt;__construct('imap.gmail.com', 'noreply@wildsig...', '***password***', true, NULL)
#3 /home/wildsigh/public_html/sites/all/modules/civicrm/bin/CiviMailProcessor.php(97): CRM_Mailing_MailStore::getStore(NULL)
#4 /home/wildsigh/public_html/sit in <b>/home/wildsigh/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php</b> on line <b>97</b><br />

Thinking maybe it is an SSL error, I have checked that the server's cert is correct, and it is.  "Force SSL" has no effect on the script.

Is is a hosting issue, are they blocking connections?  Host is Linux cPanel 11.28.76.  Apache 2.2, PHP 5.2, MySQL 5.1

Any hints or clues would be helpful, thanks!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: CiviMail can't connect to Gmail
February 03, 2011, 02:35:29 pm
screenshots of my settings and the certificate in good standing

FYI i tried imap.googlemail.com as a server instead and it was the same result
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail can't connect to Gmail
February 03, 2011, 02:36:38 pm

try doing this from the shell:

Code: [Select]
telnet imap.gmail.com 993
Trying 74.125.115.109...
Connected to gmail-imap.l.google.com.
Escape character is '^]'.

and that is what i get. basically lets u know if the port is blocked or not

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: CiviMail can't connect to Gmail
February 03, 2011, 02:46:11 pm
thanks for the idea lobo.  indeed, the connection just hangs.  it appears the host is blocking 993.  I will take up the issue with them.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviMail can't connect to Gmail
February 09, 2011, 04:44:04 pm
Stoob  - that hangs for us but another person suggests

openssl s_client -crlf -connect imap.gmail.com:993

which does seem to work.

Re-saving the credentials in Civi *seems* to be working for us. - One broken site done - about to try the others
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail can't connect to Gmail

This forum was archived on 2017-11-26.