Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Konfigurasi Mail Server dan Webserver

Persiapan :

Setting pada DNS (Bind9)

File latihan

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     latiham.sch. root.latihan.sch. (
                                   2         ; Serial
                         604800         ; Refresh
                           86400         ; Retry
                       2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      latihan.sch.
@       IN      MX      10 mail.latihan.sch.
@       IN      A 192.168.10.1
www     IN      A       192.168.10.1
ftp     IN      A       192.168.10.1
mail    IN      A       192.168.10.1

File db.latihan

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     latiham.sch. root.latihan.sch. (
                                   2         ; Serial
                         604800         ; Refresh
                           86400         ; Retry
                       2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      latihan.sch.
1       IN      PTR     latihan.sch.
1       IN      PTR     www.latihan.sch.
1       IN      PTR     ftp.latihan.sch.
1       IN      PTR     mail.latihan.sch.

1. Install Aplikasi Mail Server


Apt-get install postfix courier-pop courier-imap
Pada istall postfix
Pilih OK
Pilih Internetsite
Ketik mail.latihan.sch (sesuai kan pada DNS yang sdh kalian tentukan pada bind9

2. Install squirrelmail
Apt-get install squirrelmail

3. Ketik printah
Maildirmake /etc/skel/Maildir
4. Buat user akun ke dua

Adduser bebas
Password bebas

Tekan Y lalu enter

5. Masukan perintah
Nano /etc/apache2/apache2.conf
Tambahkan pada baris terakhir
Include /etc/squirrelmail/apache.conf
simpan
6. Masukan printah
Nano /etc/squirrelmail/apache.conf
Ketik pada baris terakhir
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.latihan.sch
</VirtualHost>
7. Restart
/etc/init.d/apache2 restart

8. Masukan perintah
dpkg-reconfigure postfix

Genera Type of Mail : internetsite


System Mail : mail.latihan.sch
Root and postmaster mail reciplent : kosongkan
Other destina to acept : kosongkan
Force syncron : no
Local network : 0.0.0.0/0 ( isi pada terakhir kalimat )
Contoh : mail.latihan.sch, localhost.mail.latihan.sch, localhost
0.0.0.0/0
Use Procmail for local delivery : No
Mailbox zize :0
Local extension :+
Interner protokol : Ipv4

9. Masukan perintah
Nano /etc/postfix/main.cf

10.

You might also like