Pengen Punya WebSite instan kualitas intan ?

Friday, January 7, 2011

install qmail pada CentOS 5.5 FinaL (mesin 64bit)


Qmail adalah MTA ( Internet Mail Transfer Agent ) yang aman, handal, dan sederhana. Qmail merupakan alternatif sistem Sendmail-binmail yang terdapat pada UNIX. qmail menggunakan SMTP ( Simple Mail Transfer Protocol ) untuk bertukar pesan dengan MTA pada sistem lain.


A. Persiapan :
*install tools yang dibutuhkan :
[root@prayogi ~]# yum install gcc gcc-c++ make openssl openssl-devel gdbm-devel wget patch patchutils xinetd telnet nmap


*install Apache, PHP, MySQL ; bisa dicek di sini

*install modules perl :

[root@prayogi ~]# yum install perl-Digest-SHA1 perl-Digest-HMAC perl-Net-DNS perl-HTML-Tagset perl-HTML-Parser perl-YAML

* jika ada program smtp berjalan (seperti sendmail,postfix, etc.) stop dulu and bisa diremove :P

*download paket qmail dan extract :

[root@prayogi ~]# mkdir /downloads
[root@prayogi ~]# cd /downloads
[root@prayogi ~]# wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz
[root@prayogi ~]# tar -zxvf qmailrocks.tar.gz


B. Compile and Install
*compile qmail :

[root@prayogi ~]# cd /downloads/qmailrocks
[root@prayogi qmailrocks]# ./scripts/install/qmr_install_linux-s1.script
[root@prayogi qmailrocks]# ./scripts/util/qmail_big_patches.script

[root@prayogi qmailrocks]# cd /usr/src/qmail/qmail-1.03
[root@prayogi qmail-1.03]# make man && make setup check
[root@prayogi qmail-1.03]# ./config-fast mail.z3r0mind.co.cc (ganti mail.z3r0mind.co.cc dengan domain yang anda pakai)
[root@prayogi qmail-1.03]# make cert


Country Name (2 letter code) [GB]:id
State or Province Name (full name) [Berkshire]:Surabaya
Locality Name (eg, city) [Newbury]:Suroboyo
Organization Name (eg, company) [My Company Ltd]:z3r0mind Corporation
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server's hostname) []:mail.z3r0mind.co.cc
Email Address []:postmaster@z3r0mind.co.cc

[root@prayogi qmail-1.03]# chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem



*compile ucspi-tcp :

[root@prayogi ~]# cd /usr/src/qmail/ucspi-tcp-0.88/
[root@prayogi ucspi-tcp-0.88]# patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
[root@prayogi ucspi-tcp-0.88]# make && make setup check

*compile daemontools :

[root@prayogi ~]# cd /package/admin/daemontools-0.76/src
[root@prayogi src]# patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
[root@prayogi src]# cd ..
[root@prayogi daemontools-0.76]# ./package/install

*compile ezmlm :

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]# tar -xzvf ezmlm-0.53-idx-0.41.tar.gz
[root@prayogi qmailrocks]# cd ezmlm-0.53-idx-0.41
[root@prayogi ezmlm-0.53-idx-0.41]# make && make setup

*compile autoresponder :

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]# tar -xzvf autorespond-2.0.5.tar.gz
[root@prayogi qmailrocks]# cd autorespond-2.0.5
[root@prayogi autorespond-2.0.5]# make && make install

*compile vpopmail (with mysql integration) :

[root@prayogi ~]# mkdir -p /home/vpopmail/etc
[root@prayogi ~]# chown -R vpopmail:vchkpw /home/vpopmail/
[root@prayogi ~]# cd /downloads/qmailrocks
[root@prayogi qmailrocks]# tar -xzvf vpopmail-5.4.13.tar.gz
[root@prayogi qmailrocks]# cd vpopmail-5.4.13
[root@prayogi vpopmail-5.4.13]#  ./configure --enable-logging=p
[root@prayogi vpopmail-5.4.13]# make && make install-strip

*testing vpopmail :

[root@prayogi ~]# cd /home/vpopmail/bin
[root@prayogi bin]# ./vadddomain z3r0mind.co.cc

(jika mendapat error : Failure while attempting to remove_line() the locals file)

buat file "locals" pada /var/qmail/control
[root@prayogi bin]# touch /var/qmail/control/locals
(jika tidak ada error, bisa dilanjutlan...) 


[root@prayogi bin]# ./vadduser yog@z3r0mind.co.cc


