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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Processor with IMAP Gmail
Pages: [1]

Author Topic: CiviMail Processor with IMAP Gmail  (Read 2132 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
CiviMail Processor with IMAP Gmail
April 18, 2010, 09:03:22 am
I'm trying to use CiviMail Processor with a Gmail IMAP account for my return processor on Civi 3.0.4. I keep getting this error:

Code: [Select]
connecting to imap.gmail.com, authenticating as stonerandrewscivimail@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/stoneran/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php:97 Stack trace: #0 /home/stoneran/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php(377): ezcMailTransportConnection->__construct('imap.gmai...', 993, Object(ezcMailImapTransportOptions)) #1 /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore/Imap.php(60): ezcMailImapTransport->__construct('imap.gmai...', NULL, Array) #2 /home/stoneran/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore.php(61): CRM_Mailing_MailStore_Imap->__construct('imap.gmai...', 'stonerandrewsci...', 'mypass', true, NULL) #3 /home/stoneran/public_html/sites/all/modules/civicrm/bin/CiviMailProcessor.php(94): CRM_Mailing_MailStore::getStore(NULL) #4 /home/stoner in /home/stoneran/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php on line 97

My Mail Account in Admin > CiviMail > Mail Accounts is set up as:

Server: imap.gmail.com
Username: stonerandrewscivimail@gmail.com
Password: mypass
Email Domain: gmail.com
Protocol: Imap
Use SSL: checked
Default: checked

All others are left empty

What am I doing wrong? Also, does the test page cache (CiviCRM-Resource-URL/bin/CiviMailProcessor.php?name=username&pass=password&key=key)? It looks like it doesn't try to connect again when I refresh...

Any help appreciated!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviMail Processor with IMAP Gmail
April 18, 2010, 09:13:33 am
do i just need to edit something on CRM/Mailing/MailStore.php ?? I'm a little confused. I found this thread http://forum.civicrm.org/?topic=5220 but it seems a bit outdated so it's unclear to me if I'm supposed to edit that file or if this should just be working out of box for 3.0.
« Last Edit: April 18, 2010, 09:17:01 am by emilyf »

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 Processor with IMAP Gmail
April 18, 2010, 11:31:36 am

you should try to do a:

$  telnet imap.gmail.com 993

from your shell. Seems like your hosting provider might have blocked the outgoing port based on the error message

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviMail Processor with IMAP Gmail
April 18, 2010, 11:54:19 am
thanks lobo you are correct. now i just have to figure out why the bounces aren't working, but that's another thread. ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Processor with IMAP Gmail

This forum was archived on 2017-11-26.