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

Chris H. fbsd at 1command.com
Fri Aug 4 19:43:50 PDT 2006


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
/////////////////////////////////////////////////////////////////



More information about the imp mailing list