Instalasi mailserver : Linux Based dengan Zimbra Open Source Edition
Proyek ini merupakan kelanjutan dari pekerjaan sebelumnya internet sharing yang sudah selesai. Proyek mailserver di perusahaan Publishing dan Media Marketing Group di daerah Jakarta Selatan ini merupakan upgrade mailserver dari sistem sebelumnya memakai Qmail. Keterbatasan fitur qmail bagi end user menjadi salah satu daya tarik keinginan perusahaan beralih ke Zimbra. Jadi Ownernya yang orang bule menginginkan Zimbra karena dia tertarik dengan Zimbra Desktop yang banyak fiturnya. Mailserver dengan Zimbra memang lagi naik daun baik di dalam dan luar negeri karena sistem mailservernya sangat kompleks dan solusi yang tepat saat ini. Di luar negeri salah satu server client ku IKON Ltd juga memakai Zimbra yang aku install di salah satu server colocation di ThePlanet.
Secara teknis instalasi dan konfigurasi Zimbra sangatlah mudah dibandingkan dengan sistem mailserver memakai Postfix ataupun Qmail dan juga lebih mudah dibandingkan Microsoft Exchange. Integrasi satu file instalasi yang didalamnya sudah terdapat semua komponen pembentuk zimbra memudahkan seorang admin untuk membuat sebuah mailserver. Tapi kalau belum pernah coba dalam server live dan untuk dipakai yah harus banyak trial dahulu agar memudahkan instalasi dan konfigurasi nantinya. Angkat topi saya untuk individual developers and contributor Zimbra yang tergabung dalam Yahoo! Inc.
Jika sekedar berhasil menginstall Zimbra saja tapi tidak digunakan dalam sebuah mesin produksi rasanya kurang puas, dalam hal ini menginstall dan mengkonfigurasi Zimbra untuk dipakai perusahaan ini merupakan tantangan dengan rasa tersendiri sebagai kuli IT seperti saya....hehehe
Progress Instalasi ini dilakukan pada server baru mereka, sementara server lama(Qmail) tetap berjalan sebelum di istirahatkan dan nantinya akan dijadikan backup Zimbra secara fisik.
Tahapan Upgrade mailserver ini :
1. Backup Server Mail lama(Qmail), account email semua karyawan
2. Instalasi Server Baru (ZImbra) (sistem operasi Linux Centos 5.2, setting IP , Gateway, DNS, Install Zimbra Open Source Edition, Konfigurasi di Admin Zimbra untuk domain dan pembuatan account-account semua email )
3. Migrasi = Merubah setting DNS pada domain perusahaan ini dengan mempointing IP MX kearah IP mailserver baru (ZImbra)
4. Matikan Server lama (QMail)
5. Hidupkan Server Baru (Zimbra)
6. Trial and Error, dan maintenance.
7. Instalasi dan konfigurasi Server lama (Qmail) menjadi backup Fisik Zimbra dan transfer data dari mesin Zimbra yang sudah running menggunakan rsync.
Untuk detail instalasi dan konfigurasi Zimbra Open Sources Edition pada perusahaan ini, saya sempat dokumentasikan dari konsol putty menggunakan copy paste ke notepad sebagai berikut :
[root@mail gtoms]# uname -a
Linux mail 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux
Untuk mendapatkan software Zimbra dalam bentuk tarball bisa di download melalui :
http://www.zimbra.com/community/downloads.html
Setelah didownload langsung ekstrak dengan menggunakan tar xvzf
Setelah selesai diekstrak bisa pindah ke direktory hasil ekstrakan :
Sekedar mengingatkan sebelum masuk ke sini pastikan hostname server Anda sudah tersetting benar saat diawal menginstall sistem operasi Linuxnya yang dalam proyek ini menggunakan Linux Centos 5.2
MEMULAI menginstall Zimbra Open Source Edition :
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# ./install.sh
Operations logged to /tmp/install.log.18047
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Press Return to continue
Checking for prerequisites...
NPTL...FOUND
sudo...FOUND sudo-1.6.8p12-12
libidn...FOUND libidn-0.6.5-1.1
fetchmail...FOUND fetchmail-6.3.6-1.1
gmp...FOUND gmp-4.1.4-10
compat-libstdc++-296...MISSING
compat-libstdc++-33...MISSING
libtool-ltdl...FOUND libtool-ltdl-1.5.22-6.1
/usr/lib/libstdc++.so.6...FOUND
Prerequisite check complete.
Checking for standard system perl...
perl-5.8.8...FOUND standard system perl-5.8.8
###ERROR###
One or more prerequisite packages are missing.
Please install them before running this installer.
Installation cancelled.
Disini ada ERROR karena ada paket yang tidak lengkap sehingga harus diinstall dahulu seperti dibawah ini :
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# yum install compat-libstdc++-296 compat-libstdc++-33 gmp libtool-ltdl
Setting up Install Process
Parsing package install arguments
Package gmp - 4.1.4-10.el5.i386 is already installed.
Package libtool-ltdl - 1.5.22-6.1.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
---> Package compat-libstdc++-296.i386 0:2.96-138 set to be updated
--> Finished Dependency Resolution Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-296 i386 2.96-138 base 90 k
compat-libstdc++-33 i386 3.2.3-61 base 232 k
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 321 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): compat-libstdc++-2 100% |=========================| 90 kB 00:09
(2/2): compat-libstdc++-3 100% |=========================| 232 kB 00:11
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-296 ######################### [1/2]
Installing: compat-libstdc++-33 ######################### [2/2]
Installed: compat-libstdc++-296.i386 0:2.96-138 compat-libstdc++-33.i386 0:3.2.3-61
Complete!
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]#
Setelah selesai kita install kembali Zimbranya menggunakan tambahan --platform-override karena software Zimbra yang didownload untuk Red Hat Enterprise Linux, sementara Sistem operasi server ini memakai Centos.
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# ./install.sh --platform-override
Operations logged to /tmp/install.log.18558
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Press Return to continue
......................skip...............
.....................................
done.
Setting defaults from existing config...done.
.................skip.................
.....................................
Main menu
5) SMTP Source email address: admin@mail.indomccccccccc.co.id
6) SMTP Destination email address: admin@mail.indomccccccccc.co.id
Select, or 'r' for previous menu [r] r
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration no
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Saving config in /opt/zimbra/config.8307...done.
Operations logged to /tmp/zmsetup.12192008-020203.log
Setting local config values...
prov> Creating domain mail.indomccccccccc.co.id...done.
Creating user admin@mail.indomccccccccc.co.id...done.
Creating postmaster alias...done.
Creating user wiki@mail.indomccccccccc.co.id...done.
Creating user spam.3mlde9r9v@mail.indomccccccccc.co.id...done.
Creating user ham.t2wmoidc@mail.indomccccccccc.co.id...done.
Setting spam training accounts...done.
Initializing store sql database...
..........skip.................
...............................
Checking required space for zimbra-core
checking space for zimbra-store
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
You appear to be installing packages on a platform different
than the platform for which they were built.
This platform is CentOS5
Packages found: RHEL5
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N] Y
The system will be modified. Continue? [N] Y
Removing /opt/zimbra
Installing packages
zimbra-core......zimbra-core-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-ldap......zimbra-ldap-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-logger......zimbra-logger-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-mta......zimbra-mta-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-snmp......zimbra-snmp-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-store......zimbra-store-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-apache......zimbra-apache-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-spell......zimbra-spell-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
Operations logged to /tmp/zmsetup.12192008-024930.log
Setting defaults... MX: mail.indomccccccccc.co.id (202.47.xx.xx)
Interface: 202.47.xx.xx
Interface: 127.0.0.1
202.47.xx.xx
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: admin@mail.indomccccccccc.co.id
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
+Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
+Global Documents Account: wiki@mail.indomccccccccc.co.id
+SMTP host: mail.indomccccccccc.co.id
+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.indomccccccccc.co.id:7780/aspell.php
+Configure store for use with reverse mail proxy: FALSE
+Configure store for use with reverse web proxy: FALSE
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) 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) 3
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.indomccccccccc.co.id
** 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
7) Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
8) Global Documents Account: wiki@mail.indomccccccccc.co.id
9) SMTP host: mail.indomccccccccc.co.id
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.indomccccccccc.co.id:7780/aspell.php
19) Configure store for use with reverse mail proxy: FALSE
20) Configure store for use with reverse web proxy: FALSE
Select, or 'r' for previous menu [r] 4
Password for admin@mail.indoccccccccc.co.id (min 6 characters): [ET7uDNGu] zzzzzzzz
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.indomccccccccc.co.id
4) Admin Password set
5) Enable automated spam training: yes
6) Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
7) Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
8) Global Documents Account: wiki@mail.indomccccccccc.co.id
9) SMTP host: mail.indomccccccccc.co.id
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.indomccccccccc.co.id:7780/aspell.php
19) Configure store for use with reverse mail proxy: FALSE
20) Configure store for use with reverse web proxy: FALSE
Select, or 'r' for previous menu [r] r
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
*** 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.10491]
Saving config in /opt/zimbra/config.10491...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.12192008-024930.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Saving CA in ldap ...done.
Creating server entry for mail.indomccccccccc.co.id...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.indomccccccccc.co.id...done.
Adding mail.indomccccccccc.co.id to zimbraMailHostPool in default COS...done.
Installing skins...
waves
zmail
sand
bones
beach
lavender
sky
hotrod
steel
bare
yahoo
lemongrass
done.
Setting zimbraFeatureIMEnabled=FALSE...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting zimbraFeatureNotebookEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Creating domain mail.indomccccccccc.co.id...done.
Creating user admin@mail.indomccccccccc.co.id...done.
Creating postmaster alias...done.
Creating user wiki@mail.indomccccccccc.co.id...done.
Creating user spam.z8iucncs@mail.indomccccccccc.co.id...done.
Creating user ham.8zu7hmcei@mail.indomccccccccc.co.id...done.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.indomccccccccc.co.id...done.
Initializing logger sql database...done.
Initializing mta config...done.
Configuring SNMP...done.
Setting services on mail.indomccccccccc.co.id...done.
Setting up syslog.conf...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 (5.0.10_GA_2638_CentOS5)
The ADMIN EMAIL ADDRESS created (admin@mail.indomccccccccc.co.id)
Notify Zimbra of your installation? [Yes]
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=5.0.10_GA_2638_CentOS5&MAIL=admin@mail.indomccccccccc.co.id
Notification complete
Starting servers...done.
Checking for deprecated zimlets...done.
Installing zimlets...
com_zimbra_cert_manager
com_zimbra_phone
com_zimbra_date
com_zimbra_local
com_zimbra_url
com_zimbra_ymemoticons
com_zimbra_email
done.
Initializing Documents...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.12192008-024930.log to /opt/zimbra/log
Configuration complete - press return to exit
[root@mail zcs-5.0.10_GA_2638.RHEL5.20081003052615]#
Sampai disini instalasi ZImbra sudah selesai.
Administrasi Zimbra admin dilakukan melalui :
https://indomccccccccc:7071/zimbraAdmin/
https://202.47.xx.xx:7071/zimbraAdmin/
user : admin
password : zzzzzz
Contoh log transaksi email di Zimbra yang menggunakan Postfix sebagai MTA(mail transfer agent) :
[root@mail gtoms]# tail -f /var/log/zimbra.log
Feb 1 11:22:59 mail postfix/smtpd[15582]: C4B934678007: client=localhost.localdomain[127.0.0.1]
Feb 1 11:22:59 mail postfix/cleanup[15578]: C4B934678007: message-id=<30549332.5091233462177713.JavaMail.root@mail>
Feb 1 11:22:59 mail postfix/qmgr[7681]: C4B934678007: from=<admin@mail.indomxxxxx.co.id>, size=1793, nrcpt=1 (queue active)
Feb 1 11:22:59 mail postfix/smtpd[15582]: disconnect from localhost.localdomain[127.0.0.1]
Feb 1 11:22:59 mail amavis[9441]: (09441-09) FWD via SMTP: <admin@mail.indomxxxxx.co.id> -> <henry.gultom@gmail.com>,BODY=7BIT 250 2.6.0 Ok, id=09441-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C4B934678007
Feb 1 11:22:59 mail amavis[9441]: (09441-09) Passed CLEAN, [202.47.67.84] [202.47.67.84] <admin@mail.indomxxxxxx.co.id> -> <henry.gultom@gmail.com>, Message-ID: <30549332.5091233462177713.JavaMail.root@mail>, mail_id: TeFcpl524kUp, Hits: -2.275, size: 1106, queued_as: C4B934678007, 2074 ms
Feb 1 11:22:59 mail postfix/smtp[15579]: B3DDD4678003: to=<henry.gultom@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.01/0/0/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C4B934678007)
Feb 1 11:22:59 mail postfix/qmgr[7681]: B3DDD4678003: removed
Feb 1 11:23:03 mail postfix/smtp[16553]: C4B934678007: to=<henry.gultom@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.143.27]:25, delay=3.2, delays=0.01/0.01/1.6/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1233462210 w12si6533879tib.39)
Feb 1 11:23:03 mail postfix/qmgr[7681]: C4B934678007: removed
Feb 1 11:23:03 mail zmmailboxdmgr[16724]: status requested
Feb 1 11:23:03 mail zmmailboxdmgr[16724]: status OK
Feb 1 11:23:03 mail zmmailboxdmgr[16788]: status requested
Feb 1 11:23:03 mail zmmailboxdmgr[16788]: status OK
Sedikit administrasi di user Zimbra :
[root@mail extra]# su - zimbra
[zimbra@mail ~]$
[zimbra@mail ~]$ zmcontrol status
Host mail.indomccccccccc.co.id
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
[zimbra@mail ~]$ zmcontrol stop
Host mail.indomccccccccc.co.id
Stopping stats...Done
Stopping mta...Done
Stopping spell...Done
Stopping snmp...Done
Stopping archiving...Done
Stopping antivirus...Done
Stopping antispam...Done
Stopping imapproxy...Done
Stopping mailbox...Done
Stopping logger...Done
Stopping ldap...Done
[zimbra@mail ~]$ zmcontrol start
Host mail.indomccccccccc.co.id
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting zmmtaconfig...zmmtaconfig is already running.
Starting amavisd...amavisd is already running.
Starting clamd...ClamAV update process started at Thu Nov 27 06:41:05 2008
...........skip.....................................
Contact me :
henry@gultom.or.id
Secara teknis instalasi dan konfigurasi Zimbra sangatlah mudah dibandingkan dengan sistem mailserver memakai Postfix ataupun Qmail dan juga lebih mudah dibandingkan Microsoft Exchange. Integrasi satu file instalasi yang didalamnya sudah terdapat semua komponen pembentuk zimbra memudahkan seorang admin untuk membuat sebuah mailserver. Tapi kalau belum pernah coba dalam server live dan untuk dipakai yah harus banyak trial dahulu agar memudahkan instalasi dan konfigurasi nantinya. Angkat topi saya untuk individual developers and contributor Zimbra yang tergabung dalam Yahoo! Inc.
Jika sekedar berhasil menginstall Zimbra saja tapi tidak digunakan dalam sebuah mesin produksi rasanya kurang puas, dalam hal ini menginstall dan mengkonfigurasi Zimbra untuk dipakai perusahaan ini merupakan tantangan dengan rasa tersendiri sebagai kuli IT seperti saya....hehehe
Progress Instalasi ini dilakukan pada server baru mereka, sementara server lama(Qmail) tetap berjalan sebelum di istirahatkan dan nantinya akan dijadikan backup Zimbra secara fisik.
Tahapan Upgrade mailserver ini :
1. Backup Server Mail lama(Qmail), account email semua karyawan
2. Instalasi Server Baru (ZImbra) (sistem operasi Linux Centos 5.2, setting IP , Gateway, DNS, Install Zimbra Open Source Edition, Konfigurasi di Admin Zimbra untuk domain dan pembuatan account-account semua email )
3. Migrasi = Merubah setting DNS pada domain perusahaan ini dengan mempointing IP MX kearah IP mailserver baru (ZImbra)
4. Matikan Server lama (QMail)
5. Hidupkan Server Baru (Zimbra)
6. Trial and Error, dan maintenance.
7. Instalasi dan konfigurasi Server lama (Qmail) menjadi backup Fisik Zimbra dan transfer data dari mesin Zimbra yang sudah running menggunakan rsync.
Untuk detail instalasi dan konfigurasi Zimbra Open Sources Edition pada perusahaan ini, saya sempat dokumentasikan dari konsol putty menggunakan copy paste ke notepad sebagai berikut :
[root@mail gtoms]# uname -a
Linux mail 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux
Untuk mendapatkan software Zimbra dalam bentuk tarball bisa di download melalui :
http://www.zimbra.com/community/downloads.html
Setelah didownload langsung ekstrak dengan menggunakan tar xvzf
Setelah selesai diekstrak bisa pindah ke direktory hasil ekstrakan :
Sekedar mengingatkan sebelum masuk ke sini pastikan hostname server Anda sudah tersetting benar saat diawal menginstall sistem operasi Linuxnya yang dalam proyek ini menggunakan Linux Centos 5.2
MEMULAI menginstall Zimbra Open Source Edition :
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# ./install.sh
Operations logged to /tmp/install.log.18047
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Press Return to continue
Checking for prerequisites...
NPTL...FOUND
sudo...FOUND sudo-1.6.8p12-12
libidn...FOUND libidn-0.6.5-1.1
fetchmail...FOUND fetchmail-6.3.6-1.1
gmp...FOUND gmp-4.1.4-10
compat-libstdc++-296...MISSING
compat-libstdc++-33...MISSING
libtool-ltdl...FOUND libtool-ltdl-1.5.22-6.1
/usr/lib/libstdc++.so.6...FOUND
Prerequisite check complete.
Checking for standard system perl...
perl-5.8.8...FOUND standard system perl-5.8.8
###ERROR###
One or more prerequisite packages are missing.
Please install them before running this installer.
Installation cancelled.
Disini ada ERROR karena ada paket yang tidak lengkap sehingga harus diinstall dahulu seperti dibawah ini :
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# yum install compat-libstdc++-296 compat-libstdc++-33 gmp libtool-ltdl
Setting up Install Process
Parsing package install arguments
Package gmp - 4.1.4-10.el5.i386 is already installed.
Package libtool-ltdl - 1.5.22-6.1.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
---> Package compat-libstdc++-296.i386 0:2.96-138 set to be updated
--> Finished Dependency Resolution Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-296 i386 2.96-138 base 90 k
compat-libstdc++-33 i386 3.2.3-61 base 232 k
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 321 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): compat-libstdc++-2 100% |=========================| 90 kB 00:09
(2/2): compat-libstdc++-3 100% |=========================| 232 kB 00:11
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-296 ######################### [1/2]
Installing: compat-libstdc++-33 ######################### [2/2]
Installed: compat-libstdc++-296.i386 0:2.96-138 compat-libstdc++-33.i386 0:3.2.3-61
Complete!
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]#
Setelah selesai kita install kembali Zimbranya menggunakan tambahan --platform-override karena software Zimbra yang didownload untuk Red Hat Enterprise Linux, sementara Sistem operasi server ini memakai Centos.
[root@indomccccccccc zcs-5.0.10_GA_2638.RHEL5.20081003052615]# ./install.sh --platform-override
Operations logged to /tmp/install.log.18558
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-cluster...NOT FOUND
zimbra-core...NOT FOUND
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.
License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra_public_eula_2.1.html
Press Return to continue
......................skip...............
.....................................
done.
Setting defaults from existing config...done.
.................skip.................
.....................................
Main menu
5) SMTP Source email address: admin@mail.indomccccccccc.co.id
6) SMTP Destination email address: admin@mail.indomccccccccc.co.id
Select, or 'r' for previous menu [r] r
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration no
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Saving config in /opt/zimbra/config.8307...done.
Operations logged to /tmp/zmsetup.12192008-020203.log
Setting local config values...
prov> Creating domain mail.indomccccccccc.co.id...done.
Creating user admin@mail.indomccccccccc.co.id...done.
Creating postmaster alias...done.
Creating user wiki@mail.indomccccccccc.co.id...done.
Creating user spam.3mlde9r9v@mail.indomccccccccc.co.id...done.
Creating user ham.t2wmoidc@mail.indomccccccccc.co.id...done.
Setting spam training accounts...done.
Initializing store sql database...
..........skip.................
...............................
Checking required space for zimbra-core
checking space for zimbra-store
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
You appear to be installing packages on a platform different
than the platform for which they were built.
This platform is CentOS5
Packages found: RHEL5
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N] Y
The system will be modified. Continue? [N] Y
Removing /opt/zimbra
Installing packages
zimbra-core......zimbra-core-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-ldap......zimbra-ldap-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-logger......zimbra-logger-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-mta......zimbra-mta-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-snmp......zimbra-snmp-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-store......zimbra-store-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-apache......zimbra-apache-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
zimbra-spell......zimbra-spell-5.0.10_GA_2638.RHEL5-20081003052615.i386.rpm...done
Operations logged to /tmp/zmsetup.12192008-024930.log
Setting defaults... MX: mail.indomccccccccc.co.id (202.47.xx.xx)
Interface: 202.47.xx.xx
Interface: 127.0.0.1
202.47.xx.xx
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: admin@mail.indomccccccccc.co.id
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
+Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
+Global Documents Account: wiki@mail.indomccccccccc.co.id
+SMTP host: mail.indomccccccccc.co.id
+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.indomccccccccc.co.id:7780/aspell.php
+Configure store for use with reverse mail proxy: FALSE
+Configure store for use with reverse web proxy: FALSE
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) 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) 3
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.indomccccccccc.co.id
** 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
7) Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
8) Global Documents Account: wiki@mail.indomccccccccc.co.id
9) SMTP host: mail.indomccccccccc.co.id
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.indomccccccccc.co.id:7780/aspell.php
19) Configure store for use with reverse mail proxy: FALSE
20) Configure store for use with reverse web proxy: FALSE
Select, or 'r' for previous menu [r] 4
Password for admin@mail.indoccccccccc.co.id (min 6 characters): [ET7uDNGu] zzzzzzzz
Store configuration
1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@mail.indomccccccccc.co.id
4) Admin Password set
5) Enable automated spam training: yes
6) Spam training user: spam.z8iucncs@mail.indomccccccccc.co.id
7) Non-spam(Ham) training user: ham.8zu7hmcei@mail.indomccccccccc.co.id
8) Global Documents Account: wiki@mail.indomccccccccc.co.id
9) SMTP host: mail.indomccccccccc.co.id
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 143
14) IMAP server SSL port: 993
15) POP server port: 110
16) POP server SSL port: 995
17) Use spell check server: yes
18) Spell server URL: http://mail.indomccccccccc.co.id:7780/aspell.php
19) Configure store for use with reverse mail proxy: FALSE
20) Configure store for use with reverse web proxy: FALSE
Select, or 'r' for previous menu [r] r
Main menu
1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-store: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) Default Class of Service Configuration:
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit
*** 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.10491]
Saving config in /opt/zimbra/config.10491...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.12192008-024930.log
Setting local config values...done.
Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL certificate...done.
Installing mailboxd SSL certificates...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Saving CA in ldap ...done.
Creating server entry for mail.indomccccccccc.co.id...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.indomccccccccc.co.id...done.
Adding mail.indomccccccccc.co.id to zimbraMailHostPool in default COS...done.
Installing skins...
waves
zmail
sand
bones
beach
lavender
sky
hotrod
steel
bare
yahoo
lemongrass
done.
Setting zimbraFeatureIMEnabled=FALSE...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting zimbraFeatureNotebookEnabled=TRUE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Creating domain mail.indomccccccccc.co.id...done.
Creating user admin@mail.indomccccccccc.co.id...done.
Creating postmaster alias...done.
Creating user wiki@mail.indomccccccccc.co.id...done.
Creating user spam.z8iucncs@mail.indomccccccccc.co.id...done.
Creating user ham.8zu7hmcei@mail.indomccccccccc.co.id...done.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.indomccccccccc.co.id...done.
Initializing logger sql database...done.
Initializing mta config...done.
Configuring SNMP...done.
Setting services on mail.indomccccccccc.co.id...done.
Setting up syslog.conf...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 (5.0.10_GA_2638_CentOS5)
The ADMIN EMAIL ADDRESS created (admin@mail.indomccccccccc.co.id)
Notify Zimbra of your installation? [Yes]
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=5.0.10_GA_2638_CentOS5&MAIL=admin@mail.indomccccccccc.co.id
Notification complete
Starting servers...done.
Checking for deprecated zimlets...done.
Installing zimlets...
com_zimbra_cert_manager
com_zimbra_phone
com_zimbra_date
com_zimbra_local
com_zimbra_url
com_zimbra_ymemoticons
com_zimbra_email
done.
Initializing Documents...done.
Restarting mailboxd...done.
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.12192008-024930.log to /opt/zimbra/log
Configuration complete - press return to exit
[root@mail zcs-5.0.10_GA_2638.RHEL5.20081003052615]#
Sampai disini instalasi ZImbra sudah selesai.
Administrasi Zimbra admin dilakukan melalui :
https://indomccccccccc:7071/zimbraAdmin/
https://202.47.xx.xx:7071/zimbraAdmin/
user : admin
password : zzzzzz
Contoh log transaksi email di Zimbra yang menggunakan Postfix sebagai MTA(mail transfer agent) :
[root@mail gtoms]# tail -f /var/log/zimbra.log
Feb 1 11:22:59 mail postfix/smtpd[15582]: C4B934678007: client=localhost.localdomain[127.0.0.1]
Feb 1 11:22:59 mail postfix/cleanup[15578]: C4B934678007: message-id=<30549332.5091233462177713.JavaMail.root@mail>
Feb 1 11:22:59 mail postfix/qmgr[7681]: C4B934678007: from=<admin@mail.indomxxxxx.co.id>, size=1793, nrcpt=1 (queue active)
Feb 1 11:22:59 mail postfix/smtpd[15582]: disconnect from localhost.localdomain[127.0.0.1]
Feb 1 11:22:59 mail amavis[9441]: (09441-09) FWD via SMTP: <admin@mail.indomxxxxx.co.id> -> <henry.gultom@gmail.com>,BODY=7BIT 250 2.6.0 Ok, id=09441-09, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C4B934678007
Feb 1 11:22:59 mail amavis[9441]: (09441-09) Passed CLEAN, [202.47.67.84] [202.47.67.84] <admin@mail.indomxxxxxx.co.id> -> <henry.gultom@gmail.com>, Message-ID: <30549332.5091233462177713.JavaMail.root@mail>, mail_id: TeFcpl524kUp, Hits: -2.275, size: 1106, queued_as: C4B934678007, 2074 ms
Feb 1 11:22:59 mail postfix/smtp[15579]: B3DDD4678003: to=<henry.gultom@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.01/0/0/2.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C4B934678007)
Feb 1 11:22:59 mail postfix/qmgr[7681]: B3DDD4678003: removed
Feb 1 11:23:03 mail postfix/smtp[16553]: C4B934678007: to=<henry.gultom@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.143.27]:25, delay=3.2, delays=0.01/0.01/1.6/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1233462210 w12si6533879tib.39)
Feb 1 11:23:03 mail postfix/qmgr[7681]: C4B934678007: removed
Feb 1 11:23:03 mail zmmailboxdmgr[16724]: status requested
Feb 1 11:23:03 mail zmmailboxdmgr[16724]: status OK
Feb 1 11:23:03 mail zmmailboxdmgr[16788]: status requested
Feb 1 11:23:03 mail zmmailboxdmgr[16788]: status OK
Sedikit administrasi di user Zimbra :
[root@mail extra]# su - zimbra
[zimbra@mail ~]$
[zimbra@mail ~]$ zmcontrol status
Host mail.indomccccccccc.co.id
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
[zimbra@mail ~]$ zmcontrol stop
Host mail.indomccccccccc.co.id
Stopping stats...Done
Stopping mta...Done
Stopping spell...Done
Stopping snmp...Done
Stopping archiving...Done
Stopping antivirus...Done
Stopping antispam...Done
Stopping imapproxy...Done
Stopping mailbox...Done
Stopping logger...Done
Stopping ldap...Done
[zimbra@mail ~]$ zmcontrol start
Host mail.indomccccccccc.co.id
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting zmmtaconfig...zmmtaconfig is already running.
Starting amavisd...amavisd is already running.
Starting clamd...ClamAV update process started at Thu Nov 27 06:41:05 2008
...........skip.....................................
Contact me :
henry@gultom.or.id
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home