Rangkuman Mail Server Pada Debian – 3

23
Nov 2023
Category : Cisco
Author : admin
Views : 237x

Sebelum anda melakukan setting email 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. Paket yang di install
a. Postfix
b. Dovecot-imapd dovecot-pop3d
c. Php5
d. Squirrelmail  >>> DVD 2

=====================================

2. Install Paket

  • apt-get install  postfix dovecot-imapd dovecot-pop3d Php5 Squirrelmail

=====================================

3. Tambahkan pada file dovecot   >>> nano /etc/dovecot/dovecot.conf

mail_location = maildir:~/Maildir  (perhatikan tulisannya)

Ctrl + x, y, enter untuk menyimpan konfigurasi.

=====================================

4. Konfigurasi postfix pada file main.cf

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

Tambahkan pada baris terakhir ;

home_mailbox = Maildir/ (Perhatikan tulisannya)

Ctrl + x, y, enter untuk menyimpan konfigurasi.

====== ===============================

5. Konfigurasi squirrelmail
Buat konfigurasi untuk squirrelmail.
Root :~ # dpkg-reconfigure postfix
a. root and postmaster mail receipt ? Kosongkan saja
b. Other destination….. bangmaman.com, mail.bangmaman.com
c. Force syncronous NO
d . Local Ntework OK
e. Limit mailbox 0
f. Local address +
g. Internet Protocol ipv4

=====================================

6. Buatlah Virtualhost squirrelmail dengan cara edit /etc/apache2/apache2.conf
Root :~ # nano /etc/apache2/apache2.conf

Pada baris terakhir tambahkan,

Include /etc/squirrelmail/apache.conf

Ctrl + x, y, enter untuk menyimpan konfigurasi.

=====================================

7. Kemudian tambahkan user dengan cara
Root :~ # adduser siswa

Adding user `’ …
Adding new group `bangmaman’ (1003) …
Adding new user `bangmaman’ (1003) with group `bangmaman’ …
Creating home directory `/home/bangmaman’ …
Copying files from `/etc/skel’ …
Enter new UNIX password: 1234
Retype new UNIX password: 1234
passwd: password updated successfully
Changing the user information for bangmaman
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,

Root :~ # adduser guru
Adding user `admin’ …
Adding new group `admin’ (1003) …
Adding new user `admin’ (1003) with group `admin’ …
Creating home directory `/home/admin’ …
Copying files from `/etc/skel’ …
Enter new UNIX password: 1234
Retype new UNIX password: 1234
passwd: password updated successfully
Changing the user information for albahri
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

=====================================

7. Merubah alamat url agar tidak menjadi bangmaman.web.id/squirrelmail menjadi mail.bangmaman.web.id
nano /etc/squirrelmail/apache.conf
#<VirtualHost 1 2 3 4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>
Menjadi
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.bangmaman.com
</VirtualHost>

=====================================

8. Restart service

  • /etc/init.d/postfix restart
  • /etc/init.d/apache2 restart
  • /etc/init.d/dovecot restart

sampai disini juga sudah email berjalan………….

=====================================

9. Tambahkan pada bind mail

pada db.95

pada db.bangmaman

Restart bind  >> /etc/init.d/bind9 restart

=====================================

10. Kemudian bukalah di webbrowser server atau client
   >>>>>> www.mail.bangmaman.com
kemudian login dengan user yang sudah ditambahkan tadi

 

==============================================

Hal – hal yang harus diperhatikan :

  1. Pastikan Remove courier yang lain
  • apt-get –purge remove courier-pop
  • apt-get –purge removecourier-imap
× Ada yang bisa saya bantu.