Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-11 Thread Andy Dorman

On 02/09/2015 04:30 PM, Andy Dorman wrote:

On 02/09/2015 01:43 PM, Michael M Slusarz wrote:

Quoting Michael M Slusarz slus...@horde.org:


Quoting Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 10:18 AM, Michael J Rubinsky wrote:


Quoting Jan Schneider j...@horde.org:


Zitat von Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*)
RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the
mailbox name and the reference name pattern.

For example, this LIST command works fine while the original above
does not and the only difference is the space after the mailbox
name:

LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN
(SUBSCRIBED)

I have not yet looked at the code where the command is being
assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


I'm pretty sure this has once been reported elsewhere (ticket tracker
or mailing list) but couldn't be reproduced. Please search for the
original report.



Maybe https://bugs.horde.org/ticket/13825



Right, I remember seeing the original issue but did not follow up as
it involved active sync.

However, in reading the bug report it looks like the same issue.  The
addition of the empty reference name pattern  without the
delimiting space between it and the mailbox name appears to be the
problem.

I will add my debug log output and the results of manual testing with
Cyrus to the bug report.


My shot-in-the-dark guess is that this PHP fix is broken (would
explain why 5.5.21 and 5.6.5 break things):

https://bugs.php.net/bug.php?id=68532

But I'm out of country and won't be able to look at this anytime
soon.  The best course of action would be for someone to come up with
a reproducible test case to verify.


Almost positive this is the regression that Jan reported:

https://bugs.php.net/bug.php?id=68948

People should make noise on that ticket to get this fixed.

michael

___
Michael Slusarz [slus...@horde.org]



I voted for it...did not know enough to make an intelligent
comment...but I voted for it and sent the link to several users of our
webmail system to vote for it.

Hopefully others on this list will as well since it is a show stopper
for Horde Imp with the latest PHP 5.5.21  5.6.5.



FWIW, I finally figured out that the issue with the IMAP LIST command 
was NOT that there was a missing space between the mailbox name and the 
empty reference name pattern.  The problem is the empty reference name 
pattern should not be there at all.


I realize this is almost certainly caused by the regression bug 
https://bugs.php.net/bug.php?id=68948


In the meantime I had made a very ugly and possibly very stupid 
temporary fix so our users can read their email.  I modified 
Horde/Imap/Client/Data/Format/Filter/Quote.php to NOT do anything (ie, 
do not add the ) if the length of the incoming bucket data is 0.


I only did this as a last resort and I am uncertain about potential 
side-effects.  I will post more as we learn more in using my ugly hack.


--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Andy Dorman

On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*) RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the mailbox 
name and the reference name pattern.


For example, this LIST command works fine while the original above does 
not and the only difference is the space after the mailbox name:


LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN 
(SUBSCRIBED)


I have not yet looked at the code where the command is being assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Andy Dorman

On 02/09/2015 10:18 AM, Michael J Rubinsky wrote:


Quoting Jan Schneider j...@horde.org:


Zitat von Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*) RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the
mailbox name and the reference name pattern.

For example, this LIST command works fine while the original above
does not and the only difference is the space after the mailbox name:

LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN
(SUBSCRIBED)

I have not yet looked at the code where the command is being assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


I'm pretty sure this has once been reported elsewhere (ticket tracker
or mailing list) but couldn't be reproduced. Please search for the
original report.



Maybe https://bugs.horde.org/ticket/13825



Right, I remember seeing the original issue but did not follow up as it 
involved active sync.


However, in reading the bug report it looks like the same issue.  The 
addition of the empty reference name pattern  without the delimiting 
space between it and the mailbox name appears to be the problem.


I will add my debug log output and the results of manual testing with 
Cyrus to the bug report.


--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Michael M Slusarz

Quoting Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 10:18 AM, Michael J Rubinsky wrote:


Quoting Jan Schneider j...@horde.org:


