Local Area Network : IP : 192.168.5.10, Netmask : 255.255.255.0
VirtualBox Host-Only Network : IP : 192.168.5.2, Netmask : 255.255.255.0, Gateway : 192.168.5.1, DNS: 192.168.5.1
Adapter 1 : Bridge Adapter
- nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.5.1
netmask 255.255.255.0
- /etc/init.d/networking restart
- apt-get install bind9 apache2 php5 squirrelmail postfix courier-imap courier-pop vsftpd
- nano /etc/bind/named.conf.local
zone "smknepal.com" {
type master;
file "/etc/bind/1";
};
- nano /etc/resolv.conf
Tambahkan :
search smknepal.com
nameserver 192.168.5.1
- nano /etc/hosts
127.0.0.1 localhost
127.0.0.1 mail.smknepal.com
Ubah menjadi :
127.0.0.1 localhost
192.168.5.1 smknepal.com mail
- cd /etc/bind
- cp db.local 1
- nano 1
Ubah semua "localhost" menjadi "smknepal.com"
@ IN NS smknepal.com
@ IN A 192.168.5.1
www IN A 192.168.5.1
smknepal IN A 192.168.5.1
- /etc/init.d/bind9 restart
- nano /etc/apache2/sites-available/default
Cari :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
Ubah menjadi :
ServerAdmin webmaster@localhost
ServerName www.smknepal.com
DocumentRoot /home/smknepal/
- nano /etc/apache2/apache2.conf
Tambahkan paling bawah :
Include /etc/squirrelmail/apache.conf
- nano /etc/squirrelmail/apache.conf
Cari :
Alias /squirrelmail /usr/share/squirrelmail
Ubah menjadi :
Alias /surat /usr/share/squirrelmail
Cari :
#<VirtualHost 1.2.3.4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>
Ubah menjadi :
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName smknepal.com
</VirtualHost>
- nano /home/smknepal/index.php
Tambahkan :
<?php
print "<b>SMKN 4 Padalarang<b>";
?>
- /etc/init.d/apache2 restart
- nano /etc/postfix/main.cf
tambah "192.168.5.0/24" di akhir "network = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::2]/128"
tambah "#" di awal "mailbox_command = procmail -a "$EXTENSION""
inet_protocols = all
home_mailbox = Maildir/
- maildirmake /etc/skel/Maildir
- cd /etc/skel/Maildir/
- squirrelmail-configure
D -> courier -> S -> Q
- /etc/init.d/courier-imap restart
- /etc/init.d/courier-pop restart
- cd /etc/skel
- adduser sender
- adduser receiver
* Cek di Client (VirtualBox XP) dengan IP :
Local Area Network : IP : 192.168.5.11 255.255.255.0
VirtualBox Host-Only Network : IP : 192.168.5.3, Netmask : 255.255.255.0, Gateway : 192.168.5.1, DNS: 192.168.5.1
Adapter 1 : Internal Network
Tes menggunakan Microsoft Outlook, Buka Ms. Outlook -> Pilih "Microsoft Exchange, POP3, IMAP, or HTTP" -> Next -> Pilih "Manually configure server settings or additional server types" -> Next -> Pilih "Internet E-mail" -> Your Name : SMKN 4 Padalarang -> E-mail Address : smknepal@smknepal.com -> Account Type : POP3 -> Incoming mail server : www.smknepal.com -> Outgoing mail server (SMTP) : www.smknepal.com -> User Name : smknepal -> Password : 1234 -> Ceklist "Require logon using Secure Password Authentication (SPA) -> Next -> Finish
Tes Ms.Outlook, Pilih "New" -> Pilih "Mail Message" -> Isikan di kolom "To.." : receiver@smknepal.com -> Isikan Kolom "Subject:" : Bebas -> Isikan kolom isian pesan apa yang akan di kirimkan : Bebas -> Klik "Send"
Lihat di web Browser (Buka Squirrelmail : Receiver)
VirtualBox Host-Only Network : IP : 192.168.5.2, Netmask : 255.255.255.0, Gateway : 192.168.5.1, DNS: 192.168.5.1
Adapter 1 : Bridge Adapter
- nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.5.1
netmask 255.255.255.0
- /etc/init.d/networking restart
- apt-get install bind9 apache2 php5 squirrelmail postfix courier-imap courier-pop vsftpd
- nano /etc/bind/named.conf.local
zone "smknepal.com" {
type master;
file "/etc/bind/1";
};
- nano /etc/resolv.conf
Tambahkan :
search smknepal.com
nameserver 192.168.5.1
- nano /etc/hosts
127.0.0.1 localhost
127.0.0.1 mail.smknepal.com
Ubah menjadi :
127.0.0.1 localhost
192.168.5.1 smknepal.com mail
- cd /etc/bind
- cp db.local 1
- nano 1
Ubah semua "localhost" menjadi "smknepal.com"
@ IN NS smknepal.com
@ IN A 192.168.5.1
www IN A 192.168.5.1
smknepal IN A 192.168.5.1
- /etc/init.d/bind9 restart
- nano /etc/apache2/sites-available/default
Cari :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
Ubah menjadi :
ServerAdmin webmaster@localhost
ServerName www.smknepal.com
DocumentRoot /home/smknepal/
- nano /etc/apache2/apache2.conf
Tambahkan paling bawah :
Include /etc/squirrelmail/apache.conf
- nano /etc/squirrelmail/apache.conf
Cari :
Alias /squirrelmail /usr/share/squirrelmail
Ubah menjadi :
Alias /surat /usr/share/squirrelmail
Cari :
#<VirtualHost 1.2.3.4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>
Ubah menjadi :
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName smknepal.com
</VirtualHost>
- nano /home/smknepal/index.php
Tambahkan :
<?php
print "<b>SMKN 4 Padalarang<b>";
?>
- /etc/init.d/apache2 restart
- nano /etc/postfix/main.cf
tambah "192.168.5.0/24" di akhir "network = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::2]/128"
tambah "#" di awal "mailbox_command = procmail -a "$EXTENSION""
inet_protocols = all
home_mailbox = Maildir/
- maildirmake /etc/skel/Maildir
- cd /etc/skel/Maildir/
- squirrelmail-configure
D -> courier -> S -> Q
- /etc/init.d/courier-imap restart
- /etc/init.d/courier-pop restart
- cd /etc/skel
- adduser sender
- adduser receiver
* Cek di Client (VirtualBox XP) dengan IP :
Local Area Network : IP : 192.168.5.11 255.255.255.0
VirtualBox Host-Only Network : IP : 192.168.5.3, Netmask : 255.255.255.0, Gateway : 192.168.5.1, DNS: 192.168.5.1
Adapter 1 : Internal Network
Tes menggunakan Microsoft Outlook, Buka Ms. Outlook -> Pilih "Microsoft Exchange, POP3, IMAP, or HTTP" -> Next -> Pilih "Manually configure server settings or additional server types" -> Next -> Pilih "Internet E-mail" -> Your Name : SMKN 4 Padalarang -> E-mail Address : smknepal@smknepal.com -> Account Type : POP3 -> Incoming mail server : www.smknepal.com -> Outgoing mail server (SMTP) : www.smknepal.com -> User Name : smknepal -> Password : 1234 -> Ceklist "Require logon using Secure Password Authentication (SPA) -> Next -> Finish
Tes Ms.Outlook, Pilih "New" -> Pilih "Mail Message" -> Isikan di kolom "To.." : receiver@smknepal.com -> Isikan Kolom "Subject:" : Bebas -> Isikan kolom isian pesan apa yang akan di kirimkan : Bebas -> Klik "Send"
Lihat di web Browser (Buka Squirrelmail : Receiver)
0 komentar:
Posting Komentar