Anda di halaman 1dari 4

MAIL SERVER

Persiapan :

1. VBox ---> install di Local Disk D:


2. File iso debian DVD 1,DVD 2, dan DVD 3
3. File iso win xp (OPTIONAL)

Langkah-Langkah :
1. Install debian 7.8
2. Setting IP address /etc/network/interfaces
IP DNS Server = 192.168.(no.absen).1
IP Web Server = 192.168. (no.absen).2
IP Mail Server = 192.168. (no.absen).3
eth0 = IP untuk DNS Server
eth0:0 = IP untuk Web Server
eth0:1 = IP untuk Mail Server
auto eth0
iface eth0 inet static
address 192.168. (no.absen).1
netmask 255.255.255.0
network 192.168. (no.absen).0
broadcast 192.168. (no.absen).255
auto eth0:0
iface eth0:0 inet static
address 192.168. (no.absen).2
netmask 255.255.255.0
auto eth0:1
iface eth0:1 inet static
address 192.168. (no.absen).3
netmask 255.255.255.0
Lakukan tes ping pada setiap IP address
3. Install DNS Server (Bind9)
edit file named.conf.local

zone namasiswa.sch.id {
type master;
file /etc/bind/db.domain;
};
zone noabsen.168.192.in-addr.arpa {
type master;
file /etc/bind/db.ip;
};
cp db.local db.domain
cp db.127 db.ip
edit file db.domain
localhost ganti = namasiswa.sch.id.
@
@
ns
www
mail
@

IN
IN
IN
IN
IN
IN

NS
A
A
A
A
AAAA

namasiswa.sch.id.
namasiswa.sch.id.
192.168.no-absen.1
192.168.no-absen.2
192.168.no-absen.3
::1

edit file db.ip


localhost ganti = namasiswa.sch.id.
@
1
2
3

IN
IN
IN
IN

NS
PTR
PTR
PTR

namasiswa.sch.id.
ns.namasiswa.sch.id.
www.namasiswa.sch.id.
mail.namasiswa.sch.id.

restart bind9
uji dengan nslookup
4. Install Web server
apt-get install apache2 lynx php5 phpmyadmin mysql-server
masukkan password mysql root (gunakan password yang mudah diingat)
centang apache2
configure phpmyadmin (OK) masukkan password
uji dengan lynx namasiswa.sch.id atau di PC Client (Windows 7) buka browser dan masukkan buka
alamat namasiswa.sch.id
Jika hasilnya menampilkan pesan it works maka konfigurasi web server berhasil

5. Install Mail server

apt-get install postfix


situs internet / internet site
mail system : namasiswa.sch.id
apt-get install courier-imap courier-pop (saat instalasi akan meminta dimasukkan DVD-1 dan DVD-2
secara bergantian dan masukkan perintah apt-cdrom add untuk menambahkan DVD)

Web-based administration pilih ya


Setelah selesai install masukkan perintah maildirmake.courier /etc/skel/Maildir
dpkg-reconfigure postfix
penerima email dikosongi
Other email tambahkan setelah localhost (jangan lupa diberi koma) mail.namasiswa.sch.id
Pilih no
Local network tambahkan 0.0.0.0/0
Procmail pilih no
Mailbox bytes isi 0
Local network +
Protokol ipv4

---EDIT FILE POSTFIX--nano /etc/postfix/main.cf


tambah baris paling bawah : home_mailbox = Maildir/

---RESTART CONF--service postfix restart


service courier-imap restart
service courier-pop restart

---TAMBAH USER--adduser sha1


a1
adduser sha2
a2

---TULIS PESAN--telnet mail.shadisk.sch.id 25


mail from:sha1
rcpt to:sha2 isi pesan - hai sha2 - quit

---CEK INBOX MAIL--telnet mail.namasiswa.sch.id 110


user sha2
pass a2
stat - retr 1 - quit

---SQUIRRELMAIL--install squirrelmail
apt-get install squirrelmail

6. Install Web Mail


---CONFIG WEB MAIL-nano /etc/squirrelmail/apache.conf
tambah baris paling bawah:
<VirtualHost 192.168.2.3:80>
ServerName mail.namasiswa.sch.id
DocumentRoot /usr/share/squirrelmail
</VirtualHost>

--- CONFIG WEB MAIL ---nano /etc/apache2/apache2.conf


tambah baris paling bawah:
#Include the virtual host configurations:
Include sites-enabled/
Include /etc/squirrelmail/apache.conf simpan file
service apache2 restart

Tes di browser PC Client, atur dulu ip virtualbox kemudian buka browser masukkan alamat
mail.namasiswa.sch.id