Sunday, March 2, 2008

Cannot login to Horde

canot login to webmail

Changing servers.php (in /home/httpd/vhosts/webmail/horde/imp/config)
code:--------------------------------------------------------------------------------
$ServerName = preg_replace('/^webmail\./', '', preg_replace('/^www\./', '', $headers['Host']));
$DomainName = ($ServerName != '') ? $ServerName : 'mainserverdomain.com';

// changed the mainserverdomain.com to 127.0.0.1

-------------------------------------------
$servers['imap'] = array(
'name' => 'IMAP Server',
'server' => 'localhost',
'protocol' => 'imap',
'port' => 143,
'folders' => '',
'namespace' => 'INBOX.',
'maildomain' => $DomainName,
'smtphost' => 'localhost',
'realm' => $DomainName,
'preferred' => ''
=====================================================================================
Please note the following:

1) check the mailbox settings for the users mail accounts and make sure they are not set to zero ('0') and instead have a limited or are set at 'unlimited'.

2) Check that your php file contains the following:

engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = Off
output_buffering = Off
safe_mode = On
safe_mode_gid = Off
register_globals = On
magic_quotes_gpc = On
magic_quotes_runtime = Off
upload_max_filesize = 2M (alter this if you want larger attachments)

[mail function]
Please note the following line was COMMENTED OUT of the php.ini file intentionally
;sendmail_path = /usr/sbin/sendmail -t -i

[MySQL]
mysql.allow_persistent = Off

[Sessions]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = " a=href,area=href,frame=src,input=src,form=fakeentr
y"

N.B. most of the above should be default settings when you install/upgrade to Plesk 7.0.2

3) Check that http://webmail.yourdomain.com/horde/test.php is giving a page and attempt to run the 'IMP tests'. The page should look something like http://webmail.unix66.com/horde/test.php

Please note this is for Redhat 9.0 systems running php 4.2.2 (default with the OS)

For more information refer to

http://forum.plesk.com/showthread.php?s=db97b9800f46ebcbfd87be4e28daa5c6&threadid=14955

No comments: