Konfigurasi Webmail Roundcube di Debian 11

 



1. Klik kanan Master Debian 11 > Clone

2. Klik Setting > Network > Adapter 2 > Bridged Adapter > Allow All

3. nano /etc/network/interfaces
    auto enp0s3
    iface enp0s3 inet dhcp
    
    auto enp0s8
    iface enp0s8 inet static
        address 192.168.50.1/24

4. systemctl restart networking

5. ip a (lihat dan ingat alamat yang sudah dibuat)

6. apt install bind9 bind9utils

7. cd /etc/bind

8. nano named.conf.default-zones

9.  Tambahkan dibaris paling bawah :
    zone "smkmutu.net" {
                type master;
                file "/etc/bind/db.smkmutu";
                };
 
        zone "50.168.192.in-addr.arpa" {
                type master;
                file "/etc/bind/db.1";
                } ;

    Simpan ctrl + X, tekan Y, tekan Enter

10.      cp db.local db.smkmutu
    cp db.127 db.1

11. nano db.1
        
        tekan ctrl + \
        ketik localhost (enter)
        ketik smkmutu.net (enter)
        tekan A
 
        (ganti di bawah NS smkmutu.net)
        @                 IN            NS               smkmutu.net.
         1                  IN            PTR             smkmutu.net.
        
 
        Simpan ctrl + X, tekan Y, tekan Enter

12. nano db.smkmutu

        tekan ctrl + \
        ketik localhost (enter)
        ketik smkmutu.net (enter)
        tekan A
 
        (ganti di bawah NS smkmutu.net)
        @                   IN            NS                smkmutu.net.
        @                   IN            A                  192.168.50.1
        www              IN            A                  192.168.50.1
        mail               IN            CNAME    www

    Simpan ctrl + X, tekan Y, tekan Enter

13. systemctl restart named

14. nano /etc/resolv.conf
    nameserver 192.168.50.1

15.     nslookup 192.168.50.1
    nslookup smkmutu.net
    nslookup mail.smkmutu.net

16. apt install apache2

17. cd

18. apt install php phpmyadmin
    tekan spasi untuk memilih apache2
    configure database = yes
    Mysql aplication password = 123456
    Password Confirmation = 123456
    Password of the Database = 123456
    abort
    
19. cd /etc/phpmyadmin

20. cp apache.conf /etc/apache2/sites-available/

21. cd

22. a2ensite apache.conf

23. systemctl restart apache2

24. apt install mariadb-server
    configure database = yes
    Password of the Database = 123456
    abort
25. mariadb -u root -p
    enter Password = 123456
    use mysql;
    create database roundcube;
    exit

26. apt install dovecot-imapd
    configure database = yes
    
27. nano /etc/dovecot/conf.d/10-mail.conf
    mail_location = maildir:~/Maildir (hapus pagar)
    #mail_location = mbox:~/mail:INBOX=/var/mail/%u (kasih pagar)
    
    Simpan ctrl + X, tekan Y, tekan Enter

28. apt install postfix
    general type = internet site
    system mail name = smkmutu.net

29. nano /etc/postfix/main.cf
    Tambahkan paling bawah :
    home_mailbox = Maildir/

30. maildirmake.dovecot /etc/skel/Maildir

31. dpkg-reconfigure postfix
    general type = internet site
    system mail name = smkmutu.net
    Root = enter
    Other Destination = smkmutu.net, localhost
    Force = no
    Local network = 192.168.50.0/24, 0.0.0.0/0
    Mailbox = ok
    Local Address = ok
    Internet protocol = all
    
32. apt install roundcube
    Configure database = yes
    Mysql application password = 123456

    Password confirmation = 123456
    
33. dpkg-reconfigure roundcube-core
    IMAP = smkmutu.net
    en_US = ok
    Reinstall Database = yes
    connection method = TCP/IP
    Hostname = localhost
    Port number = ok
    Authentication = default
    Mysql Database = ok
    Mysql username = ok
    Mysql Apllication password = 123456
    Password Confirmation = 123456
    Name of database = ok
    Web server = ok
    Should the webserver = yes
    
34. nano /etc/roundcube/config.inc.php
    $config['smtp_port']= 25;
    $config['smtp_user']= '';
    $config['smtp_pass']= ''; 
       
     Simpan ctrl + X, tekan Y, tekan Enter

35. nano /etc/apache2/apache2.conf
    Tambahkan di baris paling bawah :
    <Directory /var/lib/roundcube>
        Options Indexes FoolowSymLinks
        AllowOverride None
        Require all granted
    </Directory>

36. nano /etc/apache2/sites-available/000-default.conf
    ServerName mail.smkmutu.net   
    ServerAdmin webmaster@localhost
    DocumentRoot /var/lib/roundcube

    Simpan ctrl + X, tekan Y, tekan Enter

37. mariadb-secure-installation
        New password : 123456
        Tekan y dan enter, begitu seterusnya

38. adduser andi
      adduser anto

39. reboot

40.     Ganti alamat di PC
    Ketik di browser : mail.smkmutu.net


Donni Zulhardi

Tunjukilah kami jalan yang lurus

Posting Komentar (0)
Lebih baru Lebih lama