Install Multi Server Carbonio CE – LDAP Server

Install Multi Server Carbonio CE – LDAP Server

Carbonio CE - LDAP ServerInstall Multi Server Carbonio CE – LDAP Server, Multi Server pada carbonio CE adalah memisahkan semua service Carbonio CE ke dalam beberapa server. Mode Multi Server dibutuhkan ketika mode single server sudah tidak cukup performanya untuk operasional email dikarenakan semakin banyak penambahan user baru. Pada Mode Multi Server, mailbox server dibuat lebih dari 1 server, tiap user di tempatkan disalah satu mailbox server. Pada artikel di bawah ini menjelaskan dasar instalasi untuk mode multi server, memisahkan service Carbonio CE kedalam beberapa server sebagai berikut:

Daftar Server
1. ldap.saad.my.id – IP Address 172.168.10.11
2. mailbox.saad.my.id – IP Address 172.168.10.12
3. proxymta.saad.my.id – IP Address 172.168.10.13

Sistem Operasi
1. Ubuntu 22.04

Daftar Artikel
1. LDAP Server – https://saad.web.id/2024/09/install-multi-server-carbonio-ce-ldap-server/
2. Mailbox Server – https://saad.web.id/2024/09/install-multi-server-carbonio-ce-mailbox-server/
3. ProxyMTA Server – https://saad.web.id/2024/09/install-multi-server-carbonio-ce-proxymta-server/

Tahap Instalasi Multi Server Carbonio ldap.saad.my.id

1. Setting Hostname

hostnamectl set-hostname ldap.saad.my.id

2. Setting TimeZone

timedatectl set-timezone Asia/Jakarta

3. Update repo

apt-get update

4. Ubah hosts

nano /etc/hosts

masukan berikut pada baris paling atas:

172.168.10.11 ldap.saad.my.id ldap
172.168.10.12 mailbox.saad.my.id mailbox
172.168.10.13 proxymta.saad.my.id proxymta

5. Ubah resolve.conf

sudo apt-get install resolvconf -y
systemctl enable resolvconf
systemctl start resolvconf

edit file head

nano /etc/resolvconf/resolv.conf.d/head

masukan baris berikut

search saad.my.id
nameserver 172.168.10.11

masukan perintah berikut

sudo resolvconf --enable-updates
sudo resolvconf -u

6. Bikin Zone domain di DNS

sed -i '/directory*/a\        forwarders {8.8.8.8; 8.8.4.4;};' /etc/bind/named.conf.options;
sed -i '/listen-on-v6*/a\        allow-recursion { any; };' /etc/bind/named.conf.options;
sed -i '/listen-on-v6*/a\        allow-query { any; };' /etc/bind/named.conf.options;
sed -i '/listen-on-v6*/a\        allow-query-cache { any; };' /etc/bind/named.conf.options;

edit file /etc/bind/named.conf.local masukan berikut

zone  "saad.my.id" {
        type master;
                file "/var/lib/bind/saad.my.id.hosts";
        allow-transfer {
                127.0.0.1;
                localnets;
                };
        };

basukan baris berikut pada /var/lib/bind/saad.my.id.hosts

$ttl 3600
@      IN      SOA     ldap.saad.my.id. root.ldap.saad.my.id. (
                        1615364925
                        3600
                        600
                        1209600
                        3600 )
saad.my.id.       IN      NS      ldap.saad.my.id.
ldap.saad.my.id.     IN      A    172.168.10.11
mailbox.saad.my.id.  IN      A    172.168.10.12 
proxymta.saad.my.id. IN      A    172.168.10.13 
saad.my.id.       IN      MX      10 proxymta  

restart service bind9

systemctl restart named
systemctl enable named

7. Download Repo Zextras

cd /opt/
wget https://repo.zextras.io/inst_repo_ubuntu.sh
chmod +x /opt/inst_repo_ubuntu.sh
bash /opt/inst_repo_ubuntu.sh

8. Install Postgresq

sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget -O- "https://www.postgresql.org/media/keys/ACCC4CF8.asc" | gpg --dearmor | sudo tee /usr/share/keyrings/postgres.gpg 
chmod 644 /usr/share/keyrings/postgres.gpg
sed -i 's/deb/deb [signed-by=\/usr\/share\/keyrings\/postgres.gpg] /' /etc/apt/sources.list.d/pgdg.list
apt update
apt install postgresql-16 -y

9. Konfigurasi Postgresql

read -s -p "Insert Password DB:" DB_ADM_PWD

Masukan password untuk super user postgresql

su - postgres -c "psql --command=\"CREATE ROLE carbonio_adm WITH LOGIN SUPERUSER encrypted password '$DB_ADM_PWD';\""
su - postgres -c "psql --command=\"CREATE DATABASE carbonio_adm owner carbonio_adm;\""
su - postgres -c "psql --command=\"ALTER SYSTEM SET listen_addresses TO '*';\""
su - postgres -c "psql --command=\"ALTER SYSTEM SET max_connections = 500;\""
su - postgres -c "psql --command=\"ALTER SYSTEM SET shared_buffers = 5000;\""
echo "host    all             all             0.0.0.0/0            md5" >> /etc/postgresql/16/main/pg_hba.conf

restart postgreysql

systemctl restart postgresql

10. Instalasi Ldap Carbonio CE

apt install service-discover-server carbonio-directory-server carbonio-files-db carbonio-mailbox-db carbonio-docs-connector-db carbonio-tasks-db carbonio-message-dispatcher-db carbonio-ws-collaboration-db -y

11. Jalankan konfigurasi ldap Carbonio CE

carbonio-bootstrap

12. Jalankan service discover

service-discover setup-wizard

masukan ip address 172.168.10.11/24
13. Jalankan pending setups

pending-setups -a

14. Konfigurasi DB Carbonio

PGPASSWORD=$DB_ADM_PWD carbonio-files-db-bootstrap carbonio_adm 127.0.0.1
PGPASSWORD=$DB_ADM_PWD carbonio-tasks-db-bootstrap carbonio_adm 127.0.0.1
PGPASSWORD=$DB_ADM_PWD carbonio-ws-collaboration-db-bootstrap carbonio_adm 127.0.0.1
PGPASSWORD=$DB_ADM_PWD carbonio-message-dispatcher-db-bootstrap carbonio_adm 127.0.0.1
unset DB_ADM_PWD

15. Cek password ldap_password

su - zextras -c "zmlocalconfig -s | grep ldap_password"

Instalasi Monitoring ldap.saad.my.id

1. install carbonio-prometheus

apt install carbonio-prometheus

2. Jalankan konfigurasi Carbonio CE

carbonio-bootstrap

3. Jalankan pending setups

pending-setups -a

4. Restart carbonio-prometheus

systemctl restart carbonio-prometheus

5. Install Grafana server

wget -q -O - https://packages.grafana.com/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/grafana.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/grafana.gpg] https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
apt update
apt install grafana -y

6. Start dan enable Grafana server service

systemctl start grafana-server
systemctl status grafana-server
systemctl enable grafana-server

7. Install plugin Grafana server

grafana-cli plugins install grafana-worldmap-panel
grafana-cli plugins install marcusolsson-treemap-panel
systemctl restart grafana-server

Selesai

Bila membutuhkan jasa instalasi, migrasi, maintenance, SSL Certificate, Mail Gateway Security dan SMTP Relay Carbonio CE bisa menghubungi melalui kontak WhatsApp di pojok kanan bawah

×

Hello!

Klik salah satu dibawah untuk chat WhatsApp atau kirim email kepada kami ke info@saad.web.id

× WhatsApp Kami