Mail Server
Cara Setting Mail Server Di Ubuntu 12.04
silahkan membaca :v
IP Server: 192.168.100.206
Domain: ayokoding.com
Sebelum itu kalian harus setting web server terlebih dahulu...
nah baru bisa di mulai...
1.Install DNS Server
langkah pertama adalah mengkonfigurasi nama domain yang akan di gunakan
sudo apt-get install bind9
2.Konfigurasi DNS Server
cd /etc/bind
sudo nano named.conf.local
Tambahkan baris kode di bawah
zone "ayokoding.com" {
type master;
file "/etc/bind/db.ayokoding";
};
zone "100.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/rev.ayokoding";
};
3.Kemudian copy file dibawah dengan nama fileyang udah di tuliskan di atas.
sudo cp db.local db.ayokoding
sudo cp db.127 rev.ayokoding
sudo nano db.ayokoding
sudo nano rev.ayokoding
maka akan menghasilkan:
Hasilnya
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ayokoding.com. root.ayokoding.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ayokoding.com.
@ IN A 192.168.100.206
ns IN A 192.168.100.206
www IN A 192.168.100.206
mail IN A 192.168.100.206
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ayokoding.com. root.ayokoding.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ayokoding.com.
200 IN PTR ayokoding.com.
ns IN PTR 192.168.100.206
www IN PTR 192.168.100.206
mail IN PTR 192.168.100.206
Edit file /etc/resolv.conf
sudo nano /etc/resolv.conf
nameserver 192.168.100.206
search mawi-server.com
sudo /etc/init.d/bind9 restart
Uji Domain yang sudah di buat
#nslookup mawi-server.com
hasil.....
Server: 192.168.100.206
Address: 192.168.100.206#53
Name: mawi-server.com
Address: 192.168.100.206
4. Install Mail Server
sudo apt-get install postfix

Komentar
Posting Komentar