1. WEB SERVER
·
Install
Paket Web server
root@debian:~# apt-get install apache2
links
·
Setting
Virtual Host
root@debian:~# cd
/etc/apache2/sites-availabel
root@debian:~# cp 000-default www
root@debian:~# nano www
<VirtualHost 192.168.9.2:80>
ServerAdmin webmaster@localhost
ServerName www.smkmuh2.sch.id
kemudian tekan Ctrl + O, enter
(untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
2. WEBMAIL SERVER
·
Install
paket webmail server
debian-server:~# apt-get install
squirrelmail (masukan dvd 1 - 3)
debian-server:~# nano
/etc/apache2/apache2.conf
Include “/etc/squirrelmail/apache.conf”
debian-server:~# nano
/etc/squirrelmail/apache.conf
# users will prefer a simple URL like
http://webmail.example.com
<VirtualHost 192.168.9.3:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.smkmuh2.sch.id
</VirtualHost>
#. . .
3. MAIL SERVER
·
Install
paket mail server
root@debian:~# apt-get install postfix
courier-imap courier-pop
·
Membuat
directory mail server
debian-server:~# maildirmake
/etc/skel/Maildir
Menambahkan user (buat 2 user)
debian-server:~# adduser desy
Adding user `desy' ...
Adding new group `manshurin' (1007)
...
Adding new user `manshurin' (1007)
with group `manshurin' ...
Creating home directory
`/home/manshurin' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: ****
Changing the user information for
manshurin
Enter the new value, or press ENTER
for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
- Konfigurasi Postfix
debian-server:~# nano /etc/postfix/main.cf
myhostname = smkmuh2.sch.id
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = smkmuh2.sch.id, smkmuh2, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.9.3/29
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = smkmuh2.sch.id, smkmuh2, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.9.3/29
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
#Tambahkan pada
baris paling bawah
Selanjutnya, tinggal tambahkan sedikit konfigurasi pada postfix melalui
dpkg. Ikuti langkahnya seperti dibawah ini.
debian-server:~# dpkg-reconfigure
postfix
General Type of Mail Configuration : Internet Site
System Mail Name : smkmuh2.sch.id
Root and postmaster mail recipient : (biarkan kosong)
Other destination to accept... : (pilih ok)
Force synchronous updates... : No
Local Networks : (tambahkan IP address squirrelmail)
Use Procmail for local delivery : No
Mailbox size limit (bytes) : 0
Local address extension character : +
Internet protocols to use : ipv4
debian-server:~# /etc/init.d/postfix
restart
debian-server:~#
/etc/init.d/courier-imap restart
debian-server:~#
/etc/init.d/courier-pop restart
debian-server:~# /etc/init.d/apache2
restart
Selanjutnya, tinggal mengecek apakah konfigurasi kita berhasil
- Cek Web Server
d debian-server:~# links www.smkmuh2.sch.id
debian-server:~# links 192.168.9.2
- Cek Mail Server
debian-server:~# links
mail.smkmuh2sch.id
debian-server:~# links 192.168.9.3
Tidak ada komentar:
Posting Komentar