Senin, 08 September 2003, 23:43:46, Agus Priyadi wrote:
> Coba edit sedikit file servers.php di folder imp/config
> tambahin sintax ini
> $headers = getallheaders();
> $ServerName = preg_replace('/^mail\./', preg_replace('www\./', '',
> $headers['HOST']));
> $DomainName = ($ServerName != '') ? $ServerName : 'nama.mail.server';
tetap belum bisa
saya tempatkan di awal script (nama variabel saya tulis ulang agar lebih ringkas)
menjadi sbb:
----------------------------------------------------------------------------------------
$headers = getallheaders();
$ServerName = preg_replace('/^mail\./', preg_replace('www\./', '', $headers['HOST']));
$DomainName = ($ServerName != '') ? $ServerName : 'localhost';
$this_domain=substr(getenv('HTTP_HOST'),strpos(getenv('HTTP_HOST'),'.')+1);
$v_server='mail.'.$this_domain;
$v_protocol='imap/notls';
$v_port=143;
$v_folder='INBOX.';
$v_smtphost='mail.'.$this_domain;
$servers[$this_domain] = array(
'name' => $this_domain,
'server' => $v_server,
'protocol' => $v_protocol,
'port' => $v_port,
'folders' => $v_folder,
'namespace' => '',
'maildomain' => $this_domain,
'smtphost' => $v_smtphost,
'realm' => '',
'preferred' => '',
);
----------------------------------------------------------------------------------------
muncul:
Undefined index: HOST in /var/www/html/horde/imp/config/servers.php on line 16
Warning: Delimiter must not be alphanumeric or backslash
in /var/www/html/horde/imp/config/servers.php on line 16
Warning: Wrong parameter count for preg_replace()
in /var/www/html/horde/imp/config/servers.php on line 16
Warning: Cannot modify header information -
headers already sent by (output started at
/var/www/html/horde/imp/config/servers.php:16)
in /var/www/html/horde/lib/Secret.php on line 144
> untuk protokol imap edit
'protocol' =>> 'imap/notls',
sudah, coba lihat lagi:
imp/config/server.php
-----------------------------------------
//This extracts the domain name like webmail.example.com to example.com
$this_domain=substr(getenv('HTTP_HOST'),strpos(getenv('HTTP_HOST'),'.')+1);
//append mail host to domain, most server with mail like mail.example.com
$v_server='mail.'.$this_domain;
$v_protocol='imap/notls';
^^^^^^^
...
$servers[$this_domain] = array(
'protocol' => $v_protocol,
^^^^^^^
Note:
- Jika memakai squirrelmail 1.4.1 dan petunjuk dari
http://efnet.linux.or.id/docs/instalasi-login-squirrelmail.html
login dengan hanya memakai 'user' dapat dilakukan,
cuma tetap ingin pakai horde+imp :-)
---
N. Suryana
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php