Info Bang Maman
Monday, 22 Apr 2024
  • BELAJAR BELAJAR DAN BELAJAR SUATU SAAT APA YANG KITA PELAJARI AKAN BERMANFA'AT BUAT DIRI KITA KELUARGA KITA DAN ORANG-ORANG YANG ADA DI SEKITAR KITA

SETTING MAIL SERVER di Ubuntu

Diterbitkan : - Kategori : LINUX

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. Install aplikasi,
a. Postfix
b. Courier-imap
c. Courier-pop
d. Php5
e. Squirrelmail
Root :~ # apt-get install postfix courier-imap courier-pop php5 squirrelmail

Bila tampil menu Configuring courier -base
Pilih No
macam-macam pilihan pada pilihan pada konfig postfix
1. No Configuration = pilihan untuk tidak melakukan penulisan terhadap file konfigurasi postfix
2. Internet site = untuk mengkonfig postfix agar dapat mengirim dan menerima email keserver lain yang ada di internet.
3. Internet with smarthost = sama seperti diatas tapi hanya pengiriman email saja, postfix akan mengrimnya ke smarthost. smarthost adalah server email gateway. untuk pilihan ini kita juga harus mengkonfig pada server email yaitu smarthost nya juga.
4. satelite System = postfix akan menerima dan mengirim email dari smarthost.
5. Local host = postfix akan dijalankan pada localhost saja..
Lalu keluar Postfix Configuration, pilih internet site

Untuk system mail name, ketiklah mail.albahri.com

2. 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.

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

Root :~ # maildirmake.courier /etc/skel/Maildir (Perhatikan tulisannya)

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

5. 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.

6. Kemudian tambahkan user dengan cara
Root :~ # adduser bangmaman

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 admin
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. Restart service

a. /etc/init.d/postfix restart
b. /etc/init.d/courier-pop restart
c. /etc/init.d/courier-imap restart
d. /etc/init.d/apache2 restart

sampai disini juga sudah email berjalan………….

8. Kemudian bukalah di webbrowser server atau client
www.mail.albahri.com/squirrelmail
kemudian login dengan user yang sudah ditambahkan tadi

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Jika error pada imap maka bisa menggunakan courier dovecot, langkah-langkahnya :

a. Hapus paket courier-imap dan courier-pop

apt-get remove –purge courier-imap
apt-get remove –purge courier-pop

b. Install Dovecot
apt-get install dovecot-imapd dovecot-pop3d

c. trus tambahkan pada nano /etc/dovecot/dovecot.conf

mail_location = maildir:~/MaildirĀ  (perhatikan tulisannya)

d. lalu restart service dovecot

/etc/init.d/dovecot restart

 

Post Terkait

KONFIGURASI WEB SERVER

Thursday, 6 Sep 2018

Pengetesan Konfigurasi Samba

Tuesday, 24 Oct 2017

KONFIGURASI SAMBA SERVER

Tuesday, 24 Oct 2017

SAMBA SERVER

Tuesday, 24 Oct 2017

KONSEP FILE SERVER

Tuesday, 24 Oct 2017

Perintah APT pada Linux Ubuntu

Monday, 16 Oct 2017

Management User dan Group

Sunday, 15 Oct 2017

Perintah Dasar Linux

Sunday, 15 Oct 2017

Perintah SCP pada linux

Wednesday, 11 Oct 2017

Membuat repo ubuntu secara localhost

Saturday, 26 Nov 2016