Langkah-langkah konfigurasi mail server dan web mail
1.
Setting jaringan
# pico /etc/network/interfaces
Auto lo
Ifacelo eth0 inet
static
address 192.168.1.45
netmask 255.255.255.0
gateway 192.168.1.254
#/etc/init.d/networking restart
#pico /etc/resolv.conf
nameserver 8.8.8.8
nameserver 192.168.1.45
2. Membuat
virtual address
#ifconfig eth0:0 192.168.1.46
3. Setting
update debian
deb-src
http://ftp.us.debian.org/debian/squeeze
main contrib
#apt-get update
#apt-get
install w3m
4. #apt-get
install bind9
#pico
/etc/bind/named.conf.default-zones
Zone”smkdoko.sch.id”{
Type master;
File”/etc/bind/db.smk”
Zone”192.in-addr.arpa”
Type master;
File”/etc/bind/db.192”{
#cp
/etc/bind/db.local /etc/bind/db.smk
#Pico /etc/bind/db.smk
@ IN SOA smkdoko.sch.id. root.smkdoko.sch.id.(
@ IN NS smkdoko.sch.id.
@ IN A 192.168.1.45
www IN A 192.168.1.45
mail IN A 192.168.1.46
#cp
/etc/bind/db.127 /etc/bind/db.192
#pico
/etc/bind/db.192
@ IN SOA smkdoko.sch.id. root.smkdoko.sch.id.(
@ IN NS smkdoko.sch.id.
@ IN PTR smkdoko.SCH.ID
45.1.168 IN A smkdoko.SCH.ID
46.1.168 IN A mail.smkdoko.sch.id
#/etc/init.d/bind9
restart
5. Instalasi
Web Server
#apt –get install
apache2
#ping
smkdoko.sch.id
#ping
mail.smkdoko.sch.id
6. #apt-get
install postfix courier-imap courier-pop squirrelmail
#pico
/etc/postfix/main.cf
Myhostname = mail.smkdoko.sch.id
Mydomain
= smkdoko.sch.id
Alias_maps
=hash:/etc/aliases
Alias_database = hash:/etc/aliases
Myorigin =/etc/mailname
Mydestination = smkdoko.sch.id,
debian,localhost.localdomain, localhost
Relayhost =
Mynetwork=127.0.0.0/8 [::ffff:127.0.0.0]/104
[::1]/128 0.0.0.0/0
Mailbox_size_limit = 0
Recipient_delimiter = +
Inet_interfaces = all
Home_mailbox = maildir/
Inet_protocols = ipv4
Default_transport = smtp
Relay_transport = smtp
#maildirmake
Maildir
#adduser
budi1
Pass dll
#adduser
budi2
Pass dll
#dpkg-reconfigure
postfix
#/etc/init.d/postfix
restart
#/etc/init.d/courier-imap
restart
#/etc/init.d/courier-pop
restart
#apt-get
install telnet
#/etc/init.d/postfix
reload
#pico
/etc/network/interfaces
HAPUS GATEWAY PADA SETINGAN INTERFACES
#pico
/etc/resolv.conf
GANTI GATEWAY DENGAN IP SENDIRI (192.168.1.45)
#telnet
mail.smkdoko.sch.id 25
Mail from: budi1
Rcpt to :
budi2
Data
Subject:kirim
email
(isi email
yang akan dikirim contoh budi koplak budo koplak)
.(titik)
Quit
#telnet
mail.smkdoko.sch.id 110
User budi2
Pass 123
Stst
+OK 1 2364
Retr 1
Quit
#/etc/apache2/apache.conf
Isikan paling
bawah :
Include”/etc/squirrelmail/apache.conf”
#pico
/etc/squirrelmail/apache.apache.conf
<virtualHost 192.168.1.46 *:80>
documentRoot
/usr/share/squirrelmail
servername
mail.smkdoko.sch.id
<virtualHost>
#/etc/init.d/apache2
restart
setting di komputer client (windows)
ip address 192.168.1.44
netmask 255.255.255.0
gateway 192.168.1.45
dns server 192.168.1.45
buka browser ketikkan di address
mail.smkdoko.sch.id
login dengan user yang kita buat tadi