*compile vqadmin :

[root@prayogi ~]# cd /downloads/qmailrocks
[root@prayogi qmailrocks]# tar -xzvf vqadmin-2.3.6.tar.gz
[root@prayogi qmailrocks]# cd vqadmin-2.3.6/
[root@prayogi vqadmin-2.3.6]# ./configure --enable-cgibindir=/path/your/cgi-bin --enable-htmldir=/path/your/htdocs
[root@prayogi vqadmin-2.3.6]#  make && make install-strip


When building QmailRocks on 64-bit Linux you will see this error when you get to installing Vqadmin:

checking build system type... Invalid configuration `x86_64-unknown-linuxoldld': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linuxoldld failed
Go back to just before the step where you configure:
 ./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/html/directory
Then run:
[root@prayogi vqadmin-2.3.6]# libtoolize --force
and then if you show the message :"You should update your `aclocal.m4' by running aclocal." just run :
[root@prayogi vqadmin-2.3.6]# aclocal
and then configure again :
 [root@prayogi vqadmin-2.3.6]# ./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/htdocs
[root@prayogi vqadmin-2.3.6]# make && make install-strip
dan jika dapat pesan error lagi, kira-kira seperti ini :
/bin/sh: line 1: automake-1.6: command not found
*install automake-1.6
[root@prayogi vqadmin-2.3.6]# yum install automake16
kemudian dlm kasus ini waktu menjalankan make && make install-strip saya mendapat error lagi seperti ini :

cd . && autoheader
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
touch ./)].in)].in
/bin/sh: -c: line 0: syntax error near unexpected token `)'
/bin/sh: -c: line 0: `touch ./)].in)].in'
make: *** [)].in] Error 2

setelah googling, medapat pencerahan seperti ini : >vqadmin has old config.guess and config.sub files do not have the  >definitions for the 64 bit operating systems. You can copy those files  > from a recent vpopmail release and it should configure just fine. I did this  > last week and it worked. (intinya copykan file 
config.guess and config.sub 
dari vpopmail release terbaru ke  dalam folder vqadmin)
untuk itu saya mengunduh dari sini : http://www.inter7.com/index.php?page=vpopmail

*configure vqadmin :
tambahkan pada konfigurasi httpd.conf (dlm kasus ini saya tambahkan ke vhost)

<Directory "/path/your/cgi-bin/vqadmin">
   deny from all
   Options ExecCGI
   AllowOverride AuthConfig
   Order deny,allow
</Directory>


buat validasi untuk mengakses vqadmin :

[root@prayogi ~]# cd /path/your/cgi-bin/vqadmin
[root@prayogi vqadmin]# vi .htaccess
isikan baris berikut :

AuthType Basic
AuthUserFile /path/your/cgi-bin/vqadmin/.htpasswd
AuthName vQadmin
require valid-user
satisfy any

[root@prayogi vqadmin]# chown wwwrun .htaccess (wwwrun adlh user yg menjalankan apache)  [root@prayogi vqadmin]# chmod 644 .htaccess [root@prayogi vqadmin]# /usr/local/apache2/bin/htpasswd -bc .htpasswd admin adminpassword [root@prayogi vqadmin]# chmod 644 .htpasswd [root@prayogi vqadmin]# /usr/local/apache2/bin/apachectl stop [root@prayogi vqadmin]# /usr/local/apache2/bin/apachectl start

*testing vqadmin

buka web browser and goto url :
http://www.yourdomain.com/cgi-bin/vqadmin/vqadmin.cgi

masukkan user "admin" dan adminpassword untuk login.
(dalam kasus ini saya menggunakan browser chrome dan mendapat error "invalid language file" , jadi saya mencoba untuk membuka dengan browser lain dan ternyata bisa d akses alias tidak error lagi :D )


*compile maildrop :

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]#  tar -xzvf maildrop-1.6.3.tar.gz
[root@prayogi qmailrocks]# cd maildrop-1.6.3/
[root@prayogi maildrop-1.6.3]# ./configure --prefix=/usr/local --exec-prefix=/usr/local --enable-maildrop-uid=root --enable-maildrop-gid=vchkpw --enable-maildirquota
[root@prayogi maildrop-1.6.3]# make && make install-strip && make install-man

(if in compiled get error like : error: expected ‘;’ before ‘<’ token , maybe you must try to use maildrop version 2.0.4. this application can download on this.)
jika tdk ada error, bisa di Lanjuuut... 


