Re: [imp] Imp LDAP Error: [listMailboxes] IMAP error reported by server
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] Mnemo stopped working after last upgrade
Quoting Jens Wahnes wah...@uni-koeln.de: On Tue, Feb 10 2015, at 11:44:16 -0500, Michael J Rubinsky wrote: Quoting azurIt azu...@pobox.sk: Mnemo suddenyl stopped working after last upgrade of IMP and few libraries (don't remember them). When i try to open it, this error is displayed: http://pastebin.com/zrNPgtPR I don't have Nag installed and i don't want it. Don't really understand why Mnemo is trying to use Nag. Are there any new dependencies? Any hints? Thank you. Looks like a copy/paste error or similar. This commit will fix it: https://github.com/horde/horde/commit/4e556e7dbdc7fea2e6e8e96d742ce7bb28bc4ece Don't know if these are related, but I'm having trouble since today's update even after applying the above patch. When trying to login after the upgrade, the following message appears in the browser: A fatal error has occurred Missing required connection parameter(s). Details have been logged for the administrator. In the logfile, I found these lines: 2015-02-10T18:36:57+01:00 EMERG: HORDE [mnemo] Missing required connection parameter(s). [pid 21859 on line 56 of [...]/mnemo/lib/Driver/Sql.php] 2015-02-10T18:36:57+01:00 DEBUG: HORDE 1. Horde_Core_Block_Layout_View-toHtml() [...]/services/portal/index.php:35 2. Horde_Core_Block-getContent() /usr/share/pear/Horde/Core/Block/Layout/View.php:98 3. Horde_Core_Block-_call() /usr/share/pear/Horde/Core/Block.php:175 4. Mnemo_Block_Summary-_content() /usr/share/pear/Horde/Core/Block.php:278 5. Mnemo::listMemos() [...]/mnemo/lib/Block/Summary.php:59 6. Mnemo_Factory_Driver-create() [...]/mnemo/lib/Mnemo.php:80 7. Mnemo_Driver_Sql-__construct() [...]/mnemo/lib/Factory/Driver.php:73 For all I can tell, this is related to Mnemo as well, but I fail to understand what's actually going on there. So far, the only way I found to get Horde running again was to add a line to registry.local.php that reads $this-applications['mnemo']['status'] = 'inactive'; Any hints for a proper fix would be appreciated. How have you configured the storage backend in Mnemo's configuration? -- mike The Horde Project http://www.horde.org https://www.facebook.com/hordeproject https://www.twitter.com/hordeproject smime.p7s Description: S/MIME Signature -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] User is not authorized for Mail error
-Original Message- From: imp [mailto:imp-boun...@lists.horde.org] On Behalf Of Arjen de Korte Sent: Monday, February 9, 2015 5:08 PM To: imp@lists.horde.org Subject: Re: [imp] User is not authorized for Mail error Citeren Sebastián Mir sebastian...@gmail.com: Look at backends.php in my case this file was overwritten setting the 'disabled' property at the IMAP server example definition to false, so when imp tried to connect with the IMAP server, it did it on localhost instead of the actual server defined at backends.local.php Setting 'disabled' = true fixed the issue. That is why you should never touch backends.php. Overrides should be made in backends.local.php, so that they are kept on updates. Hi, thanks for the help guys. (apologies if I'm not formatting my responses correctlyfirst time using a mailing list like this..) I did not set up the initial Horde installation and the guy who did told me that he never touched backends.php or had to create a backends.local.php. I resolved the issue by creating a backends.local.php file that included the lines: $servers['imap']['disabled'] = true; $servers['advanced']['disabled'] = false; $servers['advanced']['hordeauth'] = true; That seems to have done the trick. The only problem that remains is that when any user (except for me, for some reason) attempts to change a user preference, they get the error: We cannot verify that this request was sent by you. It could be a malicious request. If you intended to perform this action, you can retry it now. I'm assuming this is unrelated and a different question entirely. Let me know if this error would be better suited to send to a different Horde mailing list. Thanks again for your help! -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMAP Connection Issue: no auth attempts
On 02/11/2015 04:08 AM, Arjen de Korte wrote: Citeren Jan Schneider j...@horde.org: Zitat von Alexander Lasley alas...@mail.redskylab.com: After installing IMP, testing the IMAP connection via /test.php?app=imp is successful; Namespace Information and IMAP server capabilities are shown to me. However, connections through the web interface fail. I have tried two different things: 1) Logging in to the mail account while logged in to Horde as the default Administrator user. This fails and produces the message User Administrator is not authorized for Mail in the logs. I stopped here because this is ultimately not the way I intend to use Horde/IMP anyway. 2) Using IMP as the application to handle authentication for Horde. This fails and produces slightly more useful information in the logs. Web server information: CentOS 6.6 nginx 1.0.15 installed via yum * php-fpm 5.4.37 installed via yum Horde 5.2.3 installed via PEAR IMP 6.2.7 installed via PEAR Mail server information: CentOS 6.6 dovecot 2.0.9 installed via yum * I know that nginx isn't officially supported, but my issue does not seem related to the web server; no relevant error messages are showing up in nginx's log. I've replaced sensitive information in the logs with the following: Horde installed into the document root /path/to/horde Horde running on webmail.domain.tld with IP address xxx.xxx.xxx.xxx Dovecot/Postfix running on mail.domain.tld with IP address yyy.yyy.yyy.yyy Attempting to log in as usern...@mail.domain.tld My personal IP zzz.zzz.zzz.zzz Dovecot logs: Feb 11 06:40:46 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth ... Feb 11 06:40:46 mail dovecot: auth: Debug: auth client connected (pid=20366) Feb 11 06:41:16 mail dovecot: imap-login: Disconnected (no auth attempts): rip=xxx.xxx.xxx.xxx, lip=yyy.yyy.yyy.yyy, TLS handshaking: Disconnected Horde logs: Feb 11 06:39:36 web-ln1 HORDE: [imp] [login] Error when communicating with the mail server. [pid 3243 on line 730 of /path/to/horde/imp/lib/Imap.php] Feb 11 06:39:36 web-ln1 HORDE: [imp] FAILED LOGIN for usern...@mail.domain.tld (zzz.zzz.zzz.zzz) to {imap://mail.domain.tld:993/} [pid 3243 on line 157 of /path/to/horde/imp/lib/Auth.php] Feb 11 06:39:36 web-ln1 HORDE: [horde] FAILED LOGIN for usern...@mail.domain.tld to horde (24.107.154.151) [pid 3243 on line 199 of /path/to/horde/login.php] /path/to/horde/imp/config/backends.php: $servers['imap'] = array( 'disabled' = false, 'name' = 'IMAP Server', 'hostspec' = 'mail.domain.tld', 'hordeauth' = false, 'protocol' = 'imap', 'port' = 993, 'secure' = 'tls', ); Dovecot is configured to expect 'PLAIN' or 'LOGIN' authentication over TLS. I can't seem to find any documentation on setting the IMAP authentication mechanism. But IMP doesn't seem to be passing along incorrect credentials; it doesn't seem to be passing any credentials at all. Thanks for your time, Alex -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org 1) Don't edit backends.php! 2) Enable debug logs (in backends.local.php!) and check the IMAP connection logs. And are you sure you're supporting STARTTLS on port 993? By default, Dovecot will accept SSL only on port 993, so the STARTTLS is never offered. You probably only need to override the hostspec variable in imp/config/backends.local.php: ?php $servers['imap']['hostspec'] = 'mail.domain.tld'; If you really want to use port 993, you'll probably need to append the following two lines: $servers['imap']['port'] = 993; $servers['imap']['secure'] = 'ssl'; But the recommended solution, is to use STARTTLS on port 143 instead. Thank you both for your prompt replies. Indeed, my mail server is not configured to use STARTTLS. Perhaps I should explain the source of my confusion. My mail server accepts connections encrypted with TLS (1.0, 1.1, 1.2), and rejects connections encrypted with SSL (2.0, 3.0). Therefore, I assumed that 'tls' was the correct setting. However, I see now that the configuration should be interpreted as follows: // use SSL/TLS with STARTTLS $servers['imap']['secure'] = 'tls'; // use SSL/TLS without STARTTLS $servers['imap']['secure'] = 'ssl'; I will make a note of this for the future. Thanks for helping me resolve my problem. Alex -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMAP Connection Issue: no auth attempts
Citeren Jan Schneider j...@horde.org: Zitat von Alexander Lasley alas...@mail.redskylab.com: After installing IMP, testing the IMAP connection via /test.php?app=imp is successful; Namespace Information and IMAP server capabilities are shown to me. However, connections through the web interface fail. I have tried two different things: 1) Logging in to the mail account while logged in to Horde as the default Administrator user. This fails and produces the message User Administrator is not authorized for Mail in the logs. I stopped here because this is ultimately not the way I intend to use Horde/IMP anyway. 2) Using IMP as the application to handle authentication for Horde. This fails and produces slightly more useful information in the logs. Web server information: CentOS 6.6 nginx 1.0.15 installed via yum * php-fpm 5.4.37 installed via yum Horde 5.2.3 installed via PEAR IMP 6.2.7 installed via PEAR Mail server information: CentOS 6.6 dovecot 2.0.9 installed via yum * I know that nginx isn't officially supported, but my issue does not seem related to the web server; no relevant error messages are showing up in nginx's log. I've replaced sensitive information in the logs with the following: Horde installed into the document root /path/to/horde Horde running on webmail.domain.tld with IP address xxx.xxx.xxx.xxx Dovecot/Postfix running on mail.domain.tld with IP address yyy.yyy.yyy.yyy Attempting to log in as usern...@mail.domain.tld My personal IP zzz.zzz.zzz.zzz Dovecot logs: Feb 11 06:40:46 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth ... Feb 11 06:40:46 mail dovecot: auth: Debug: auth client connected (pid=20366) Feb 11 06:41:16 mail dovecot: imap-login: Disconnected (no auth attempts): rip=xxx.xxx.xxx.xxx, lip=yyy.yyy.yyy.yyy, TLS handshaking: Disconnected Horde logs: Feb 11 06:39:36 web-ln1 HORDE: [imp] [login] Error when communicating with the mail server. [pid 3243 on line 730 of /path/to/horde/imp/lib/Imap.php] Feb 11 06:39:36 web-ln1 HORDE: [imp] FAILED LOGIN for usern...@mail.domain.tld (zzz.zzz.zzz.zzz) to {imap://mail.domain.tld:993/} [pid 3243 on line 157 of /path/to/horde/imp/lib/Auth.php] Feb 11 06:39:36 web-ln1 HORDE: [horde] FAILED LOGIN for usern...@mail.domain.tld to horde (24.107.154.151) [pid 3243 on line 199 of /path/to/horde/login.php] /path/to/horde/imp/config/backends.php: $servers['imap'] = array( 'disabled' = false, 'name' = 'IMAP Server', 'hostspec' = 'mail.domain.tld', 'hordeauth' = false, 'protocol' = 'imap', 'port' = 993, 'secure' = 'tls', ); Dovecot is configured to expect 'PLAIN' or 'LOGIN' authentication over TLS. I can't seem to find any documentation on setting the IMAP authentication mechanism. But IMP doesn't seem to be passing along incorrect credentials; it doesn't seem to be passing any credentials at all. Thanks for your time, Alex -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org 1) Don't edit backends.php! 2) Enable debug logs (in backends.local.php!) and check the IMAP connection logs. And are you sure you're supporting STARTTLS on port 993? By default, Dovecot will accept SSL only on port 993, so the STARTTLS is never offered. You probably only need to override the hostspec variable in imp/config/backends.local.php: ?php $servers['imap']['hostspec'] = 'mail.domain.tld'; If you really want to use port 993, you'll probably need to append the following two lines: $servers['imap']['port'] = 993; $servers['imap']['secure'] = 'ssl'; But the recommended solution, is to use STARTTLS on port 143 instead. -- This message was sent from a mailinglist subscription address. For off-list replies, you must remove the address extension. smime.p7s Description: S/MIME Signature -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMAP Connection Issue: no auth attempts
Zitat von Alexander Lasley alas...@mail.redskylab.com: After installing IMP, testing the IMAP connection via /test.php?app=imp is successful; Namespace Information and IMAP server capabilities are shown to me. However, connections through the web interface fail. I have tried two different things: 1) Logging in to the mail account while logged in to Horde as the default Administrator user. This fails and produces the message User Administrator is not authorized for Mail in the logs. I stopped here because this is ultimately not the way I intend to use Horde/IMP anyway. 2) Using IMP as the application to handle authentication for Horde. This fails and produces slightly more useful information in the logs. Web server information: CentOS 6.6 nginx 1.0.15 installed via yum * php-fpm 5.4.37 installed via yum Horde 5.2.3 installed via PEAR IMP 6.2.7 installed via PEAR Mail server information: CentOS 6.6 dovecot 2.0.9 installed via yum * I know that nginx isn't officially supported, but my issue does not seem related to the web server; no relevant error messages are showing up in nginx's log. I've replaced sensitive information in the logs with the following: Horde installed into the document root /path/to/horde Horde running on webmail.domain.tld with IP address xxx.xxx.xxx.xxx Dovecot/Postfix running on mail.domain.tld with IP address yyy.yyy.yyy.yyy Attempting to log in as usern...@mail.domain.tld My personal IP zzz.zzz.zzz.zzz Dovecot logs: Feb 11 06:40:46 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth ... Feb 11 06:40:46 mail dovecot: auth: Debug: auth client connected (pid=20366) Feb 11 06:41:16 mail dovecot: imap-login: Disconnected (no auth attempts): rip=xxx.xxx.xxx.xxx, lip=yyy.yyy.yyy.yyy, TLS handshaking: Disconnected Horde logs: Feb 11 06:39:36 web-ln1 HORDE: [imp] [login] Error when communicating with the mail server. [pid 3243 on line 730 of /path/to/horde/imp/lib/Imap.php] Feb 11 06:39:36 web-ln1 HORDE: [imp] FAILED LOGIN for usern...@mail.domain.tld (zzz.zzz.zzz.zzz) to {imap://mail.domain.tld:993/} [pid 3243 on line 157 of /path/to/horde/imp/lib/Auth.php] Feb 11 06:39:36 web-ln1 HORDE: [horde] FAILED LOGIN for usern...@mail.domain.tld to horde (24.107.154.151) [pid 3243 on line 199 of /path/to/horde/login.php] /path/to/horde/imp/config/backends.php: $servers['imap'] = array( 'disabled' = false, 'name' = 'IMAP Server', 'hostspec' = 'mail.domain.tld', 'hordeauth' = false, 'protocol' = 'imap', 'port' = 993, 'secure' = 'tls', ); Dovecot is configured to expect 'PLAIN' or 'LOGIN' authentication over TLS. I can't seem to find any documentation on setting the IMAP authentication mechanism. But IMP doesn't seem to be passing along incorrect credentials; it doesn't seem to be passing any credentials at all. Thanks for your time, Alex -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org 1) Don't edit backends.php! 2) Enable debug logs (in backends.local.php!) and check the IMAP connection logs. -- Jan Schneider - Development Lead Horde LLC - The company behind the world's most flexible web groupware suite http://www.horde.org/services https://www.facebook.com/hordeproject -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Mnemo stopped working after last upgrade
On Tue, Feb 10 2015, at 19:17:14 +0100, Jens Wahnes wrote: Don't know if these are related, but I'm having trouble since today's update even after applying the above patch. When trying to login after the upgrade, the following message appears in the browser: As this problem persists even after upgrading to mnemo 4.2.5 this morning, I am surprised to see that others do not seem to have any trouble with this update at all. So now I am really puzzled as to where our setup would be much different from others. The only thing I could come up with would be the fact that ingo, trean, and gollem are all disabled in registry.local.php. Other than that, everything is set up pretty much straightforward here. In any event, I've been able to find out that forcefully downgrading back to mnemo 4.2.3 resolves the issue. Does that give anyone a clue as to what might be the cause of the problem? Or should I add some Horde::debug statement? But if so, where? Jens -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org