[imp] why does Horde/IMP re-define mime types, and Dovecot issue(s)

Bill Graham grahamcw at hurleybulldogs.com
Fri Aug 4 20:25:43 PDT 2006


On your second issue -
I don't believe it's a Horde issue
Apache isn't interperting php  - my guess is you don't have any .php   
defined to Apache or to the directory that Horde is in  ? At least any  
time I have this happen - that is the problem.

You nneed something like the following in Apache.

AddType application/x-httpd-php .php

Does horde/test.php work ?

Also - running horde/imp/test.php will allow you to test for proper  
Dovecot communication

Bill

Quoting "Chris H." <fbsd at 1command.com>:

> Greetings,
> First let me preface this with all the pertinant data:
>
>    * Horde: (3.12)
>    * Imp: (4.12)
>    * Ingo: H3 (1.1.1) (run Ingo tests)
>    * Nag: H3 (2.1.1)
>    * Turba: H3 (2.1.1)
>    * Dovecot: 1.0b9
>    * PHP: 4.4.2
>    * MySQL: 4.12
>    * Apache+SSL: 1.3.34.1.57_1
>    * OS: FreeBSD-5.5
>
> OK, now that's done, on to my problem(s);
> I have been using Horde/IMP and friends for several years. Until
> this last year, I have installed it with the default IMAP server
> (UW-IMAP). But since version 1.0b7 of Dovecot, I started using it
> by installing it removing the UW-IMAP related lines from inetd.conf
> (thereby effectively disabling UW-IMAP), rewriting the Server.php
> for Dovecot, and starting Dovecot. After determining that the
> transition was successful; I then uninstalled UW-IMAP. /HOWEVER/
> on this occasion (new server (boxen) build) I chose to install
> Horde/IMP and friends with Dovecot (an option in this release of
> Horde/IMP as provided with FreeBSD-5.5. But unfortunately it /did/
> /not/ work. That is to say; there was no communication with Dovecot
> by Horde/IMP. I also had some serious issues getting Horde/IMP to
> communicate with MySQL. It now does communicate. But several options
> still have to be file based; as Horde/IMP won't communicate correctly
> (at all?) with MySQL.
>
> The 2 issues I hope to resolve here are:
> Getting Horde/IMP to communicate with Dovecot. I am using TLS on
> localhost. This is an exact duplicate of another server that runs
> IMP 3.11 - yes, I /know/ 3.11 has security problems. But it /works/.
> So until I can get 3.12 to work, I can't afford to potentially /break/
> the other server.
> Here is the output from the dovecot log on the /broken/ 3.12 install:
>
> #########################################
> dovecot: Aug 04 17:35:38 Info: Dovecot v1.0.beta9 starting up
> dovecot: Aug 04 18:03:54 Info: imap-login: Disconnected: Inactivity:  
>  rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: Aug 04 18:05:54 Warning: imap-login: SSL_accept() syscall   
> failed: EOF [127.0.0.1]
> dovecot: Aug 04 18:08:56 Info: imap-login: Disconnected: Inactivity:  
>  rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: Aug 04 18:10:56 Warning: imap-login: SSL_accept() syscall   
> failed: EOF [127.0.0.1]
> #########################################
>
> Here's the output from the Dovecot log on the /working/ 3.11 install:
>
> ###############################################
> dovecot: May 25 12:12:34 Info: Dovecot v1.0.beta7 starting up
> dovecot: May 25 12:12:34 Info: Generating Diffie-Hellman parameters   
> for the first time. This may take a while..
> dovecot: May 25 12:13:58 Info: ssl-build-param: SSL parameters   
> regeneration completed
> dovecot: May 25 12:19:08 Info: imap-login: Login: user=<joebloe>,   
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: May 25 12:19:09 Info: IMAP(joebloe): Disconnected: Logged out
> dovecot: May 25 12:19:09 Info: imap-login: Login: user=<joebloe>,   
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: May 25 12:19:10 Info: IMAP(joebloe): Disconnected: Logged out
> dovecot: May 25 12:19:11 Info: imap-login: Login: user=<joebloe>,   
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: May 25 12:19:11 Info: IMAP(joebloe): Disconnected: Logged out
> ###############################################
>
> The Server.php files both have exactly the same information in them.
> But 3.11 works and 3.12 doesn't.
>
> Here is a copy:
>
> #########################################
> $servers['imap'] = array(
>    'name' => 'IMAP Server',
>    'server' => 'localhost',
>    'hordeauth' => false,
>    'protocol' => 'imap/tls',
>    'port' => 993,	//secure (IMAPS)
>    'maildomain' => 'localhost',
>    'smtphost' => 'localhost',
>    'smtpport' => 587,	//TLS only
>    'realm' => '',
>    'dotfiles' => true,
>    'preferred' => '',
>    'hierarchies' => array(),
> );
> #########################################
>
> OK Now on to the second issue;
> Why does Horde/IMP insist on re-defining the default mimetype for
> PHP documents? When attempting to logon to the 3.12 (broken) server,
> after some wait, my browser (Seamonkey (newest)/ Mozilla (newest) and
> Firefox (newest)) Prompt me to save the page that Horde/IMP are sending
> me to. The browsers indicate that they do not know how to handle the
> content: application/X-PHP. What?! For as long as php and Apache have been
> around the default config settings for PHP pages have been:
> application/x-httpd-php
> I see no advantage in Horde/IMP attempting to re-define the server'
> settings. How can I overcome this. PHP/MySQL/SSL all work /perfectly/
> on the some 150 other applications on this box. Horde/IMP are the only
> apps that seem to have trouble working with them. Also, I should
> probably mention that other mail clients/readers have no trouble
> communicating with Dovecot on this box. So it appears that that narrows
> it down to the Horde/IMP installation.
>
> Thank you very much for all your time and consideration.
>
> --Chris
>
>
> -- 
> panic: kernel trap (ignored)
>
>
>
> -----------------------------------------------------------------
> FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006
> /////////////////////////////////////////////////////////////////
>
> -- 
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org



-- 

Bill Graham
Systems Administrator
Hurley Public Schools
Hurley,SD 57036
USA
grahamcw at hurleybulldogs.com


----------------------------------------------------------------
This electronic  mail sent from Hurley Public Schools - Hurley, South Dakota
http://www.hurleybulldogs.com

NOTICE: This E-mail (including attachments) is covered by the Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may
be legally privileged. If you are not the intended recipient, you are hereby
notified that any retention, dissemination, distribution, or copying of this
communication is strictly prohibited. Please reply to the sender that you
have received the message in error, then delete it. Thank you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1375 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/imp/attachments/20060804/7eab03cb/attachment.bin


More information about the imp mailing list