0% found this document useful (0 votes)
2 views2 pages

Mail Server

The document outlines the steps to install and configure a mail server using Postfix and Dovecot, including creating mail users and setting up Roundcube for webmail access. It also details the installation of a web server and database, as well as the necessary configurations for each component. Finally, it includes instructions for testing the setup after configuration is complete.

Uploaded by

pkl046163
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Mail Server

The document outlines the steps to install and configure a mail server using Postfix and Dovecot, including creating mail users and setting up Roundcube for webmail access. It also details the installation of a web server and database, as well as the necessary configurations for each component. Finally, it includes instructions for testing the setup after configuration is complete.

Uploaded by

pkl046163
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Kebutuhan Install Mail Server

- Install Web Server


- Install Database
- Install PHP
- Install DNS

1. Install mail server


- apt install postfix dovecot-pop3d dovecot-imapd
ikuti perintahnya pilih "Internet Site"
2. konfugurasi ulang postfix
- dpkg-reconfigure postfix
3. edit file main.cf
- cd /etc/postfix
- nano main.cf
tambahkan paling bawah perintah ini
- home_mailbox = Maildir/
4. edit dovecot.conf
- cd /etc/dovecot
- nano dovecot.conf
listen = *
5. edit file 10-auth.conf, 10-mail.conf
- cd /etc/dovecot/conf.d
- nano 10-auth.conf
ubah #disable_plaintext-auth = no
- nano 10-mail.conf
hapus tanda pagar pada perintah #mail_location = maildir:~/Maildir
tambahkan tanda pagar pada #mail_location = mbox:~/mail:INBOX=/var/mail/%u

Membuat user mail


- adduser usermail1
- adduser usermail2
- maildirmake.dovecot /etc/skel/Maildir
- lakukan reboot

Buat database untuk roundcube


- mysql -u user -p
- create user 'roundcube'@'localhost' identified by '123456';
- grant all privileges on *.* to 'roundcube'@'localhost';
- flush privileges;
- quit

Install web mail Roundcube


masukan DVD-3
- apt-cdrom add
- apt install roundcube (ikuti perintah jika diminta memasukan dvd lain)
- yes
- masukan password 123456
- cd /etc/roundcube
edit file config.inc.php
- nano config.inc.php
- smtp_server isi dengan domain misal tkjypc.co.id
- default_host isi dengan domain misal tkjypc.co.id
- smtp_user hapus tanda "%u"
- smtp_pass hapus tanda "%u"

Konfigurasi Webserver
masuk ke direktori konfigurasi webserver
- cd /etc/apache2/sites-available/
- copy 000-default.conf
- cp 000-default.conf roundcube.conf
- nano roundcube.conf
ganti ServerName jadi mail.tkjypc.co.id
ubah DocumentRoot jadi /var/lib/roundcube
aktifkan virtualhost roundcube.conf
- a2ensite roundcube.conf
lalu restart webserver
- systemctl restart apache2

PENGUJIAN

You might also like