Zitat von Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*) RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the
mailbox name and the reference name pattern.

For example, this LIST command works fine while the original above
does not and the only difference is the space after the mailbox name:

LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN
(SUBSCRIBED)

I have not yet looked at the code where the command is being assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


I'm pretty sure this has once been reported elsewhere (ticket tracker
or mailing list) but couldn't be reproduced. Please search for the
original report.



Maybe https://bugs.horde.org/ticket/13825



Right, I remember seeing the original issue but did not follow up as  
it involved active sync.


However, in reading the bug report it looks like the same issue.   
The addition of the empty reference name pattern  without the  
delimiting space between it and the mailbox name appears to be the  
problem.


I will add my debug log output and the results of manual testing  
with Cyrus to the bug report.


My shot-in-the-dark guess is that this PHP fix is broken (would  
explain why 5.5.21 and 5.6.5 break things):


https://bugs.php.net/bug.php?id=68532

But I'm out of country and won't be able to look at this anytime soon.  
 The best course of action would be for someone to come up with a  
reproducible test case to verify.


michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Andy Dorman

On 02/09/2015 01:43 PM, Michael M Slusarz wrote:

Quoting Michael M Slusarz slus...@horde.org:


Quoting Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 10:18 AM, Michael J Rubinsky wrote:


Quoting Jan Schneider j...@horde.org:


Zitat von Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*)
RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the
mailbox name and the reference name pattern.

For example, this LIST command works fine while the original above
does not and the only difference is the space after the mailbox name:

LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN
(SUBSCRIBED)

I have not yet looked at the code where the command is being
assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


I'm pretty sure this has once been reported elsewhere (ticket tracker
or mailing list) but couldn't be reproduced. Please search for the
original report.



Maybe https://bugs.horde.org/ticket/13825



Right, I remember seeing the original issue but did not follow up as
it involved active sync.

However, in reading the bug report it looks like the same issue.  The
addition of the empty reference name pattern  without the
delimiting space between it and the mailbox name appears to be the
problem.

I will add my debug log output and the results of manual testing with
Cyrus to the bug report.


My shot-in-the-dark guess is that this PHP fix is broken (would
explain why 5.5.21 and 5.6.5 break things):

https://bugs.php.net/bug.php?id=68532

But I'm out of country and won't be able to look at this anytime
soon.  The best course of action would be for someone to come up with
a reproducible test case to verify.


Almost positive this is the regression that Jan reported:

https://bugs.php.net/bug.php?id=68948

People should make noise on that ticket to get this fixed.

michael

___
Michael Slusarz [slus...@horde.org]



I voted for it...did not know enough to make an intelligent 
comment...but I voted for it and sent the link to several users of our 
webmail system to vote for it.


Hopefully others on this list will as well since it is a show stopper 
for Horde Imp with the latest PHP 5.5.21  5.6.5.


--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Andy Dorman

From: Andy Dorman ador...@ironicdesign.com
Sent: Feb 8, 2015 6:17 PM
To: imp@lists.horde.org
Subject: Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported
by server


On 02/08/2015 05:00 PM, Andy Dorman wrote:

On 02/08/2015 04:34 PM, Andy Dorman wrote:

On 02/08/2015 11:00 AM, Andy Dorman wrote:

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

  * New upstream version 5.6.5+dfsg
  * Security vulnerabilities fixed:
   + Core
- Fixed bug #68710 (Use After Free Vulnerability in PHP's
  unserialize()). (CVE-2015-0231)
   + CGI:
- Fixed bug #68618 (out of bounds read crashes
  php-cgi). (CVE-2014-9427)
   + EXIF:
- Fixed bug #68799: Free called on unitialized
  pointer. (CVE-2015-0232)
  * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up
with an empty mail block (ie, no inbox display) BUT the block with
Newest Unseen Messages is fine.  If you try to go to Imp to see your
email you are logged out with the onscreen error IMAP error
reported by
server.

