Monday, June 17, 2013

konfigurasi E-mail Server pada Debian 5.0

Sebelum anda melakukan setting DNS Server, ada beberapa hal yang harus anda lakukan, yaitu :
•    Menginstall  aplikasi MAIL server
•    Membuat konfigurasi main.cf pada directory  /etc/postfix/
•    Membuat maindir
•    Membuat konfigurasi squirrelmail

1. Install aplikasi
  • Postfix
  • Courier-imap
  • Courier-pop
  • Php5
  • Squirrelmail
Root :~ # apt-get install postfix courier-imap courier-pop php5 squirrelmail

Bila tampil menu Configuring courier -base
Pilih No

Lalu keluar Postfix Configuration, pilih Local Only (sebab kita hanya akan menginstall mail server dalam skala local sebagai uji coba dahulu).

Untuk system mail name,  ketiklah mail.dilem4.ac.id



2. Konfigurasi postfix pada file main.cf

Root :~ # gedit /etc/postfix/main.cf

Tambahkan tanda # pada bagian mydestination dan mailbox_command.

Tambahkan pada baris terakhir ;

home_mailbox = Maildir/

Ctrl + x, y, enter  untuk menyimpan konfigurasi.



3. Kemudian buatlah direktori Maildir pada Direktory /etc/skel ;

Root :~ #  maildirmake /etc/skel/Maildir
4.    Konfigurasi squirrelmail

Root :~ # squirrelmail-configure

Masukkan command
Command >>d
Lalu ketik courier
Command >>courier
Lalu akan keluar konfigurasi ;
imap_server_type = courier
default_folder_prefix = INBOX.
trash_folder = Trash
sent_folder = Sent
draft_folder = Drafts
show_prefix_option = false
default_sub_of_inbox = false
show_contain_subfolders_option = false
optional_delimiter = .
delete_folder = true
Press any key to continue...
Tekan enter
Save data
Command >>s
Lalu Quit
Command >>q

5.    Buatlah Virtualhost squirrelmail dengan cara edit /etc/apache2/apache2.conf

Root :~ # gedit /etc/apache2/apache2.conf
Pada baris terakhir tambahkan,

Include /etc/squirrelmail/apache.conf
Ctrl + x, y, enter  untuk menyimpan konfigurasi.

6.    Restart Apache

Root :~ # /etc/init.d/apache2 restart
7.    Kemudian tambahkan user dengan cara

Root :~ #  adduser dilem4

Adding user `dilem4' ...
Adding new group `linux' (1003) ...
Adding new user `linux' (1003) with group `linux' ...
Creating home directory `/home/linux' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: ******
Retype new UNIX password: ******
passwd: password updated successfully
Changing the user information for mahasiswa
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
Tambahkan user baru lagi,


8.    Kemudian bukalah di webbrowser server atau client

www.mail.dilem4.ac.id/squirrelmail
kemudian login dengan user yang sudah ditambahkan tadi








No comments:

Post a Comment