Install paket webmail server
# apt-get install
squirrelmail (masukan dvd 1 - 3)
# nano
/etc/apache2/apache2.conf
Include
“/etc/squirrelmail/apache.conf” (tambahkan di baris paling bawah)
#nano
/etc/squirrelmail/apache.conf
# users will prefer a
simple URL like http://webmail.example.com
<VirtualHost192.168.1.1:80>
DocumentRoot
/usr/share/squirrelmail
ServerName mail.tkj.com
#. . .
MAIL SERVER
Install paket mail server
#apt-get
install postfix courier-imap courier-pop
Membuat directory mail server
#maildirmake
/etc/skel/Maildir
Menambahkan user (buat 2 user)
#adduser mz
Adding user `manshurin' ...
Adding new group `manshurin'
(1007) ...
Adding new user `manshurin'
(1007) with group `manshurin' ...
Creating home directory
`/home/manshurin' ...
Copying files from
`/etc/skel' ...
Enter new UNIX password:
****
Changing the user
information for manshurin
Enter the new value, or
press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct?
[Y/n] y
#adduser r
Adding user `manshurin' ...
Adding new group `manshurin'
(1007) ...
Adding new user `manshurin'
(1007) with group `manshurin' ...
Creating home directory
`/home/manshurin' ...
Copying files from
`/etc/skel' ...
Enter new UNIX password:
****
Changing the user
information for manshurin
Enter the new value, or
press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct?
[Y/n] y
Konfigurasi
Postfix
#
nano /etc/postfix/main.cf
myhostname = tkj.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = tkj.com, tkj, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.9.3/29
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = tkj.com, tkj, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.9.3/29
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox =
Maildir/ #Tambahkan
pada baris paling bawah
Selanjutnya tambahkan sedikit konfigurasi pada postfix
melalui dpkg.
# dpkg-reconfigure postfix
General Type of Mail
Configuration : Internet Site
System Mail
Name :
tkj.com
Root and postmaster mail
recipient : (biarkan kosong)
Other destination to
accept... :
(pilih ok)
Force synchronous
updates... :
No
Local
Networks : (tambahkan
IP address squirrelmail)
Use Procmail for local
delivery : No
Mailbox size limit
(bytes) :
0
Local address extension
character : +
Internet protocols to
use :
ipv4
debian-server:~#
/etc/init.d/postfix restart
debian-server:~#
/etc/init.d/courier-imap restart
debian-server:~#
/etc/init.d/courier-pop restart
debian-server:~#
/etc/init.d/apache2 restart
Cek Web Server
# links www.tkj.com
# links 192.168.9.2
Cek Mail
Server
# links mail.tkj.com
# links 192.168.9.3