IMAP access using other mail clients like Thunderbird and K9 on my
phone
works fine.

I think the problem is somewhere in the new PHP 5.6.5, but so far I
have
not been able to find any sort of smoking gun that points to exactly
which change is the problem.

Syslog in Horde debug mode reports the lines below for HORDE [imp] and
Cyrus. You can see the original login success for IMAP, then several
failures of 'listMailBoxes' as I navigated from the opening portal, to
the config to enable debug logging and back to the portal to click on
the Mail portal block and document the error.  I only included the
relevant Cyrus  Horde log entries (there are a LOT of them) for the
initial login + failure and the debug failure.

FYI, the Cyrus fetching user_deny.db entry for.. log entries are
normal.  I am not a Cyrus guru so I am not sure why they are there,
but
they have always been there before this issue started and are also
there
when checking my IMAP email with Thunderbird or K9.

Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]:
imapd:Loading
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist:
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes)
in 0
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]:
SSL_accept()
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]:
SSL_accept()
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls:
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login:
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net
PLAIN+TLS
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'

Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for
andydor...@comehome.net (50.130.11.148) to
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of
/usr/share/horde/imp/lib/Auth.php]

Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT
returned 278 messages

Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 12953 on line 726 of
/usr/share/horde/imp/lib/Imap.php]


Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 13019 on line 726 of
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file
(conf.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file
(hooks.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]

Log lines after Horde debug loging enabled
--

Relevant Cyrus

Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-09 Thread Michael M Slusarz

Quoting Michael M Slusarz slus...@horde.org:


Quoting Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 10:18 AM, Michael J Rubinsky wrote:


Quoting Jan Schneider j...@horde.org:


Zitat von Andy Dorman ador...@ironicdesign.com:


On 02/09/2015 08:26 AM, Andy Dorman wrote:

C: 6 LIST ()  (INBOX * Other Users/* Shared Folders/*) RETURN
(SUBSCRIBED)
S: 6 BAD Invalid syntax in List command


I have found the problem...not sure of the fix yet.

The problem is that the LIST command needs a space between the
mailbox name and the reference name pattern.

For example, this LIST command works fine while the original above
does not and the only difference is the space after the mailbox name:

LIST ()  (INBOX * Other Users/*  Shared Folders/* ) RETURN
(SUBSCRIBED)

I have not yet looked at the code where the command is being assembled.

--
Andy Dorman

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


I'm pretty sure this has once been reported elsewhere (ticket tracker
or mailing list) but couldn't be reproduced. Please search for the
original report.



Maybe https://bugs.horde.org/ticket/13825



Right, I remember seeing the original issue but did not follow up  
as it involved active sync.


However, in reading the bug report it looks like the same issue.   
The addition of the empty reference name pattern  without the  
delimiting space between it and the mailbox name appears to be the  
problem.


I will add my debug log output and the results of manual testing  
with Cyrus to the bug report.


My shot-in-the-dark guess is that this PHP fix is broken (would  
explain why 5.5.21 and 5.6.5 break things):


https://bugs.php.net/bug.php?id=68532

But I'm out of country and won't be able to look at this anytime  
soon.  The best course of action would be for someone to come up  
with a reproducible test case to verify.


Almost positive this is the regression that Jan reported:

https://bugs.php.net/bug.php?id=68948

People should make noise on that ticket to get this fixed.

michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


[imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-08 Thread Andy Dorman

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

  * New upstream version 5.6.5+dfsg
  * Security vulnerabilities fixed:
   + Core
- Fixed bug #68710 (Use After Free Vulnerability in PHP's
  unserialize()). (CVE-2015-0231)
   + CGI:
- Fixed bug #68618 (out of bounds read crashes
  php-cgi). (CVE-2014-9427)
   + EXIF:
- Fixed bug #68799: Free called on unitialized
  pointer. (CVE-2015-0232)
  * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up 
with an empty mail block (ie, no inbox display) BUT the block with 
Newest Unseen Messages is fine.  If you try to go to Imp to see your 
email you are logged out with the onscreen error IMAP error reported by 
server.


IMAP access using other mail clients like Thunderbird and K9 on my phone 
works fine.


I think the problem is somewhere in the new PHP 5.6.5, but so far I have 
not been able to find any sort of smoking gun that points to exactly 
which change is the problem.


Syslog in Horde debug mode reports the lines below for HORDE [imp] and 
Cyrus. You can see the original login success for IMAP, then several 
failures of 'listMailBoxes' as I navigated from the opening portal, to 
the config to enable debug logging and back to the portal to click on 
the Mail portal block and document the error.  I only included the 
relevant Cyrus  Horde log entries (there are a LOT of them) for the 
initial login + failure and the debug failure.


FYI, the Cyrus fetching user_deny.db entry for.. log entries are 
normal.  I am not a Cyrus guru so I am not sure why they are there, but 
they have always been there before this issue started and are also there 
when checking my IMAP email with Thunderbird or K9.


Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted 
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]: imapd:Loading 
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist: 
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes) in 0 
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server 
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]: SSL_accept() 
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]: SSL_accept() 
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls: 
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no 
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching 
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login: 
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net PLAIN+TLS 
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching 
user_deny.db entry for 'andydor...@comehome.net'


Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for 
andydor...@comehome.net (50.130.11.148) to 
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of 
/usr/share/horde/imp/lib/Auth.php]


Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching 
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user 
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT 
returned 278 messages


Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes] 
IMAP error reported by server. [pid 12953 on line 726 of 
/usr/share/horde/imp/lib/Imap.php]



Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes] 
IMAP error reported by server. [pid 13019 on line 726 of 
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file 
(conf.php; app: imp) [pid 13019 on line 109 of 
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file 
(hooks.php; app: imp) [pid 13019 on line 109 of 
/usr/share/php/Horde/Registry/Loadconfig.php]


Log lines after Horde debug loging enabled
--

Relevant Cyrus log entries
2015-02-08T09:02:32.456729-06:00 yorick cyrus/imap[12975]: accepted 
connection
2015-02-08T09:02:32.465951-06:00 yorick cyrus/imap[12975]: imapd:Loading 
hard-coded DH parameters
2015-02-08T09:02:32.573783-06:00 yorick cyrus/imap[12975]: 

Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-08 Thread Andy Dorman

On 02/08/2015 11:00 AM, Andy Dorman wrote:

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

   * New upstream version 5.6.5+dfsg
   * Security vulnerabilities fixed:
+ Core
 - Fixed bug #68710 (Use After Free Vulnerability in PHP's
   unserialize()). (CVE-2015-0231)
+ CGI:
 - Fixed bug #68618 (out of bounds read crashes
   php-cgi). (CVE-2014-9427)
+ EXIF:
 - Fixed bug #68799: Free called on unitialized
   pointer. (CVE-2015-0232)
   * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up
with an empty mail block (ie, no inbox display) BUT the block with
Newest Unseen Messages is fine.  If you try to go to Imp to see your
email you are logged out with the onscreen error IMAP error reported by
server.

IMAP access using other mail clients like Thunderbird and K9 on my phone
works fine.

I think the problem is somewhere in the new PHP 5.6.5, but so far I have
not been able to find any sort of smoking gun that points to exactly
which change is the problem.

Syslog in Horde debug mode reports the lines below for HORDE [imp] and
Cyrus. You can see the original login success for IMAP, then several
failures of 'listMailBoxes' as I navigated from the opening portal, to
the config to enable debug logging and back to the portal to click on
the Mail portal block and document the error.  I only included the
relevant Cyrus  Horde log entries (there are a LOT of them) for the
initial login + failure and the debug failure.

FYI, the Cyrus fetching user_deny.db entry for.. log entries are
normal.  I am not a Cyrus guru so I am not sure why they are there, but
they have always been there before this issue started and are also there
when checking my IMAP email with Thunderbird or K9.

Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]: imapd:Loading
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist:
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes) in 0
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]: SSL_accept()
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]: SSL_accept()
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls:
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login:
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net PLAIN+TLS
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'

Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for
andydor...@comehome.net (50.130.11.148) to
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of
/usr/share/horde/imp/lib/Auth.php]

Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT
returned 278 messages

Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 12953 on line 726 of
/usr/share/horde/imp/lib/Imap.php]


Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 13019 on line 726 of
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file
(conf.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file
(hooks.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]

Log lines after Horde debug loging enabled
--

Relevant Cyrus log entries
2015-02-08T09:02:32.456729-06:00 yorick cyrus/imap[12975]: accepted
connection
2015-02-08T09:02:32.465951-06:00 yorick cyrus/imap[12975]: imapd:Loading
hard-coded DH parameters
2015-02-08T09:02:32.573783-06:00 yorick cyrus/imap[12975]: 

Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-08 Thread Andy Dorman

On 02/08/2015 04:34 PM, Andy Dorman wrote:

On 02/08/2015 11:00 AM, Andy Dorman wrote:

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

   * New upstream version 5.6.5+dfsg
   * Security vulnerabilities fixed:
+ Core
 - Fixed bug #68710 (Use After Free Vulnerability in PHP's
   unserialize()). (CVE-2015-0231)
+ CGI:
 - Fixed bug #68618 (out of bounds read crashes
   php-cgi). (CVE-2014-9427)
+ EXIF:
 - Fixed bug #68799: Free called on unitialized
   pointer. (CVE-2015-0232)
   * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up
with an empty mail block (ie, no inbox display) BUT the block with
Newest Unseen Messages is fine.  If you try to go to Imp to see your
email you are logged out with the onscreen error IMAP error reported by
server.

IMAP access using other mail clients like Thunderbird and K9 on my phone
works fine.

I think the problem is somewhere in the new PHP 5.6.5, but so far I have
not been able to find any sort of smoking gun that points to exactly
which change is the problem.

Syslog in Horde debug mode reports the lines below for HORDE [imp] and
Cyrus. You can see the original login success for IMAP, then several
failures of 'listMailBoxes' as I navigated from the opening portal, to
the config to enable debug logging and back to the portal to click on
the Mail portal block and document the error.  I only included the
relevant Cyrus  Horde log entries (there are a LOT of them) for the
initial login + failure and the debug failure.

FYI, the Cyrus fetching user_deny.db entry for.. log entries are
normal.  I am not a Cyrus guru so I am not sure why they are there, but
they have always been there before this issue started and are also there
when checking my IMAP email with Thunderbird or K9.

Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]: imapd:Loading
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist:
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes) in 0
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]: SSL_accept()
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]: SSL_accept()
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls:
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login:
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net PLAIN+TLS
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'

Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for
andydor...@comehome.net (50.130.11.148) to
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of
/usr/share/horde/imp/lib/Auth.php]

Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT
returned 278 messages

Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 12953 on line 726 of
/usr/share/horde/imp/lib/Imap.php]


Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 13019 on line 726 of
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file
(conf.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file
(hooks.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]

Log lines after Horde debug loging enabled
--

Relevant Cyrus log entries
2015-02-08T09:02:32.456729-06:00 yorick cyrus/imap[12975]: accepted
connection
2015-02-08T09:02:32.465951-06:00 yorick cyrus/imap[12975]: imapd:Loading
hard-coded DH parameters

Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-08 Thread Michael J Rubinsky

Horde doesn't use php-imap at all. 

-mike
Sent from mobile. 

From: Andy Dorman ador...@ironicdesign.com
Sent: Feb 8, 2015 6:17 PM
To: imp@lists.horde.org
Subject: Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported  
by server



On 02/08/2015 05:00 PM, Andy Dorman wrote:

On 02/08/2015 04:34 PM, Andy Dorman wrote:

On 02/08/2015 11:00 AM, Andy Dorman wrote:

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

  * New upstream version 5.6.5+dfsg
  * Security vulnerabilities fixed:
   + Core
- Fixed bug #68710 (Use After Free Vulnerability in PHP's
  unserialize()). (CVE-2015-0231)
   + CGI:
- Fixed bug #68618 (out of bounds read crashes
  php-cgi). (CVE-2014-9427)
   + EXIF:
- Fixed bug #68799: Free called on unitialized
  pointer. (CVE-2015-0232)
  * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up
with an empty mail block (ie, no inbox display) BUT the block with
Newest Unseen Messages is fine.  If you try to go to Imp to see your
email you are logged out with the onscreen error IMAP error reported by
server.

IMAP access using other mail clients like Thunderbird and K9 on my phone
works fine.

I think the problem is somewhere in the new PHP 5.6.5, but so far I have
not been able to find any sort of smoking gun that points to exactly
which change is the problem.

Syslog in Horde debug mode reports the lines below for HORDE [imp] and
Cyrus. You can see the original login success for IMAP, then several
failures of 'listMailBoxes' as I navigated from the opening portal, to
the config to enable debug logging and back to the portal to click on
the Mail portal block and document the error.  I only included the
relevant Cyrus  Horde log entries (there are a LOT of them) for the
initial login + failure and the debug failure.

FYI, the Cyrus fetching user_deny.db entry for.. log entries are
normal.  I am not a Cyrus guru so I am not sure why they are there, but
they have always been there before this issue started and are also there
when checking my IMAP email with Thunderbird or K9.

Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]: imapd:Loading
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist:
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes) in 0
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]: SSL_accept()
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]: SSL_accept()
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls:
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login:
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net PLAIN+TLS
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'

Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for
andydor...@comehome.net (50.130.11.148) to
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of
/usr/share/horde/imp/lib/Auth.php]

Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT
returned 278 messages

Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 12953 on line 726 of
/usr/share/horde/imp/lib/Imap.php]


Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 13019 on line 726 of
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file
(conf.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file
(hooks.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]

Log lines after Horde

Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server

2015-02-08 Thread Andy Dorman

On 02/08/2015 05:00 PM, Andy Dorman wrote:

On 02/08/2015 04:34 PM, Andy Dorman wrote:

On 02/08/2015 11:00 AM, Andy Dorman wrote:

We are using the latest debian packages for these apps:

- Cyrus version 2.4.17+caldav~beta10-16
- PHP 5.6.5 (updated yesterday before problem started, changes below)
- Horde 5.2.1, Imp 6.2.2

The PHP updates were described as follows:

php5 (5.6.5+dfsg-1) unstable; urgency=medium

   * New upstream version 5.6.5+dfsg
   * Security vulnerabilities fixed:
+ Core
 - Fixed bug #68710 (Use After Free Vulnerability in PHP's
   unserialize()). (CVE-2015-0231)
+ CGI:
 - Fixed bug #68618 (out of bounds read crashes
   php-cgi). (CVE-2014-9427)
+ EXIF:
 - Fixed bug #68799: Free called on unitialized
   pointer. (CVE-2015-0232)
   * Update patches for 5.6.5 release

The problem is that now when you login to Horde, the portal comes up
with an empty mail block (ie, no inbox display) BUT the block with
Newest Unseen Messages is fine.  If you try to go to Imp to see your
email you are logged out with the onscreen error IMAP error reported by
server.

IMAP access using other mail clients like Thunderbird and K9 on my phone
works fine.

I think the problem is somewhere in the new PHP 5.6.5, but so far I have
not been able to find any sort of smoking gun that points to exactly
which change is the problem.

Syslog in Horde debug mode reports the lines below for HORDE [imp] and
Cyrus. You can see the original login success for IMAP, then several
failures of 'listMailBoxes' as I navigated from the opening portal, to
the config to enable debug logging and back to the portal to click on
the Mail portal block and document the error.  I only included the
relevant Cyrus  Horde log entries (there are a LOT of them) for the
initial login + failure and the debug failure.

FYI, the Cyrus fetching user_deny.db entry for.. log entries are
normal.  I am not a Cyrus guru so I am not sure why they are there, but
they have always been there before this issue started and are also there
when checking my IMAP email with Thunderbird or K9.

Opening log lines after initial login
--
Relevant Cyrus log entries
2015-02-08T09:00:11.838713-06:00 yorick cyrus/imap[12713]: accepted
connection
2015-02-08T09:00:11.846537-06:00 yorick cyrus/imap[12713]: imapd:Loading
hard-coded DH parameters
2015-02-08T09:00:11.896982-06:00 yorick cyrus/imap[12713]: skiplist:
checkpointed /var/lib/cyrus/tls_sessions.db (0 records, 144 bytes) in 0
seconds
2015-02-08T09:00:11.898033-06:00 yorick cyrus/imap[12713]: TLS Server
Name Indication (SNI) Extension: yorick.ironicdesign.com
2015-02-08T09:00:11.901231-06:00 yorick cyrus/imap[12713]: SSL_accept()
incomplete - wait
2015-02-08T09:00:11.936647-06:00 yorick cyrus/imap[12713]: SSL_accept()
succeeded - done
2015-02-08T09:00:11.936718-06:00 yorick cyrus/imap[12713]: starttls:
TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits new) no
authentication
2015-02-08T09:00:11.955812-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:11.955996-06:00 yorick cyrus/imap[12713]: login:
yorick.ironicdesign.com [192.168.0.23] andydor...@comehome.net PLAIN+TLS
User logged in SESSIONID=cyrus-12713-1423407611-1
2015-02-08T09:00:11.956166-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'

Associated Horde log entry
2015-02-08T09:00:12.786789-06:00 yorick HORDE: [imp] Login success for
andydor...@comehome.net (50.130.11.148) to
{imap://yorick.ironicdesign.com/} [pid 12953 on line 157 of
/usr/share/horde/imp/lib/Auth.php]

Relevant Cyrus log entries
2015-02-08T09:00:21.531238-06:00 yorick cyrus/imap[12713]: fetching
user_deny.db entry for 'andydor...@comehome.net'
2015-02-08T09:00:22.979405-06:00 yorick cyrus/imap[12713]: open: user
andydor...@comehome.net opened INBOX
2015-02-08T09:00:22.983673-06:00 yorick cyrus/imap[12713]: SQUAT
returned 278 messages

Associated Horde log entry
2015-02-08T09:00:21.540598-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 12953 on line 726 of
/usr/share/horde/imp/lib/Imap.php]


Horde imp log lines while navigating back to portal
--
2015-02-08T09:01:24.916679-06:00 yorick HORDE: [imp] [listMailboxes]
IMAP error reported by server. [pid 13019 on line 726 of
/usr/share/horde/imp/lib/Imap.php]
2015-02-08T09:02:21.096915-06:00 yorick HORDE: [imp] Load config file
(conf.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]
2015-02-08T09:02:21.117365-06:00 yorick HORDE: [imp] Load config file
(hooks.php; app: imp) [pid 13019 on line 109 of
/usr/share/php/Horde/Registry/Loadconfig.php]

Log lines after Horde debug loging enabled
--

Relevant Cyrus log entries
2015-02-08T09:02:32.456729-06:00 yorick cyrus/imap[12975]: accepted
connection
2015-02-08T09:02:32.465951-06:00 yorick cyrus/imap[12975]: imapd:Loading