[imp] IMAP Toolkit Crash

Seb Belcher seb at sdjb.net
Thu May 15 06:33:59 UTC 2008


I still haven't been able to find an answer to this problem elsewhere.

The only further info I can suggest is that the crash only occurs on a 
successful authentication, a failed auth presents the login screen with 
the 'Login Failed' message as expected.

This combined with the success of the test script perhaps indicates that 
it is not an authentication problem at all but something that happens 
after authentication in IMP that doesn't get done in the test script.

Are there any known incompatibilities between IMP and Courier IMAP?  
Should I have set up any special preferences for this setup?

Thanks again,

Seb.


> Hi folks,
>
> I'm hoping someone can help shed some light on a problem I am having 
> with IMP.
>
> Horde Version: 3.1.7
> Imp Version: H3 (4.1.6)
> Apache Version: Apache/2.0.55
> PHP Version: 5.1.2
>
> I set up Horde through the setup script with no major problems.  
> Initially I tried running with POP3 authentication and this worked, I 
> was able to get into the Admin screens and edit the config, all looks 
> good on that front. 
> But then I tried switching to IMAP.
>
> Initially I ran the IMP test.php script and tried the credentials for my 
> account on the local IMAP server (courier) the result is as follows:
> **
>
>     * /Trying protocol imap/notls, Port 143:/
>
>           SUCCESS - INBOX has 1 messages (1 new 0 recent)
>
>     * /Trying protocol imap/tls/novalidate-cert, Port 143:/
>
>           SUCCESS - INBOX has 1 messages (1 new 0 recent)
>
> All looking good, so I use the following in server.php:
>
> $servers['imap'] = array(
>     'name' => 'IMAP Server',
>     'server' => 'localhost',
>     'hordeauth' => false,
>     'protocol' => 'imap/notls',
>     'port' => 143,
>     'maildomain' => 'my_domain.com',
>     'smtphost' => 'localhost',
>     'smtpport' => 25,
>     'realm' => '',
>     'preferred' => '',
> );
>
> Now I try to login to Horde again, using the exact same user/pass as in 
> the test script, the login screen appears OK but when I click "login" 
> and I am presented with:
>     "Internal Server Error, this is an error with your script, check 
> your error log for more information."
>
> So, logs.
>
> Apache gives:
> [Wed Apr 30 23:58:14 2008] [error] [client 82.28.1.181] Premature end of 
> script headers: redirect.php, referer: http://www.my_domain.com/horde/imp/
>
> Syslog gives:
> Apr 30 23:58:14 ds5402 php5-cgi: IMAP toolkit crash: Unable to look up 
> user name
>
> I've seen several threads about the visibility of /etc/passwd and I have 
> checked it is there.  However, my mail users are not real users, they 
> are all virtual users on virtual domains.  Is this what is causing the 
> problem? Is there a way around it?
> The main thing I don't understand is why the test script is able to 
> authenticate and view my INBOX but IMP itself is causing this error?
>
> Thanks in advance for any help.
>
> Regards,
> Seb.
>
>
>
>   



More information about the imp mailing list