*compile qmailadmin :

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]# tar -xzvf qmailadmin-1.2.9.tar.gz
[root@prayogi qmailrocks]# cd qmailadmin-1.2.9/
[root@prayogi qmailadmin-1.2.9]# ./configure --enable-cgibindir=/path/your/cgi-bin --enable-htmldir=/path/your/htdocs
[root@prayogi qmailadmin-1.2.9]# make && make install-strip

*testing qmailadmin :

http://www.yourdomain.com/cgi-bin/qmailadmin

you should see the login screen. login with the postmaster account and password for the domain that you created by vqadmin.
(ingat!!! cgi-bin hrs enable. Jika tidak, biasanya dpt pesan "You have not permission" . utk enable cgi support for apache bisa dilihat di sini

jika sudah selesai installasi dan dapat d akses, namun gagal login sebagai postmaster =>>
buat domain lewat vqadmin terus compile ulang qmailadminnya dan coba login kembali :))

*finalizing qmail :

[root@prayogi ~]# /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
[root@prayogi ~]# vi /var/qmail/supervise/qmail-pop3d/run

cari "mail.example.com" dan ganti dengan domain anda (mail.z3r0mind.co.cc).

[root@prayogi ~]# vi /var/qmail/supervise/qmail-smtpd/run

cari "mail.example.com" dan ganti dengan domain anda (mail.z3r0mind.co.cc).

[root@prayogi ~]# qmailctl stop
if u get error like: svc: warning: unable to control /service/qmail-smtpd: file does not exist, you can solution with make file 'me' in directory /var/qmail/control.
[root@prayogi ~]#  touch /var/qmail/control/me
[root@prayogi ~]# svscan /service/ &
jika tidak ada error, lanjuut....

*set-up relay :

[root@prayogi ~]# echo '127.0.0.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp
[root@prayogi ~]# qmailctl cdb

*create common system alias :

[root@prayogi ~]# echo "yog@z3r0mind.co.cc" > /var/qmail/alias/.qmail-root
[root@prayogi ~]# echo "yog@z3r0mind.co.cc" > /var/qmail/alias/.qmail-postmaster
[root@prayogi ~]# echo "yog@z3r0mind.co.cc" > /var/qmail/alias/.qmail-mailer-daemon
[root@prayogi ~]# ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
[root@prayogi ~]# chmod 644 /var/qmail/alias/.qmail*


ganti yog@z3r0mind.co.cc dengan email address yang diinginkan 

*starting qmail :

[root@prayogi ~]# /downloads/qmailrocks/scripts/util/qmr_inst_check
[root@prayogi ~]# qmailctl stop
[root@prayogi ~]# qmailctl start
[root@prayogi ~]# qmailctl stat

*testing service :

[root@prayogi ~]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-01-06 19:40 PST
Interesting ports on localhost (127.0.0.1):
Not shown: 1671 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3

Nmap finished: 1 IP address (1 host up) scanned in 0.077 seconds


*testing pop3 service :

