Debian 6
1.
Install
Debian CD1 & CD2
-
IP
Address = 192.168.1.1
-
Netmask =
255.255.255.0
-
Gateway =
192.168.1.254
-
NameServer
Address = 192.168.1.1
-
Hostname = Rino
-
Domain
Name = smkn1jamblang.sch.id
2.
Install
Aplikasi
-
Ketik
“su –“ (untuk masuk ke Super User)
-
Ketik apt-get install dhcp3-server bind9 bind9-doc dnsutils
postfix squirrelmail apache2 (kalau ada pertanyaan Do you want to
continous [Y/N] Ketik Y lalu enter)
-
General
type = Internet sites
-
System
mail server = mail.smkn1jamblang.sch.id
-
Create
directori pilih : no
(perhatikan
juga ketika penginstallan membutuhkan pergantian CD)
-
Ketik
apt-get
install courier-pop courier-imap courier-authdaemon telnetd
3.
Konfigurasi
-
Nano /etc/dhcp/dhcpd.conf (Cari kata Slightly)
Edit di bawah slightly menjadi :
Subnet
192.168.1.0 netmask 255.255.255.0 {
Range
192.168.1.2 192.168.1.10;
Option
domain-name-servers 192.168.1.1 ;
Option
rdomain-name “smkn1jamblang.sch.id” ;
Option
router 192.168.1.1
Option broadcast-address
192.168.1.255 ;
Lalu tekan ctrl+o
kemudian ctrl+x (yang lain tdk usah
di edit)
-
Nano /etc/default/isc-dhcp-server
Tambahkan
script : INTERFACES = “eth0”
-
/etc/init.d/isc-dhcp-server restrart
-
Nano /etc/bind/named.conf.local (tambahkan script ini Pada bagian
bawahnya)
#...
Zone
“smkn1jamblang.sch.id” {
Type master ;
File “/var/cache/bind/forward” ;
);
Zone
“192.168.1.in-addr.arp” (
Type master ;
File “/var/cache/bind/reverse”;
);
#...
-
Cp /etc/bind/db.local /var/cache/bind/forward
-
Cp /etc/bind/db.127 /var/cache/bind/reverse
-
Nano /var/cache/bind/forward
Samakan
syntax nya:
;BIND
forward data file for zone smkn1jamblang.sch.id
;
$TTL
604800
@ IN SOA rino.smkn1jamblang.sch.id root.smkn1jamblang.sch.id (
===
===
@ IN NS rino.smkn1jamblang.sch.id.
@ IN A 192.168.1.1
rino IN A 192.168.1.1
www IN CNAME rino.smkn1jamblang.sch.id.
mail IN CNAME rino.smkn1jamblang.sch.id.
IN MX 10 www.smkn1jamblang.sch.id.
IN MX 10 mail.smkn1jamblang.sch.id.
-
Nano
/var/cache/bind/reverse
Samakan
syntax nya:
;BIND reverse data file for zone smkn1jamblang.sch.id
;
$TTL
604800
@ IN SOA rino.smkn1jamblang.sch.id root.smkn1jamblang.sch.id (
===
===
@ IN NS rino.smkn1jamblang.sch.id.
1 IN PTR rino.smkn1jamblang.sch.id.
1 IN PTR www.smkn1jamblang.sch.id.
1 IN PTR mail.smkn1jamblang.sch.id.
-
/etc/init.d/bind9 reload
-
/etc/init.d/bind9 restart
-
Nslookup
mail.smkn1jamblang.sch.id (kalau ada
kalimat “canonical name” berarti berhasil)
-
/etc/init.d/postfix
restart
-
Nano
/etc/postfix/main.cf
Edit dan Samakan:
-
Myhostname = rino.smkn1jamblang.sch.id (ubah “server” menjadi hostname = rino)
-
Mydestination = smkn1jamblang.sch.id , mail.smkn1jamblang.sch.id ,
Rino.smkn1jamblang.sch.id ,
-
beri tanda
# di awal mailbox_comand
-
kasih
syntax ini di akhir halaman = home_mailbox =
Maildir/
-
/etc/init.d/postfix
restart
-
Ketikkan Cd
/etc/skel
-
Ketikkan
juga Maildirmake Maildir
-
Membuat User (sesuai Keinginan contohnya kita
buat 2 user: rino1 dan rino2)
-
Adduser rino1
-
Pass
= 123
-
Fullname rino1
-
Is the information correct? [y/n] y
-
Buat user kedua, langkahnya sama.
-
/etc/init.d/postfix
restart
-
/etc/init.d/courier-pop
restart
-
/etc/init.d/courier-imap
restart
-
/etc/init.d/courier-authdaemon
restart
-
Nano
/etc/apache2/apache2.conf
Tambah = include /etc/squirrelmail/apache.conf (di halaman paling bawah)
-
Nano
/etc/apache2/sites-available/default
Tambah di Halaman Paling Bawah
=
<virtualHost *:80>
ServerAdmin rino@smkn1jamblang.sch.id
DocumentRoot /usr/share/squirrelmail
ServerName mail.smkn1jamblang.sch.id
ServerName www.smkn1jamblang.sch.id
</VirtualHost>
-
/etc/init.d/bind9
reload
-
/etc/init.d/bind9
restart
-
/etc/init.d/apache2
restart
-
Nano
/etc/network/interfaces
Auto eth0 allow-hotplug Diganti menjadi Auto
Ifaces eth0
inet static
Address 192.168.1.1
Netmask 255.255.255.0
Network 192.168.1.0 tdk
perlu diubah
Broadcast 192.168.1.255
Gateway 192.168.1.254
Dns-nameserver 192.168.1.1
Dns-search smkn1jamblang.sch.id
Auto
eth0
Ifaces eth0 inet
static
Address 192.168.1.1
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255 Ditulis Manual
Gateway 192.168.1.254
Dns-nameserver 192.168.1.1
Dns-search smkn1jamblang.sch.id
-
/etc/init.d/networking restart
-
Nano /etc/hosts
127.0.0.1 localhost
192.168.1.1 rino.smkn1jamblang.sch.id
192.168.1.2 www.smkn1jamblang.sch.id
192.168.1.3 mail.smkn1jamblang.sch.id
-
/etc/init.d/bind9
reload
-
/etc/init.d/bind9
restart
-
/etc/init.d/apache2
restart
Pengujian
Squirrelmail, Jika tidak bisa Mengirim Pesan Pancing dahulu secara Console
telnet mail.smkn1jamblang.sch.id 25
mail
from: rino1@smkn1jamblang.sch.id
rcpt
to : rino2@smkn1jamblang.sch.id
data
Percobaan
.
QuitBy : Rino
0 komentar:
Posting Komentar