Mail server menggunakan qmail+courier imap+vpopmail
untuk webmail menggunakan horde 2.2.3 dan imp 3.2.2,
jika file-file horde+imp disimpan sbb:
/home/domain1/public_html/horde/imp
/home/domain2/public_html/horde/imp
/home/domain3/public_html/horde/imp

dan akan diakses:
http://mail.domain1.com/
http://mail.domain2.com/
http://mail.domain3.com/

Sudah baca beberapa petunjuk, dan melakukan konfigurasi sbb:

imp/config/conf.php
-----------------------------------------
$conf['hooks']['vinfo'] = 'imp_get_vinfo';
if (!function_exists('imp_get_vinfo')) { 
    function imp_get_vinfo ($type = 'username') { 
        global $conf, $imp; 
        $vdomain = getenv('HTTP_HOST'); 
        $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
        $vdomain = strtolower($vdomain); 
        if ($type == 'username') { 
            return (preg_replace('|@.*|', '', $imp['user']) . '@' . $vdomain); 
        } elseif ($type == "vdomain") { 
            return $vdomain; 
        } else { 
            return new PEAR_Error('invalid type: ' . $type); 
        } 
    } 
} 


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 
$this_mail_server='mail.'.$this_domain; 
$this_mail_protocol='imap/notls'; 
$this_mail_port=143; 
$this_mail_folder='INBOX.'; 
$this_mail_namespace=''; 
$this_mail_smtphost='smtp.'.$this_domain; 
$this_mail_realm=''; 
$servers[$this_domain] = array( 
        'name' => $this_domain, 
        'server' => $this_mail_server, 
        'protocol' => $this_mail_protocol, 
        'port' => $this_mail_port, 
        'folders' => $this_mail_folder, 
        'namespace' => $this_mail_namespace, 
        'maildomain' => $this_domain, 
        'smtphost' => $this_mail_smtphost, 
        'realm' => $this_mail_realm, 
); 

login dengan hanya memasukkan 'user' tetap belum bisa,
setting apa saja yg harus dilakukan agar
ketika login cukup memasukkan nama user saja
tanpa menyertakan @domain1/2/3.com.

---
N. Suryana


-- 
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php

Kirim email ke