[horde] Horde_Imap_Client_Exception after update

Robert Schetterer rs at sys4.de
Thu Feb 13 07:54:00 UTC 2014


Am 12.02.2014 14:42, schrieb Anthony Messina:
> On Wednesday, February 12, 2014 11:04:02 AM lst_hoe02 at kwsoft.de wrote:
>> Hello,
>>
>> after the latest (pear) updates we got the errors listed below in the  
>> logfile. It looks like horde-alarms has some problem to connect?
>>
>> Feb 12 05:15:16 h2338808 HORDE: [imp] exception  
>> 'Horde_Imap_Client_Exception' with message 'Authentication failed.' in  
>> /usr/share/php/Horde/Imap/Client/Socket.php:4618
>> Stack trace:
>> #0 /usr/share/php/Horde/Imap/Client/Socket.php(4161):  
>> Horde_Imap_Client_Socket->_responseCode(Object(Horde_Imap_Client_Interaction
>> _Pipeline),   Object(Horde_Imap_Client_Interaction_Server_Tagged))
>> #1 /usr/share/php/Horde/Imap/Client/Socket.php(3942):  
>> Horde_Imap_Client_Socket->_getLine(Object(Horde_Imap_Client_Interaction_Pipe
>> line)) #2 /usr/share/php/Horde/Imap/Client/Socket.php(3870):
>> Horde_Imap_Client_Socket->_sendCmdChunk(Object(Horde_Imap_Client_Interaction
>> _Pipeline),   Array)
>> #3 /usr/share/php/Horde/Imap/Client/Socket.php(757):  
>> Horde_Imap_Client_Socket->_sendCmd(Object(Horde_Imap_Client_Interaction_Pipe
>> line)) #4 /usr/share/php/Horde/Imap/Client/Socket.php(481):
>> Horde_Imap_Client_Socket->_tryLogin('LOGIN')
>> #5 /usr/share/php/Horde/Imap/Client/Base.php(794):  
>> Horde_Imap_Client_Socket->_login()
>> #6 [internal function]: Horde_Imap_Client_Base->login()
>> #7 /var/www/horde/imp/lib/Imap.php(568): call_user_func_array(Array, Array)
>> #8 /var/www/horde/imp/lib/Auth.php(87): IMP_Imap->__call('login', Array)
>> #9 /var/www/horde/imp/lib/Auth.php(87): IMP_Imap->login()
>> #10 /var/www/horde/imp/lib/Auth.php(118): IMP_Auth::authenticate(Array)
>> #11 /var/www/horde/imp/lib/Application.php(371):  
>> IMP_Auth::transparent(Object(Horde_Core_Auth_Application))
>> #12 [internal function]:  
>> IMP_Application->authTransparent(Object(Horde_Core_Auth_Application))
>> #13 /usr/share/php/Horde/Registry.php(1213):  
>> call_user_func_array(Array, Array)
>> #14 /usr/share/php/Horde/Core/Auth/Application.php(366):  
>> Horde_Registry->callAppMethod('imp', 'authTransparent', Array)
>> #15 /usr/share/php/Horde/Registry.php(2203):  
>> Horde_Core_Auth_Application->transparent()
>> #16 /usr/share/php/Horde/Registry.php(1704):  
>> Horde_Registry->isAuthenticated(Array)
>> #17 /usr/share/php/Horde/Registry.php(936):  
>> Horde_Registry->hasPermission('imp', 4)
>> #18 /usr/share/php/Horde/Core/Factory/Alarm.php(130):  
>> Horde_Registry->listApps(NULL, false, 4)
>> #19 [internal function]: Horde_Core_Factory_Alarm->load(NULL, false)
>> #20 /usr/share/php/Horde/Alarm.php(100): call_user_func(Array, NULL, false)
>> #21 /usr/share/php/Horde/Alarm.php(404): Horde_Alarm->listAlarms(NULL,  
>> NULL, true, false)
>> #22 /usr/bin/horde-alarms(25): Horde_Alarm->notify(NULL, true, false, Array)
>> #23 {main} [pid 8754 on line 570 of "/var/www/horde/imp/lib/Imap.php"]
>>
>> Any idea how to fix this?
>>
>> Regards
>>
>> Andreas
> 
> I see the same issue.  It looks like additional logging was enabled in
> https://github.com/horde/horde/commit/f9356c42fcf8c29d8882a3c3a107bd5844c46746
> 
> But I think the basic issue might be horde-alarms logging in as the first 
> administrative user.  I my case, the user is 'Administrator' and doesn't 
> actually exist (and certainly doesn't have an IMAP account or password).  
> http://bugs.horde.org/ticket/11387
> 
> I haven't found a way to have Horde skip logging in to IMP when using horde-
> alarms, however, the alarms are created and emailed to the proper user.
> 
> Please correct me if I'm wrong on this.
> 
> -A
> 
> 
> 

perhaps try this ( depend to your install method )

cron

*/5 * * * * www-data /usr/bin/php -d
include_path=/usr/share/horde/pear/php /usr/share/horde/pear/horde-alarms

then create some user and pass for horde itself , configure this user in
Horde Mailer where smtp server field, the german help translation at
this field is a little bit confusing, my first thoughts were, now at
sending mail, always this user get used, but looking to the mail servers
log shows, its only used by horde itself ( i.e at alarm script )
this description should be fine with horde and imp auth setups

perhaps also have a look at

https://sys4.de/de/blog/2013/11/28/horde-alarms-imap-admin-logins/

however there might be better solutions from the list

Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein


More information about the horde mailing list