[imp] SuSE 8.1, cyrus-IMAP and PHP do not like each other :-(

Christian Roessner roessner at wg.gotdns.com
Tue Dec 10 13:31:06 PST 2002


Hi,

I use SuSE Linux 8.1, Apache 1.3.26 and PHP 4.2.2 all from the distri. I 
tested the follwing code taken from imp/test.php and it does not work for me:

<?php
    $server = "localhost";  // also tested with 127.0.0.1 and 192.168.100.1
    $user   = "roessner";
    $passwd = "<a very secure password>";
    $mbname = '{' . $server . ':143}INBOX';

    echo 'server="', $server, '" user="', $user, '" mailbox="', $mbname, '"<br 
/>';

    $mbox = imap_open($mbname, $user, $passwd);
    $minfo = imap_mailboxmsginfo($mbox);
    echo 'INBOX has ', $minfo->Nmsgs, ' messages (' . $minfo->Unread, ' new ', 
$minfo->Recent, ' recent)';
    imap_close($mbox);
?>

I get the following errors:

/var/log/auth.log:

Dec 10 12:51:02 server imapd[19243]: OTP unavailable because can't read/write 
key database /etc/opiekeys: No such file or directory
Dec 10 12:53:16 server imapd[19292]: OTP unavailable because can't read/write 
key database /etc/opiekeys: No such file or directory
Dec 10 12:53:16 server imapd[19292]: no secret in database
Dec 10 12:53:23 server last message repeated 2 times

/var/log/messages:

Dec 10 12:53:16 server imapd[19292]: OTP unavailable because can't read/write 
key database /etc/opiekeys: No such file or directory
Dec 10 12:53:16 server imapd[19292]: no secret in database
Dec 10 12:53:16 server imapd[19292]: badlogin: localhost[127.0.0.1] CRAM-MD5 
[SASL(-13): user not found: no secret in database]
Dec 10 12:53:20 server imapd[19292]: no secret in database
Dec 10 12:53:20 server imapd[19292]: badlogin: localhost[127.0.0.1] CRAM-MD5 
[SASL(-13): user not found: no secret in database]
Dec 10 12:53:23 server imapd[19292]: no secret in database
Dec 10 12:53:23 server imapd[19292]: badlogin: localhost[127.0.0.1] CRAM-MD5 
[SASL(-13): user not found: no secret in database]

cyrus-IMAP is working fine with KMail and is reachable from remote clients (No 
firewall problems!). It uses saslauthd and I guess, imap_open() does not know 
this, but why?

I have taken all the config-files from a SuSE 8.0:

/etc/httpd/httpd.conf
/etc/php.ini
/etc/cyrus.conf
/etc/imapd.conf

I am searching for an answer since many, many hours without any chance of 
getting answers. I found an article here in this mailinglist but it told me 
to chekc some include_paths.

the following are set:

/etc/httpd/httpd.conf:
Include /etc/httpd/suse_include.conf (SuSE stuff)

/etc/php.ini
;include_path = ".:/php/includes" (same at SuSE 8.0 - working fine)

no .htaccess

Maybe this is not the right place to post, but I hope to find an answer.

I was thankful of getting help from you.

Regards

Christian



More information about the imp mailing list