He didn't actually get it working. The original thread has to do with not being able to login. I have done everything stated in this thread and still cannot log into webmail.
I think the problem has something to do with horde and imap. I did find a test file that was installed on the server when in installed the application tempaltes. It is:
http://webmail.<domainame>.com/imp/test.php
When I ran that, there was a place to put in the imap info to test. I put in the following:
Server: localhost
Port: <left blank>
Username: <entered email of know user>
Password: <entered users password>
Server Type: IMAP
I then submitted the test and got some good results:
-------------------------------
PHP Mail Server Support Test
Attempting to automatically determine the correct connection parameters for your server:
* Trying protocol imap/notls, Port 143:
SUCCESS - INBOX has 2 messages (0 new 0 recent)
* Trying protocol imap/ssl, Port 993:
ERROR - The server returned the following error message:
Certificate failure for localhost: self signed certificate:
/C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated
IMAP SSL key/CN=localhost/emailAddress=postmaster@example.com
* Trying protocol imap/ssl/novalidate-cert, Port 993:
SUCCESS - INBOX has 2 messages (0 new 0 recent)
* Trying protocol imap/tls/novalidate-cert, Port 143:
ERROR - The server returned the following error message:
Unable to negotiate TLS with this server
The following configurations were successful and may be used in your imp/config/servers.php file:
Configuration 1
'server' => 'localhost'
'protocol' => 'imap/notls'
'port' => '143'
Configuration 2
'server' => 'localhost'
'protocol' => 'imap/ssl/novalidate-cert'
'port' => '993'
The following IMAP server information was discovered from the remote server:
Namespace Information
NAMESPACE: "INBOX."
DELIMITER: .
TYPE: personal
NAMESPACE: "#shared."
DELIMITER: .
TYPE: shared
NAMESPACE: "shared."
DELIMITER: .
TYPE: shared
IMAP CHILDREN support:
SUPPORTED
IMAP Charset Search Support:
Server supports searching with the UTF-8 character set.
-------------------------------------------
Looking at the results, the test.php page from within horde did see imap running on port 143 and even found the user has 2 email messages in thier box. So the test.php page is working
I also checked and made sure that servers.php did have the 3 lines listed in configuration1 above.
The following if from servers.php
--------------------------------
$servers['_prompt'] = array(
'name' => _("Choose a mail server:")
);
// get hostname from http URL (patch for Plesk)
$headers = getallheaders();
$ServerName = preg_replace('/^webmail\./', '', preg_replace('/^www\./', '', $headers['Host']));
$DomainName = ($ServerName != '') ? $ServerName : '@DEFAULT_SERVERNAME@';
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'localhost',
'hordeauth' => false,
'protocol' => 'imap/notls',
'port' => 143,
'maildomain' => $DomainName,
'smtphost' => 'localhost',
'smtpport' => 25,
'realm' => '',
'preferred' => '',
);
------------------------------------
I am curious if there is something in php.ini that may prevent php from getting some of the headers that are required for in the code. Does anyone know what php.ini variable may prevent that?
Any ideas at this point would be good.