Monday, 26 October 2015

Konfigurasi Web Mail Server Pada Debian 5




Konfigurasi IP

Login sebagai Super User atau Root
$ root atau $ su

Memasukkan IP di interfaces (eth)
dengan perintah

    #nano /etc/network/interfaces

kemudian edit filenya menjadi sebagai berikut:

auto eth0
iface eth0 inet static
address 192.168.No.Absen.65
netmask 255.255.255.224
network  192.168.No.Absen.64
broadcast 192.168.No.Absen.95

auto eth0:0
iface eth0:0 inet static
address 192.168.No.Absen.66
netmask 255.255.255.224
network  192.168.No.Absen.64
broadcast 192.168.No.Absen.95

auto eth0:1
iface eth0:1 inet static
address 192.168.No.Absen.67
netmask 255.255.255.224
network  192.168.No.Absen.64
broadcast 192.168.No.Absen.95

Restart network perintah

    #/etc/init.d/networking restart

Edit file Hosts
$ nano /etc/hosts
Konfigurasinya : dibawah:
            127.0.0.1                     localhost
Tambahkan :
            192.168.NoAbsen.65  smkypt.sch.id

Buat file resolv.conf
$ nano /etc/resolv.conf
Konfigurasinya :
            search                         smkypt.sch.id
            nameserver    192.168.NoAbsen.65

Konfigurasi DNS (Domain Name Service)

1) apt-get install bind9
2) nano /etc/bind/named.conf        {tambahkan pada baris paling bawah}
zone   "smkypt.sch.id" {
                        type master;
                        file    "/etc/bind/db.ypt";
             };


              zone  "No.Absen.168.192.in-addr.arpa" {
                        type master;
                        file   "/etc/bind/db.192";
};

3) nano /etc/bind/named.conf.options
(yang diaktifkan hanya yang di bawah ini, yang lainnya jangan dirubah)
                  options {
                                    directory "/var/cache/bind";
                                   forwarders {
                                                192.168.No.Absen.65;
                                    };
                                    allow-query { any; };
                                    auth-nxdomain no; # conform to RFC1035
                        listen-on-v6 { any; };
            };

4) cp /etc/bind/db.local  /etc/bind/db.ypt
5) cp /etc/bind/db.127  /etc/bind/db.192
6) nano /etc/bind/db.ypt
$TTL 604800
@         IN       SOA     ns.smkypt.sch.id.       root.ns.smkypt.sch.id. (
                        2                                   ; Serial
                        604800                         ; Refresh
                        86400                           ; Retry
                        2419200                       ; Expire
                        604800 )                       ; Negative Cache TTL
 ;
@                     IN       NS       ns.smkypt.sch.id.
ns                    IN        A          192.168.NoAbsen.65
www               IN        A           192.168.No.Absen.66
mail                 IN        A          192.168.No.Absen.67

7) nano /etc/bind/db.192
$TTL 604800
@         IN        SOA     ns.smkypt.sch.id.       root.ns.smkypt.sch.id. (
                        1                                  ; Serial
                        604800                        ; Refresh
                        86400                          ; Retry
                        2419200                      ; Expire
                        604800 )                      ; Negative Cache TTL=
;
@         IN         NS      ns.smkypt.sch.id.
65        IN         PTR    ns.smkypt.sch.id.

9) /etc/init.d/bind9  restart
Konfigurasi Web Server
1) apt-get install apache2 php5

2) nano /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin        admin@smkypt.sch.id
ServerName   www.smkypt.sch.id
ServerAlias         smkypt.sch.id
DocumentRoot   /var/www/
</VirtualHost>

3) /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .

4) nano /var/www/index.html
<html><body><h1>Selamat Datang Di Web  _ Nama Ssiswa_</h1></body></html>


















Konfigurasi WebMail Server

1) apt-get install postfix squirrelmail courier-imap courier-pop

Create directories for web-based administration : NO
Local only                                                                               : OK
General type of mail configuration                         : Internet Site
System mail name                                                     : smkypt.sch.id

2) nano /etc/apache2/apache2.conf

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Include /etc/squirrelmail/apache.conf

3) nano /etc/squirrelmail/apache.conf

                Alias /webmail /usr/share/squirrelmail               #alias diganti menjadi “Alias /webmail”
<Directory /usr/share/squirrelmail>

# users will prefer a simple URL like http://webmail.example.com
<virtualhost *:80>                                         {hilangkan pagar dan edit}
DocumentRoot /usr/share/squirrelmail
ServerName    mail.smkypt.sch.id
</virtualhost>

4) /etc/init.d/apache2  restart

5) maildirmake  /etc/skel/Maildir

6) dpkg-reconfigure postfix
Local only                                                                                           : OK
General type of mail configuration                                     : Internet Site
System mail name                                                                             : smkypt.sch.id
Root and postmaster mail recipient                                    : (kosongkan)
Other destinations to accept mail   : Tambahkan :,192.168.No.Absen.64/27
Force synchronous updates on mail queue                        : No
Local networks                                       : Tambahkan : 192.168.No.Absen.64/27
Use procmail for local delivery                                                        : NO
Mailbox size limit (bytes)                                                                  : 0
Local address extension character                                       : +
Internet protocols to use                                                                 : ipv4

7) nano /etc/postfix/main.cf
inet_interfaces = all
inet_protocols = ipv4
home_mailbox = Maildir/

8) adduser admin
9) adduser lks5

10) /etc/init.d/postfix  restart.

11) /etc/init.d/courier-imap  restart

12) /etc/init.d/courier-pop  restart








No comments:

Post a Comment