Anda di halaman 1dari 8

Membangun DNS , Web Server dan Web Mail Server ( 2013 )

DNS Server Mail Server Webmail server PC Client Switch/Hub

1. Membangun DNS , Web Server dan Web Mail Server Opsi konfigurasi : IP Address 1. ns.sekolah.sch.id 2. www.sekolah.sch.id 3. mail.sekolah.sch.id 4. PC Client DNS Server 1. 2. 3. 4. Sistem Operasi Domain Email Admin Sub Domain = 192.168.10.1/24 = 192.168.10.2/24 = 192.168.10.3/24 = 192.168.10.4/24 = OS Linux = sekolah.sch.id = nama_peserta@sekolah.sch.id = www.sekolah.sch.id mail.sekolah.sch.id

Mail Server 1. Sistem Operasi Webmail Server 1. Virtual Alias 2. Metode = mail.sekolah.sch.id = IMAP/POP3 , SMTP = OS Linux

A. TAHAP PERTAMA INSTALASI DEBIAN 1. Install Debian dengan Mode TEXT ( Server ) 2. Choose Language pilih English a. Other b. Asia c. Indonesia 3. Select a keyboard layout pilih American Engglish 4. Configure the network Pilih Continue a. Pilih Configure network manually

b. IP address 192.168.10.1 c. Netmask 255.255.255.0 d. Gateway 192.168.10.1 e. Name Server addresss 192.168.10.1
5. 6. 7. 8. Hostname : sekolah Domain name : sch.id Configure the clock : Jakarta Partition disk : Guide-use entire disk

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 1

9. 10. 11. 12. 13. 14. 15. 16. 17. 18.

19. 20. 21.

a. All files in one partition ( recommended for new users ) b. Finish partition and write changes to diisk : Enter c. Write the changes to disk : YES Root Password : 123 Re-enter password to verify : 123 Full name for the new user : tkj Username for your account : tkj Choose a password for the new user : 123 Re-enter password to verify : 123 Scan another CD or DVD : NO Use a network mirror : NO Participlate in he package usage survey ? NO Software Selection : a. Web Server b. DNS Server c. Mail Server d. Standard System Tunggu prosess instalasi selesai. Install the GRUB boot loader to the master boot record : YES Installation Complete : Continue

B. TAHAP KE DUA KONFIGURASI DNS

1. nano /etc/network/interfaces auto lo eth0


Tambahkan pada bawah tulisan ini iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 gateway 192.168.10.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.10.1 dns-search sch.id //// *Tambahkan pada bawah tulisan ini */////

auto eth0:0 iface eth0:0 inet static address 192.168.10.2 netmask 255.255.255.0 auto eth0:1 iface eth0:1 inet static address 192.168.10.3 netmask 255.255.255.0

2. /etc/init.d/networking restart 3. Ifconfig 4. cd /etc/bind

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 2

5. nano named.conf.local
// // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918";

zone "sekolah.sch.d"{ type master; file "/etc/bind/db.sekolah.sch.id"; }; zone "192.in-adrd.arp"{ type master; file "/etc/bind/db.192"; };

// Zone Domain anda

// 1 blok ip paling depan

6. cp db.local db.sekolah.sch.id 7. cp db.127 db.192 8. nano db.sekolah.sch.id


; ; BIND data file for local loopback interface ; $TTL 604800

IN

SOA

sekolah.sch.id. root.sekolah.sch.id. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL

; @ IN NS sekolah.sch.id. @ IN A 192.168.10.1 www IN A 192.168.10.2 mail IN A 192.168.10.3

9. nano db.192
; ; BIND reverse data file for local loopback interface ; $TTL 604800

IN

SOA

sekolah.sch.id. root.sekolah.sch.id. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL

; @ IN NS sekolah.sch.id. 10.168.192 IN PTR sekolah.sch.id.

// 3 Blok IP Terakhir

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 3

10.nano /etc/resolv.conf
search sekolah.sch.id nameserver 192.168.10.1

11.nano /etc/hosts
127.0.0.1 localhost 192.168.10.1 sekolah.sch.id 192.168.10.2 www.sekolah.sch.id 192.168.10.3 mail.sekolah.sch.id

12./etc/init.d/bind9 restart
Stopping domain name service...: bind9. Starting domain name service...: bind9.

Pengujian /Tes DNS :

nslookup sekolah.sch.id
Server: Address: 192.168.10.1 192.168.10.1#53

Name: sekolah.sch.id Address: 192.168.10.1

nslookup www.sekolah.sch.id
Server: Address: 192.168.10.1 192.168.10.1#53

Name: www.sekolah.sch.id Address: 192.168.10.2

nslookup mail.sekolah.sch.id
Server: Address: 192.168.10.1 192.168.10.1#53

