MAIL Server
Sebelum kita installbeberapa paket yangkita butuhkan, diantaranya adalah “postfix”,”couriermap”,”courier-pop”,”squirrelmail”. Disini saya menginstall keempat paket tersebut dalam satu perintah, namun lebih amannya anda menginstall paket tersebut satu persatu Install packet dan dependency-nya.
debian:~# apt-get install postfix squirrelmail courier-imap courier-pop
1. muncul popup Postfix Configuration pilih Ok
2. lalu pilih Internet Site
3. isikan domail anda
4. muncul configuring Courier-base. Pilih Yes
Edit File “apache2.conf”
debian:~# vim /etc/apache2/apache2.conf
Pada baris terakhir tambahkan kata berikut;
# include the virtual host configuration:
Include /etc/apache2/site-enabled/
Include /etc/squirrelmail/apache.conf
Edif file konfigurasi squirrel.
debian:~# vim /etc/squirrelmail/apache.conf
#users will prefer a simple URL like http://webmail.example.com
#
#DocumentRoot /usr/share/squirrelmail
#SeverName webmail.example.com
#
Ubah baris diatas seperti berikut di bawah.
#users will prefer a simple URL like http://webmail.example.com
DocumentRoot /usr/share/squirrelmailSeverName (isikan domain mail server anda misalkan ‘mail.debian.edu’)
Restart web server (apache).
debian:~# /etc/init.d/apache2 restart
Kemudian pada computer Client Coba buka browser dan ketikkan “mail.debian.edu” maka anda
akan otomatis di-redirect ke alamat “mail.debian.edu/scr/login.php”.
Buat direktori mail.
debian:~# maildirmake /etc/skel/Maildir
Buat 2 User (untuk testing).
Tambahkan dua user eMail, untuk pengujian pada Mail Server nantinya. Pada bagian ini, kita harus terlebih dulu membuat direktori Maildir seperti diatas. Agar setiap user mendapat Maildir secara otomatis.
debian-server:~# adduser manshurin
Adding user `manshurin' ...
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 []: Pudja Mansyurin
Room Number []: 354
Work Phone []:
Home Phone []: 081330487983
Other []: Owner of www.MansyurinIT.co.cc
Is the information correct? [Y/n]
Tambahkan satu user lagi, agar proses berkirim eMail bisa dilaksanakan.
debian-server:~# adduser galipat
Adding user `galipat' ...
Adding new group `galipat' (1008) ...
Adding new user `galipat' (1008) with group `galipat' ...
Creating home directory `/home/galipat' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
Edit file postfix.
debian:~# vim /etc/postfix/main.cf
Dan tambahkan satu baris berikut, di baris paling bawah.
Mailbox_size_limit = 0
Recipient_delimiter = +
Inet_interfaces = all
Inet_protocols = ipv4
Home_mailbox = Maildir
Restart for finishing.
debian:~# /etc/init.d/postfix restart
debian:~# /etc/init.d/courier-imap restart
debian:~# /etc/init.d/courier-pop restart
from: ebook debian server full Pudja Mansyurin
Posting Komentar