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) »
  • EmailProcessor.php does not connect via IMAP
Pages: [1]

Author Topic: EmailProcessor.php does not connect via IMAP  (Read 1219 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
EmailProcessor.php does not connect via IMAP
March 23, 2011, 05:26:54 am
Hello,

Having trouble getting EmailProcessor.php to work on 3.3.2.
We are acccessing a google apps server for our bounce processing.
All credentials appear to be correct.
This isn't my standard setup. One difference is that the drupal and civicrm dbs are on a seperate host.

I get
Quote
connecting to imap.gmail.com, authenticating as xxx and selecting INBOX
Then I get what looks like a Drupal error (has some drupal css around it, though there is no css included on the page):

Quote
Website unavailable
Sorry we have lost the connection with our MySQL server.
Please try again.

Followed this through the code...

CRM_Mailing_MailStore::getStore($dao->name) is called on line 126 of EmailProcessor.php which then calls  CRM_Mailing_MailStore_Imap($dao->server, $dao->username, $dao->password, (bool) $dao->is_ssl, $dao->source) on line 63 of CRM/Mailing/MailStore.php
which then calls new ezcMailImapTransport($host, null, $options) on line 61 of CRM/Mailing/MailStore/Imap.php.

And that is where it barfs.  I gave up at that point, unsure as to where this rabbit hole was leading :)

Was I on the right line?  Anyone care to illuminate?

Ta,
Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: EmailProcessor.php does not connect via IMAP
March 23, 2011, 08:13:22 am
Without further information, I would suggest to take the error at face value--the code lost its connection. Since you say it's on a separate server, this is not too surprising...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: EmailProcessor.php does not connect via IMAP
March 23, 2011, 09:30:23 am
This one was an outrageous one in its subtlety and annoyance.

seems like you can't authenticate to gmail from ubuntu or centos using ezcMailImap if the username has a . in it (in the above versions at least).

you can authenticate from a mac though :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: EmailProcessor.php does not connect via IMAP
March 23, 2011, 10:25:39 am
Interesting.

This is not a reason to use a Mac, however. ;)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: EmailProcessor.php does not connect via IMAP
March 24, 2011, 01:37:31 pm
Quote from: michaelmcandrew on March 23, 2011, 09:30:23 am
This one was an outrageous one in its subtlety and annoyance.

seems like you can't authenticate to gmail from ubuntu or centos using ezcMailImap if the username has a . in it (in the above versions at least).

you can authenticate from a mac though :)

Do you have the same php version on the two machines ? same imap extension ? I'd doubt the color of the box has a lot to do about it

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: EmailProcessor.php does not connect via IMAP
March 24, 2011, 04:56:27 pm
Unless it is pink
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

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: EmailProcessor.php does not connect via IMAP
March 29, 2011, 10:38:11 am
You could be right, Xavier

PHP 5.2.11 on mac works
PHP 5.2.14 on centos doesn't work
PHP 5.3.2-1ubuntu4.7 doesn't work

so maybe something introduced between .2.11 and .2.14
« Last Edit: March 30, 2011, 01:57:34 am by michaelmcandrew »
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • EmailProcessor.php does not connect via IMAP

This forum was archived on 2017-11-26.