Name: mail.sekolah.sch.id Address: 192.168.10.3

C. TAHAP KE TIGA MAIL SERVER DAN WEB MAIL SERVER

Masukkan cd debian yang tersedia


1. apt-get install courier-base courier-imap courier-pop 2. apt-get install squirrelmail 3. squirrelmail-configure
2. serversetting A. Update IMAP Setting 8. Server Software courier S. Save Tekan Enter Q. Quit --- pilih 2 --- pilih a --- Pilih 8 --- Ketikan courier --- Pilih s --- Pilih q

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 4

1. nano /etc/apache2/sites-available/default
<VirtualHost *:80>

ServerName www.sekolah.sch.id ServerAdmin admin@sekolah.sch.id


DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny isinya banyak biarkan saja </VirtualHost> di enter dibawah tulisan ini

-----TAMBAHKAN DIBAWAHNYA tulisan yang sudah ada ----<VirtualHost *:80> ServerName mail.sekolah.sch.id ServerAdmin admin@sekolah.sch.id DocumentRoot /usr/share/squirrelmail/ </VirtualHost>
Tulis manual dan hafalkan semua. Perhatikan tanda baca dan besar kecil Hurufnya.

2. /etc/init.d/apache2 restart 3. cd /etc/skel 4. maildirmake Maildir


Untuk menambahkan user Email dengan perintah berikut ini..

5. adduser user2 - -home /home/user2


Untuk membedakan http://mail.sekolah.sch.iddengan http://www.sekolah.sch.id, maka halaman http://www.sekolah.sch.id diubah.

6. nano /var/www/index.html
<html><body>

<h1> Selamat Datang </h1><br> Nama : Didi Kempot<br> Kelas : XII TKJ 1<br> di UKK SMK Cokoroaminoto 1 Banjarnegara<br> <a href="http://mail.sekolah.sch.id">Email Server Kami</a> </body></html>

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 5

D. MTA (Mail Transfer Agent) POSTFIX

1. apt-get install postfix


General type of mail configuration : pilih internet site

Gambar 1. Pilih OK

Gambar 2. Pilih Intrnet Site

Gambar 3. Ketikan sekolah.sch.id

2. nano /etc/postfix/main.cf
cari tulisan ini myhostname = mail.sekolah.sch.id alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = sekolah.sch.id, mail.sekolah.sch.id, localhost.sekolah.sch.id, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all

home_mailbox = Maildir/ 3. /etc/init.d/postfix restart


TKJ SMK COKROAMINOTO 1 BANJARNEGARA Halaman 6

E. Pengujian

1. w3m sekolah.sch.id ( di linux )


2. Cek Web Server dengan browser (Internet Explorer Browser pada windows Cliet), arahkan ke sekolah.sch.id 3. Pastikan computer sudah terhubung dengan PC Client ( Ping )

Gambar 4. Tampilan Utama

Gambar 5. Tampilan Squirrel Mail

Gambar 6. Tampilan Email jika Berhasil di Login

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 7

Kepala Surat

Gambar 7. Kirim Email dari User 2

Email Terkirim Dari User 3


Gambar 8. Kotak Masuk ( Inbox ) di Email user lain

Istilah POP3, IMAP & SMTP sering terdengar ketika melakukan setting mail client baik di PC Desktop atau SmartPhone, bahkan saat ini HP dengan harga yang tidak begitu mahal pun sudah dilengkapi dengan fasilitas email. Namun tahukah Anda apa yang dimaksud dengan POP3, IMAP & SMTP ? POP3 (Post Office Protocol version 3) adalah protokol yang digunakan untuk mengambil surat elektronik (email) dari server email. Protokol POP3 dibuat karena desain dari sistem surat elektronik yang mengharuskan adanya server surat elektronik yang menampung surat eletronik untuk sementara sampai surat elektronik tersebut diambil oleh penerima yang berhak IMAP (Internet Message Access Protocol) adalah protokol standar untuk mengakses / mengambil e-mail dari server. IMAP memungkinkan pengguna memilih pesan e-mail yang akan ia ambil, membuat folder di server, mencari pesan e-mail tertentu, bahkan menghapus pesan email yang ada. Kemampuan ini jauh lebih baik daripada POP (Post Office Protocol) yang hanya memperbolehkan kita mengambil/download semua pesan yang ada tanpa kecuali. SMTP (Simple Mail Transfer Protocol) merupakan salah satu protokol yang umum digunakan untuk pengiriman surat elektronik di Internet. Protokol ini dipergunakan untuk mengirimkan data dari komputer pengirim surat elektronik ke server surat elektronik penerima.

TKJ SMK COKROAMINOTO 1 BANJARNEGARA

Halaman 8

Anda mungkin juga menyukai