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