1. buka virtubox, ubah adapter ke NAT
2. buka #nano /etc/network/interfaces
(berikan tanda pagar)
3. tutup dan mulai lagi debian (#ping google.com)
6. #nano /etc/bind/db.local
ganti menjadi seperti dibawah ini
@ IN SOA tkjhore.com. root.tkjhore.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkjhore.com.
@ IN A 192.168.1.1
www IN A 192.168.1.1
mail IN A 192.168.1.1
7. #nano /etc/bind/db.127
ganti menjadi seperti dibawah ini
@ IN SOA tkjhore.com. root.tkjhore.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkjhore.com.
1 IN PTR tkjhore.com.
1 IN PTR mail.tkjhore.com.
8. #systemctl restart bind9
9. #nslookup 192.168.1.1
#nslookup mail.tkjhore.com.
10. #apt install postfix dovecot-imapd dovecot-pop3d
pilih : internet site
ketik : kelas11tkj.xyz
11. #dpkg-reconfigure postfix
General type : internet site
System mail : kelas11tkj.xyz
Root and postmaster : enter
Other destionations : enter
Force synchronous : no
Local networks tambahkan : 0.0.0.0/0
Mail size : enter
Local address : enter
Internet protocols : ipv4
12. #cd /etc/postfix
#nano main.cf
(di paling bawah tambahkan)
home_mailbox = Maildir/
13. #cd /etc/dovecot
#nano dovecot.conf
(cari #listen = *, ::)
hapus pagarnya menjadi
listen = *
14. #cd conf.d
#nano 10-auth.conf
(cari #disable_plaintext_auth=yes)
hapus pagarnya menjadi
disable_plaintext_auth=no
15. #nano 10-mail.conf
(cari #mail_location = maildir:~/Maildir)
hapus pagarnya menjadi
mail_location = maildir:~/Maildir
16. cari mail_location = mbox:~/mail:INBOX=/var/mail/%u)
berikan pagar menjadi
#mail_location = mbox:~/mail:INBOX=/var/mail/%u
17. #adduser user1
password user1
full name, room, phone, other Enter aja
yes
#adduser user2
password user2
full name, room, phone, other, Enter aja
yes
18. #maildirmake.dovecot /etc/skel/Maildir
19. #/etc/init.d/postfix reload
#/etc/init.d/postfix restart
#/etc/init.d/dovecot restart
20. #telnet localhost 25
mail from: user1
rcpt to: user2
data
isi mail end
.
quit
21. #telnet localhost 110
user user2
pass user2
stat
retr 1
quit
(diatas adalah pengujian menggunakan telnet)
22. #mysql -u root -p
(password 12345)
>create user 'roundcube'@localhost identified by '12345';
>grant all privileges on *.* to 'roundcube'@localhost;
>flush privileges;
>exit;
23. #apt install roundcube
Configure database : yes
MySQL application password : 12345
Password : 12345
24. #cd /etc/roundcube
#nano config.inc.php
cari $config['smtp_server'] = 'localhost';
ganti localhost menjadi tls://kelas11tkj.xyz seperti berikut
$config['smtp_server'] = 'tls://kelas11tkj.xyz';
25. cari $config['default_host'] = '';
isi kelas11tkj.xyz pada tanda petik seperti berikut
$config['default_host'] = 'kelas11tkj.xyz';
26. cari $config['smtp_port'] = 587;
ubah 587 menjadi 25 seperti berikut
$config['smtp_port'] = 25;
27. cari $config['smtp_user'] = '%u';
hapus %u
cari $config['smtp_pass'] = '%p';
hapus %p
28. #cd /etc/apache2/sites-available
#cp 000-default.conf main.conf
#nano main.conf
cari #ServerName www.example.com
ganti menjadi seperti berikut ServerName mail.kelas11tkj.xyz
cari DocumentRoot /var/www/
ganti menjadi DocumentRoot /var/lib/roundcube
29. #nano /etc/apache2/apache2.conf
- di paling bawah tambahkan
<Directory /var/lib/roundcube/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
30. #nano /etc/resolv.conf
nameserver 192.168.1.1
31. #nano /etc/network/interfaces
hapus pagar dari auto sampai dns
32. #a2ensite main.conf
#/etc/init.d/apache2 reload
#/etc/init.d/apache2 restart
#/etc/init.d/postfix restart
#/etc/init.d/dovecot restart
33. #reboot atau #sudo reboot
34. #ping 192.168.1.2
- ujicoba
buka di browser windows :
mail.kelas11tkj.xyz
login: user1
pass: user1
- Home
- catatankelas11
- catatankelas12
- Mail Server
Mail Server
Langganan:
Posting Komentar (Atom)
Posting Komentar