[pkg-horde] alarms.php part of my problems?

Michael Heide michael.h at der-he.de
Tue Mar 9 19:35:59 UTC 2010


This is a reply to 
http://lists.alioth.debian.org/pipermail/pkg-horde-hackers/2009-August/003726.html

Sorry, I wasn't a list member. So I cannot reply to the corresponding email.

I got the following errors in /var/log/mail.log:
Mar  9 19:34:12 PCNAME cyrus/imap[31130]: badlogin: PCNAME.DOMAIN.TLD 
[IP] plaintext manager SASL(-13): authentication failure: checkpass failed

The alarms.php cron job tries to login to cyrus without credentials.

So I set the following in /usr/share/horde3/scripts/alarms.php:
$auth->setAuth("manager", array('password' => 'MYMANAERPASSWORD'));

Then I got failures like the following when running alarms.php:

Notice: Undefined index:  port
in /usr/share/horde3/lib/Horde/Kolab/Session.php on line 308

So I added /usr/share/horde3/lib/Horde/Kolab/Session.php
in line 307, i.e. before "$imap = ...":
            //Workaround by Hede
            $hostspec = $params['hostspec'];
            if ($hostspec=="") $hostspec = 'localhost';
            $port = $params['port'];
            if ($port=="") $port = '143';

It's just a workaround. It seems there is no session created so no 
parameters get set. A better way is to get those needed parameters
set the right way. I still do not know how to do so.

The cron job is working now, in logs I now get a successful imap login.
But I have not tested if alarm emails really work so far.

Regards
Michael Heide



More information about the pkg-horde-hackers mailing list