Instalasi pada Ubuntu 20.04 disusun dalam beberapa langkah, beberapa di antaranya merupakan tugas konfigurasi awal, dan beberapa lainnya bersifat opsional. Selama instalasi dan konfigurasi Carbonio CE, Anda perlu menjalankan perintah dari baris perintah, jadi pastikan Anda memiliki akses ke sana.
Sebelum memulai instalasi Carbonio CE, kita perlu menginstal dan mengkonfigurasi database PostgreSQL.
# apt install postgresql-12
Untuk menambahkan repositori Carbonio CE, buka halaman berikut dan isi formulir: https://www.zextras.com/carbonio-community-edition/#discoverproduct
Anda akan menerima email yang berisi URL Repository & GPG Key & ikuti instruksi di email untuk menambahkan data ini ke sistem Anda.
Carbonio CE memerlukan FQDN yang valid sebagai nama host dan entri yang valid di file /etc/hosts. Untuk mengonfigurasinya, jalankan dua perintah ini. Pertama, atur nama host
# hostnamectl set-hostname mail.example.com
# echo "172.16.0.10 mail.example.com mail" >> /etc/hosts
Setelah mengkonfigurasi repositori, instalasi Carbonio CE memerlukan beberapa perintah untuk dijalankan. Kami mulai dengan memperbarui dan meningkatkan sistem.
# apt update && apt upgrade
# apt install service-discover-server \
carbonio-directory-server \
carbonio-proxy \
carbonio-webui carbonio-files-ui \
carbonio-mta \
carbonio-appserver \
carbonio-user-management \
carbonio-files-ce carbonio-files-db \
carbonio-tasks-db carbonio-tasks-db \
carbonio-tasks-ui \
carbonio-storages-ce \
carbonio-preview-ce \
carbonio-docs-connector-ce carbonio-docs-editor \
carbonio-prometheus
# systemctl status carbonio-*
# systemctl restart carbonio-prometheus-nginx-exporter.service
Anda hanya perlu membuka port yang harus dapat diakses dari Internet, yaitu port yang tercantum di bagian Persyaratan Firewall Ports.
Setelah semua paket terinstal, gunakan perintah berikut untuk mengkonfigurasi dan meluncurkan Carbonio CE.
# carbonio-bootstrap
DNS ERROR - none of the "MX" records for example.com
resolve to this host
Change domain name? [Yes] yes
Create domain: [example.com] example.com
Re-Enter domain name? [Yes] no
done.
Checking for port conflicts
Main menu
1) Common Configuration:
2) carbonio-antivirus: Enabled
3) carbonio-directory-server: Enabled
4) carbonio-mta: Enabled
5) carbonio-appserver: Enabled
6) carbonio-proxy: Enabled
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'y' to apply configuration
Select from menu, or press 'y' to apply config (? - help) 1
Common configuration
1) Hostname: mail.example.com
2) Ldap master host: mail.example.com
3) Ldap port: 389
4) Ldap Admin password: set
5) Secure interprocess communications: no
6) TimeZone: Asia/Irkutsk
7) IP Mode: ipv4
8) Default SSL digest: sha256
Select, or 'r' for previous menu [r] 6
Common configuration
1) Hostname: mail.example.com
2) Ldap master host: mail.example.com
3) Ldap port: 389
4) Ldap Admin password: set
5) Secure interprocess communications: no
6) TimeZone: Asia/Bangkok
7) IP Mode: ipv4
8) Default SSL digest: sha256
Select, or 'r' for previous menu [r] r
Main menu
1) Common Configuration:
2) carbonio-antivirus: Enabled
3) carbonio-directory-server: Enabled
4) carbonio-mta: Enabled
5) carbonio-appserver: Enabled
6) carbonio-proxy: Enabled
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'y' to apply configuration
Select from menu, or press 'y' to apply config (? - help) y
Saving config in /opt/zextras/config.659737...done.
Operations logged to /tmp/zmsetup.20231129-153919.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zextras/conf/ca ...done.
Creating SSL carbonio-appserver certificate...done.
Creating new carbonio-directory-server SSL certificate...done.
Creating new carbonio-mta SSL certificate...done.
Creating new carbonio-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.example.com...done.
Setting IP Mode...done.
Saving CA in ldap...done.
Saving SSL Certificate in ldap...done.
Generating dhparam key...done.
Setting service ports on mail.example.com...done.
Checking current setting of ReverseProxyAvailableLookupTargets
Querying LDAP for other mailstores
Searching LDAP for reverseProxyLookupTargets...done.
Adding mail.example.com to ReverseProxyAvailableLookupTargets
Updating LDAP Schema version to '1699526243'...done.
Setting TimeZone Preference...done.
Disabling strict server name enforcement on mail.example.com...done.
Setting Public Service Hostname mail.example.com...done.
Initializing mta config...done.
Setting services on mail.example.com...done.
Adding mail.example.com to MailHostPool in default COS...done.
Creating domain example.com...done.
Setting default domain name...done.
Setting value of postfix myorigin...done.
Creating domain example.com...already exists.
Creating admin account zextras@example.com...done.
Creating root alias...done.
Creating postmaster alias...done.
Setting infrastructure notification sender and recipients accounts...done.
Creating user spam.zjeu7usjxn@example.com...done.
Creating user ham.pia_txzoyd@example.com...done.
Creating user virus-quarantine.rxmuaqaa@example.com...done.
Setting spam, training and anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting up syslog.conf...done.
Starting servers...done.
Creating galsync account for default domain...done.
Setting up zextras crontab...done.
Moving /tmp/zmsetup.20231129-153919.log to /opt/zextras/log
Configuration complete - press return to exit
# service-discover setup-wizard
NOTE : Command tersebut akan meminta Alamat IP dan Netmask & Carbonio Mesh Secret (Pastikan anda mengingat password ini)
Setup of first service-discover server instance
eth0 172.16.0.10/24
Specify the binding address for service discovery: 172.16.0.10/24
Create the cluster credentials password (will be used for setups): ******
Type the credential password again: ******
# pending-setups -a
# su - postgres -c "psql --command=\"CREATE ROLE carbonio_adm WITH LOGIN SUPERUSER encrypted password 'PASSWORDDBADM';\""
CREATE ROLE
# su - postgres -c "psql --command=\"CREATE DATABASE carbonio_adm owner carbonio_adm;\""
CREATE DATABASE
# PGPASSWORD=$DB_ADM_PWD carbonio-files-db-bootstrap carbonio_adm 127.0.0.1
Database: 127.0.0.1:5432 user carbonio_adm
Password for user carbonio_adm:
Check postgres connection: OK
Password for user carbonio_adm:
Current version is: .
Database already initialized! Quitting
# su - zextras
$ zmcontrol restart
# su - zextras
$ zmprov sp zextras@example.com PASSWORD-GLOBAL-ADMIN
Jika para pembaca yang ingin mengetahui ataupun bertanya tentang informasi seputar Zextras Carbonio lebih lanjut. Silahkan hubungi kami di info@rekha.co.id atau WhatsApp kami ke 0851-5532-4400