membuat multiserver di zimbra
DESCRIPTION
tutorialTRANSCRIPT
Membuat Multi-Server di Zimbra
Sekarang kita akan coba membuat mail server zimbra dengan konsep multi server
perbedaannya dari single server hanya ada beberapa service yang di pecah ke
beberapa server bisa di lihat di gambar di atas. fungsinya agar beban server tidak
tertumpu hanya di satu server saja. tutorial ini saya asumsikan anda sudah pernah
menginstal zimbra single server, jadi saya gak kasih step by stepnya
LANGKAH 1 Installasi server mail.egontara.net
Select the packages to install
Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] N
Install zimbra-snmp [Y] N
Install zimbra-store [Y] Y
Install zimbra-apache [Y] Y
Install zimbra-spell [Y] Y
Install zimbra-memcached [N] N
Install zimbra-proxy [N] N
Checking required space for zimbra-core
checking space for zimbra-store
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-store
zimbra-apache
zimbra-spell
The system will be modified. Continue? [N] Y
Removing /opt/zimbra
done.
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Suite.
Installing packages
zimbra-core......zimbra-core-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
zimbra-logger......zimbra-logger-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
zimbra-store......zimbra-store-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
zimbra-apache......zimbra-apache-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
zimbra-spell......zimbra-spell-7.1.4_GA_2555.SLES11_64-
20120105094644.x86_64.rpm...done
Operations logged to /tmp/zmsetup.02252012-073747.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for mail.egontara.net
It is suggested that the domain name have an MX record configured
in DNS
Change domain name? [Yes] yes
Create domain: [mail.egontara.net] egontara.net
done.
Checking for port conflicts
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: [email protected]
** +Admin Password UNSET
+Anti-virus quarantine user: virus-
+Enable automated spam training: yes
+Spam training user: [email protected]
+Non-spam(Ham) training user: [email protected]
** +SMTP host: UNSET
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+IMAP server port: 143
+IMAP server SSL port: 993
+POP server port: 110
+POP server SSL port: 995
+Use spell check server: yes
+Spell server URL: http://mail.egontara.net:7780/aspell.php
+Configure for use with mail proxy: FALSE
+Configure for use with web proxy: FALSE
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: [email protected]
+Version update source email: [email protected]
4) zimbra-logger: Enabled
5) zimbra-spell: Enabled
6) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
Address unconfigured (**) items (? - help)
Ketikkan 1 dan tekan enter, kita akan melakukan pengaturan umum terhadap LDAP
Server Zimbra.
Address unconfigured (**) items (? - help) 1
Common configuration
1) Hostname: mail.egontara.net
2) Ldap master host: mail.egontara.net
3) Ldap port: 389<
4) Ldap Admin password: set
5) Secure interprocess communications: yes
6) TimeZone: UTC
Select, or 'r' for previous menu [r]
Untuk Merubah Ldap password pilih 4
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Sesuaikan waktu pilih 6 lalu ketik 37 untuk waktu Indonesia
Common configuration
1) Hostname: mail.egontara.net
2) Ldap master host: mail.egontara.net
3) Ldap port: 389
4) Ldap Admin password: set
5) Secure interprocess communications: yes
6) TimeZone: UTC
Select, or 'r' for previous menu [r] 6
Enter the number for the local timezone: [95] 37
Common configuration
1) Hostname: mail.egontara.net
2) Ldap master host: mail.egontara.net
3) Ldap port: 389
4) Ldap Admin password: set
5) Secure interprocess communications: yes
6) TimeZone: Asia/Bangkok
Select, or 'r' for previous menu [r] r
Ketikkan r & enter untuk ke menu utama.
Selanjutnya kita perlu untuk melakukan konfigurasi LDAP. Merubah beberapa
password. Pertama Ketik 4 dan enter untuk merubah password user LDAP root.
Dilanjutkan dengan merubah password lainnya.
Ldap configuration
1) Status: Enabled
2) Create Domain: yes
3) Domain to create: egontara.net
4) Ldap root password: set
5) Ldap replication password: set
6) Ldap postfix password: set
7) Ldap amavis password: set
8 ) Ldap nginx password: set
9) Ldap Bes Searcher password: set
Select, or 'r' for previous menu [r] 4
Password for ldap root user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Select, or 'r' for previous menu [r] 5
Password for ldap replication user (min 6 characters):
[AnaI6IS7ez] P@ssw0rd
Select, or 'r' for previous menu [r] 6
Password for ldap Postfix user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Select, or 'r' for previous menu [r] 7
Password for ldap Amavis user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Select, or 'r' for previous menu [r] 8
Password for ldap Nginx user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Select, or 'r' for previous menu [r] 9
Password for ldap BES user (min 6 characters): [AnaI6IS7ez]
P@ssw0rd
Ldap configuration
1) Status: Enabled
2) Create Domain: yes
3) Domain to create: egontara.net
4) Ldap root password: set
5) Ldap replication password: set
6) Ldap postfix password: set
7) Ldap amavis password: set
8 ) Ldap nginx password: set
9) Ldap Bes Searcher password: set
Select, or 'r' for previous menu [r] r
Kembali ke menu utama dengan mengetikkan r.
Selanjutnya kita perlu mengkonfigurasi Mailbox Zimbra. Ketikkan 3 dan tekan enter
untuk masuk ke menu konfigurasi zimbra-store.
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
.
.
.
Address unconfigured (**) items (? - help) 3
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: [email protected]
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-
6) Enable automated spam training: yes
7) Spam training user:
8 ) Non-spam(Ham) training user:
** 9) SMTP host: UNSET
Perhatikan bagian yang masih terdapat **. Bagian tersebut yang perlu kita ubah.
Pertama kita perlu membuat password admin. Tekan 4 dan masukkan password yang
kita inginkan.
Select, or 'r' for previous menu [r] 4
Password for [email protected] (min 6 characters): [llOPV5Xb7]
P@ssw0rd
Lihat status Admin Password, sekarang sudah berubah menjadi set, artinya password
sudah disimpan. Konfigurasi selanjutnya adalah kita perlu memasukkan hostname dari
server MTA Zimbra.
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: [email protected]
4) Admin Password set
5) Anti-virus quarantine user: virus-
6) Enable automated spam training: yes
7) Spam training user:
8 ) Non-spam(Ham) training user:
** 9) SMTP host: UNSET
.
.
.
Select, or 'r' for previous menu [r] 9
Please enter the SMTP server hostname: mta.egontara.net
lalu kembali ke menu awal ketik r lalu pilih a
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.8661]
Saving config in /opt/zimbra/config.8661...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.02252012-073747.log
Setting local config values...done.
Setting up CA...done.
.
.
.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration
Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (7.1.4_GA_2555_SLES11_64)
The ADMIN EMAIL ADDRESS created ([email protected])
Notify Zimbra of your installation? [Yes]no
Configuration complete - press return to exit
selesai untuk pembuatan server mail.egontara.net
LANGKAH 2
membuat server mta.egontara.net
Select the packages to install
Install zimbra-ldap [Y] n
Install zimbra-logger [Y]
Install zimbra-mta [Y]
Install zimbra-snmp [Y] n
Install zimbra-store [Y] n
Install zimbra-apache [Y] n
Install zimbra-spell [Y] n
Install zimbra-memcached [N]
Install zimbra-proxy [N]
Jika instalasi paket berhasil, maka akan muncul layar konfigurasi seperti berikut:
Main menu
1) Common Configuration:
+Hostname: mta.egontara.net
******* +Ldap master host: UNSET
+Ldap port: 389
******* +Ldap Admin password: UNSET
+LDAP Base DN: cn=zimbra
+Secure interprocess communications: yes
+TimeZone: UTC
2) zimbra-mta: Enabled
******* +MTA Auth host: UNSET
+Enable Spamassassin: yes
+Enable Clam AV: yes
+Notification address for AV alerts:
******* +Bind password for postfix ldap user: UNSET
******* +Bind password for amavis ldap user: UNSET
3) zimbra-logger: Enabled
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
Masukkan 1 dan tekan enter untuk melakukan konfigurasi umum. Kita perlu untuk
mengkonfigurasi bagian yang diberi tanda *******.
Address unconfigured (**) items (? - help) 1
Common configuration
1) Hostname: mta.egontara.net
** 2) Ldap master host: UNSET
3) Ldap port: 389
** 4) Ldap Admin password: UNSET
5) LDAP Base DN: cn=zimbra
6) Secure interprocess communications: yes
7) TimeZone: UTC
Pilih 2 untuk memasukkan hostname LDAP server.
Select, or 'r' for previous menu [r] 2
Please enter the ldap server hostname: mail.egontara.net
Pilih 4 untuk input password admin LDAP.
Common configuration
1) Hostname: mta.egontara.net
2) Ldap master host: mail.egontara.net
3) Ldap port: 389
** 4) Ldap Admin password: UNSET
5) LDAP Base DN: cn=zimbra
6) Secure interprocess communications: yes
7) TimeZone: UTC
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): P@ssw0rd
Setting defaults from ldap... done.
tunggu prosess authentication ke server ldap jika authentication berhasil berarti
sudah berhasil
jika proses tidak berhasil untuk makesure password ldap ssh ke server
mail.egontara.net lalu
su zimbra
zmlocalconfig -s zimbra_ldap_password
LALU MASUK ADMIN CONSOLE MENGGUNAKAN BROWSER
https://mail.egontara.net:7071 lalu rubah mta nya
untuk melihat log email apakah sudah berhasil atau tidak ssh ke server
mta.egontara.net
tail -f /var/log/maillog
untuk pointing di dnsnya seperti ini :
kalau mau mx relay ke beberapa relay contoh :
main server : mail.egontara.net
mta 1 : mta.egontara.net
mta 2 : mx1.egontara.net
config di server mail.egontara.net
su zimbra
zmprov ms 'mail.egontara.net' +zimbraSmtpHostname mx1.egontara.net