[root@prayogi ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <29784.1294371809@mail.z3r0mind.co.cc>
user postmaster@z3r0mind.co.cc
+OK
pass password
+OK
quit
+OK
Connection closed by foreign host.


*testing smtp service :

[root@prayogi ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.z3r0mind.co.cc ESMTP
ehlo localhost
250-mail.z3r0mind.co.cc
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
starttls
220 ready for tls
quit
.
quit
Connection closed by foreign host.


if you have this service "250-STARTTLS" in your smtp then your server is equipped for TLS functionality.

jika mendapat error waktu telnet localhost 25 baca catatan di bawah :

Even after following the complete steps you still will have problem with the mail service, like when you try to test the connectivity to mailserver using telnet you will get the error like

Connection closed by foreign host
immediately. Next thing you need to do is to tail the log file of smtpd
tail /var/log/qmail/qmail-smtpd/current
You will see the output something like
/var/qmail/bin/qmail-smtpd: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object: Cannot allocate memory
The problem is with the softlimit set in
/var/qmail/supervise/qmail-smtpd/run
go the the line
exec /usr/local/bin/softlimit -m 30000000
and change it to
exec /usr/local/bin/softlimit -m 50000000
restart qmail
qmailctl stop
qmailctl start


*compile courier imap and imap ssl

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]#  tar -xjvf courier-authlib-0.55.tar.bz2
[root@prayogi qmailrocks]# cd courier-authlib-0.55/
[root@prayogi courier-authlib-0.55]# ./configure --prefix=/usr/local --exec-prefix=/usr/local --with-authvchkpw --without-authldap --without-authmysql --disable-root-check --with-ssl --with-authchangepwdir=/usr/local/libexec/authlib

jika menemui error waktu configure,
mungkin anda bisa baca errornya.
biasanya d suruh nambah option '--with-redhat'


begitu juga dengan courier-imap
jika tidak ada error bisa dilanjuut....

[root@prayogi courier-authlib-0.55]# make && make check [root@prayogi courier-authlib-0.55]# make install-strip && make install-configure [root@prayogi courier-authlib-0.55]# vi /etc/rc.d/rc.local tambahkan baris berikut :
/usr/local/sbin/authdaemond start

*compile courier-imap :
mengcompile courier-imap hrs non-root user (ex: yoga).

[root@prayogi ~]# cd /downloads/qmailrocks/
[root@prayogi qmailrocks]# tar -xjvf courier-imap-4.0.2.tar.bz2
[root@prayogi qmailrocks]# useradd -m -p linuxpasswd yoga
[root@prayogi qmailrocks]# chown -R yoga:wheel courier-imap-4.0.2
[root@prayogi qmailrocks]# cd courier-imap-4.0.2/
[root@prayogi courier-imap-4.0.2]# su - yoga


[yoga@prayogi ~]$ cd /downloads/qmailrocks/courier-imap-4.0.2
[yoga@prayogi courier-imap-4.0.2]$ ./configure --prefix=/usr/local --exec-prefix=/usr/local --with-authvchkpw --without-authldap --without-authmysql --disable-root-check --with-ssl --with-authchangepwdir=/usr/local/libexec/authlib
[yoga@prayogi courier-imap-4.0.2]$ make && make check
[yoga@prayogi courier-imap-4.0.2]$ exit
[root@prayogi courier-imap-4.0.2]# make install-strip && make install-configure


*make SSL certificate :

[root@prayogi courier-imap-4.0.2]# /usr/local/sbin/mkimapdcert
[root@prayogi courier-imap-4.0.2]# vi /usr/local/etc/imapd.cnf

change postmaster@example.com an administrative email adress (postmaster@z3r0mind.co.cc)

[root@prayogi courier-imap-4.0.2]# vi /usr/local/etc/imapd

configure: IMAPDSTART=YES

[root@prayogi courier-imap-4.0.2]# vi /usr/local/etc/imapd-ssl

configure: IMAPDSSLSTART=YES
make sure this configuration exists : TLS_CERTFILE=/usr/local/share/imapd.pem

[root@prayogi courier-imap-4.0.2]# vi /usr/local/etc/authlib/authdaemonrc

configure : authmodulelist="authvchkpw"

[root@prayogi courier-imap-4.0.2]# cp /usr/local/libexec/imapd.rc /etc/init.d/imap
[root@prayogi courier-imap-4.0.2]# cp /usr/local/libexec/imapd-ssl.rc /etc/init.d/imaps

*starting up service :

[root@prayogi courier-imap-4.0.2]# /usr/local/sbin/authdaemond stop
[root@prayogi courier-imap-4.0.2]# /usr/local/sbin/authdaemond start
[root@prayogi courier-imap-4.0.2]# /etc/init.d/imap stop
[root@prayogi courier-imap-4.0.2]# /etc/init.d/imap start
[root@prayogi courier-imap-4.0.2]# /etc/init.d/imaps stop
[root@prayogi courier-imap-4.0.2]# /etc/init.d/imaps start

*check dengan nmap :

[root@prayogi courier-imap-4.0.2]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-01-06 20:13 PST
Interesting ports on localhost (127.0.0.1):
Not shown: 1671 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3
143/tcp  open  imap
993/tcp  open  imaps
3306/tcp open  mysql


Nmap finished: 1 IP address (1 host up) scanned in 0.084 seconds


*testing imap :

[root@prayogi courier-imap-4.0.2]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
a login postmaster@z3r0mind.co.cc password
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Connection closed by foreign host.


*compile courierpassd :

[root@prayogi ~]# cd /download/qmailrocks/
[root@prayogi qmailrocks]# tar -xzvf courierpassd-1.1.0-RC1.tar.gz
[root@prayogi qmailrocks]# cd courierpassd-1.1.0-RC1/
[root@prayogi courierpassd-1.1.0-RC1]# ./configure
[root@prayogi courierpassd-1.1.0-RC1]# make && make install

*configure courierpassd :

[root@prayogi ~]# cd /etc/xinetd.d/
[root@prayogi xinetd.d]# vi courierpassd
tambahkan baris berikut :

service courierpassd
{
port = 106
socket_type = stream
protocol = tcp
user = root
server = /usr/local/sbin/courierpassd
server_args = -s imap
wait = no
only_from = 127.0.0.1
instances = 4
disable = no
}

[root@prayogi ~]# vi /etc/services tambahkan baris berikut :
courierpassd 106/tcp # for /etc/xinetd.d/courierpassd
start service : [root@prayogi ~]# /etc/init.d/xinetd restart

*testing service dengan nmap :

[root@prayogi xinetd.d]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-01-06 22:01 PST
Interesting ports on localhost (127.0.0.1):
Not shown: 1671 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
106/tcp  open  pop3pw
110/tcp  open  pop3
143/tcp  open  imap
993/tcp  open  imaps
3306/tcp open  mysql


Nmap finished: 1 IP address (1 host up) scanned in 0.088 seconds


*install squirrelmail (web mail client)

[root@prayogi ~]# cd /downloads
[root@prayogi downloads]# wget http://internode.dl.sourceforge.net/sourceforge/squirrelmail/squirrelmail-1.4.17.tar.bz2
[root@prayogi downloads]# tar -xjvf squirrelmail-1.4.17.tar.bz2
[root@prayogi downloads]# mv squirrelmail-1.4.17 webmail
[root@prayogi downloads]# mv webmail/ /path/your/htdocs/

*configure squirrelmail

[root@prayogi ~]# mkdir /var/sqattachements
[root@prayogi ~]# chown -R wwwrun:www /var/sqattachements/
[root@prayogi ~]# cd /srv/www/htdocs/webmail/
[root@prayogi webmail]# chown -R wwwrun:www data/
[root@prayogi webmail]# cd config/
[root@prayogi config]# ./conf.pl


* push number #2 (Server Settings) and #1 (Domain) to configure your ip for your domain (ex: z3r0mind.co.cc) and then press key S (save) and Q (quit).

SquirrelMail Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings


General
-------
1. Domain : z3r0mind.co.cc
2. Invert Time : false
3. Sendmail or SMTP : SMTP


A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25


R Return to Main Menu
C Turn color on
S Save data
Q Quit


*add plugins change_pass :

[root@prayogi ~]# cd /path/your/htdocs/webmail/plugins/
[root@prayogi plugins]# wget http://www.squirrelmail.org/plugins/change_passwd-4.0-1.2.8.tar.gz
[root@prayogi plugins]# tar -xzvf change_passwd-4.0-1.2.8.tar.gz
[root@prayogi plugins]# rm change_passwd-4.0-1.2.8.tar.gz
[root@prayogi plugins]# cd ../config/
[root@prayogi config]# ./conf.pl

* select #8 (plugins) then #4 (change_passwd) then hitting enter for actived/installed this plugin. hitting key S (save) then Q (quit).

*configure virtual host

[root@prayogi config]# vi /usr/local/apache2/conf/httpd.conf

tambahkan vhost :

<VirtualHost 203.201.173.142:80>
ServerName mail.z3r0mind.co.cc
ServerAlias mail.*
DocumentRoot "/path/your/htdocs/webmail"
ScriptAlias /cgi-bin/ "/path/your/cgi-bin/"

<Directory "/path/your/htdocs/webmail">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>


*restart apache :

[root@prayogi config]# /usr/local/apache2/bin/apachectl stop
[root@prayogi config]# /usr/local/apache2/bin/apachectl start


* open your web browser and go to url

http://mail.z3r0mind.co.cc (http://mail.yourdomain.com)

but if you are not make virtual host, you can access webmail like this:

http://yourdomain.com/webmail

then login with yours email accout or with account:

username : postmaster@yourdomain.com
password : yourpostmasterpassword

nah dalam kasus saya, mendapat error seperti ini :

ERROR
Error opening ../data/default_pref
Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user daemon
Please contact your system administrator and report this error.

to fix?? => buat folder and file default_pref atur own nya daemon/yg menjalankan web


*jangan lupa atur MX Record pada domain.
coz pernah bisa send-recive domain local,bisa send ke external, tp gak bisa recive dari external gara-gara MX Record pada domain blm saya set. he eh e hehe.....
*referensi :

http://www.qmailrocks.org/
http://www.blackonsole.org/
http://www.sparksupport.com

1 comments:

paidjo.web.id said...

mau tanya nih boss,
kalo menggunakan qmailrock, bisa untuk filter sending and receive email ga?
seperti EMPF

Post a Comment