LANGKAH-LANGKAH MEMBUAT MAIL SERVER PADA DEBIAN 6
WEBMAIL
SERVER
Install
paket webmail server
debian-server:~#
apt-get install squirrelmail
(Masukan DVD
1 - 2)
debian-server:~# nano
/etc/apache2/apache2.conf
Include “/etc/squirrelmail/apache.conf” #tambahkan
di baris paling bawah
debian-server:~# nano
/etc/squirrelmail/apache.conf
#sers will prefer a simple URL like http://webmail.example.com
<VirtualHost 192.168.1.3:80> #ganti
menjadi port 80
DocumentRoot /usr/share/squirrelmail #lokasi
default web squirrelmail
ServerName mail.smkmuh2.sch.id #domain
untuk E-Mail
</VirtualHost>
#. . .
debian-server:~# cd /etc/apache2/sites-enabled/
debian-server:nano /etc/apache2/sites-enabled# cp 000-default www
(Copykan
file 000-default www)
debian-server:
/etc/apache2/sites-enabled# nano www
NameVirtualHost
192.168.1.2:80 #
tambah seperti ini
<VirtualHost 192.168.1.2:80> # edit
seperti ini
ServerAdmin webmaster@localhost
ServerName www.smkmuh2.sch.id # tambah seperti ini
DocumentRoot /var/www
#. . .
Kemudian
restart apache 2
debian-server: /etc/apache2/sites-enabled# service
apache2 restart
MAIL SERVER
Install
paket mail server
root@debian:~#
apt-get install
postfix courier-imap courier-pop
Kemudian akan muncul menu PopUp, dan sesuaikan dengan konfigurasi di
bawah ini
a. General Type of Mail Configuration : Internet Site
a. General Type of Mail Configuration : Internet Site
b.
System Mail Name
: smkmuh2.sch.id
Membuat directory mail server
debian-server:~# maildirmake
/etc/skel/Maildir
Menambahkan
user
debian-server:~# adduser mei
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
debian-server:~# adduser kumala
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 []: Owner of www.MansyurinIT.co.cc
Is the information correct? [Y/N] Y
Konfigurasi Postfix
debian-server:~# nano /etc/postfix/main.cf
myhostname
= smkmuh2.sch.id
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = debian, smkmuh2.sch.id, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.1/27
#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 = debian, smkmuh2.sch.id, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.1/27
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
Edit script seperti di atas ini.
Selanjutnya,
tinggal tambahkan sedikit konfigurasi pada postfix melalui dpkg. Ikuti
langkahnya seperti dibawah ini.
debian-server:~# dpkg-reconfigure postfix
General Type of Mail Configuration
: Internet Site
System Mail Name
: smkmu2.sch.id
Root and
postmaster mail recipient : (biarkan kosong)
Other destination to accept...
: (pilih ok)
Force synchronous updates...
: No
Local Networks :
0.0.0.0/0 (ditambahkan baris terakhir)
Use Procmail for local delivery
: No
Mailbox size limit (bytes) :
0
Local address extension character
: +
Internet protocols to use
: ipv4
Kemudian
semuak konfigurasi direstart termasuk DNS
debian-server:~# service bind9 restart
debian-server:~# service apache2 restart
debian-server:~# service postfik restart
debian-server:~# service courier-pop restart
debian-server:~# service courier-imap restart
LANGKAH-LANGKAH MEMBUAT DNS SERVER PADA DEBIAN 6
·
Install
Bind9
root@debian:~# apt-get install bind9
·
Setting
file bind9
root@debian:~# nano /etc/bind/named.conf
zone “smkmuh2.sch.id”{
type master:
file “db.debian”;
};
zone “192.in-addr.arpa”{
type master;
file “db.192”;
};
kemudian tekan Ctrl + O, enter
(untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
·
Setting
file forward dari DNS
root@debian:~# cd /etc/bind
roloot@debian:~# cp db.local /var/cache/bind/db.debian
root@debian:~# nano /var/cache/bind/db.debian
$TTL 604800
@ IN A smkmuh2.sch.id. root.smkmuh2.sch.id. (
2 ; Serial
604800 ;
Refresh
86400 ;
Retry
2419200 ; Expire
604800 ;
Negative Cache TTL
;
@ IN NS smkmuh2.sch.id.
@ IN A 192.168.1.1
www IN A 192.168.1.2
mail IN A 192.168.1.3
mail IN A 192.168.1.3
ftp IN A 192.168.1.1
sub-domain IN A 192.168.1.1
streaming IN A 192.168.1.1
kemudian tekan Ctrl + O, enter
(untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
root@debian:~# cp db.127 /var/cache/bind/db.192
root@debian:~# nano /var/cache/bind/db.192
$TTL 604800
@ IN A smkmuh2.sch.id. root.smkmuh2.sch.id. (
1 ; Serial
604800 ;
Refresh
86400 ;
Retry
2419200 ; Expire
604800 ;
Negative Cache TTL
;
@ IN NS smkmuh2.sch.id.
1.1.168 IN PTR smkmuh2.sch.id.
2.1.168 IN PTR www.smkmuh2.sch.id.
3.1.168 IN PTR mail.smkmuh2.sch.id.
2.1.168 IN PTR www.smkmuh2.sch.id.
3.1.168 IN PTR mail.smkmuh2.sch.id.
kemudian tekan Ctrl + O, enter
(untuk menyimpan) dan tekan Ctrl + X (untuk keluar) lalu restart bind9
root@debian:~# /etc/init.d/bind9 restart
root@debian:~# nslookup smkmuh2.sch.id
root@debian:~# nslookup www.smkmuh2.sch.id
root@debian:~# nslookup mail.smkmuh2.sch.id
root@debian:~# nslookup 192.168.1.1root@debian:~# nslookup www.smkmuh2.sch.id
root@debian:~# nslookup mail.smkmuh2.sch.id
1 komentar:
Terimakasih, artikel diatas sangat membantu
Posting Komentar