Instalasi Zimbra 5.0 pada openSUSE 10.3

INSTALASI ZIMBRA MAIL SERVER
Muhammad Farid
muhfarid86@yahoo.com

I. Tahap Persiapan :

Skenario

Hostname : ns2
Domain : basma.co.id
IP address : 192.168.0.1

1. Instalasi OpenSUSE tanpa Apache karena Zimbra menggunakan Tomcat sebagai
Webservernya

2. Pastikan komponen software berikut ini sudah diinstalasi berikut file dependency-nya :
fetchmail, cURL, libidn, GMP, compat-libstdc++, cron, sudo, compat-openssl097g

3. Pastikan file compat-expat1 sudah diinstalasikan jika menggunakan openSUSE 10.2 atau
Pastikan file libexpat0 sudah diinstalasikan jika menggunakan openSUSE 10.3

4. Jika menggunakan openSUSE 10.3, lakukan perintah : ln –s /usr/lib/libcurl.so.4.0.0
/usr/lib/libcurl.so.3

5. Edit file /etc/named.conf

zone “basma.co.id” {
type master;
file “/var/lib/named/master/basma.co.id.hosts”;
};
zone “0.168.192.in-addr.arpa” {
type master;
file “/var/lib/named/master/192.168.0.rev”;
};~

6.Edit file /var/lib/named/master/basma.co.id.hosts

$ttl 38400
basma.co.id. IN SOA ns2.basma.co.id. admin.basma.co.id. (
2008012403
10800
3600
604800
38400 )
basma.co.id. IN NS ns2.basma.co.id.
ns2.basma.co.id. IN A 192.168.0.1
mail.basma.co.id. IN A 192.168.0.1
basma.co.id. IN MX 10 mail.basma.co.id.

(Penting : Berikan titik pada akhir mail.basma.co.id.)
~

7. Pembuatan file zone reverse DNS untuk 192.168.0.1.rev

/var/lib/named/master/192.168.0.rev

$ttl 38400
0.168.192.in-addr.arpa. IN SOA ns2.basma.co.id. admin.basma.co.id. (
2008012401
10800
3600
604800
38400 )
0.168.192.in-addr.arpa. IN NS ns2.basma.co.id.
1.0.168.192.in-addr.arpa. IN PTR ns2.basma.co.id.

8. Edit file /etc/syslog-ng/syslog-ng.conf dan tambahkan kode berikut pada
bagian bawah file

filter f_local0 { facility(local0); }; # zimbra
destination zmail { file(“/var/log/zimbra.log” owner(“zimbra”) ); }; # zimbra
log { source(src); filter(f_mail); destination(zmail); }; # zimbra
destination local0 { file(“/var/log/zimbra.log” owner(“zimbra”) ); }; # zimbra
log { source(src); filter(f_local0); destination(local0); }; # zimbra
filter f_auth { facility(auth); }; # zimbra
destination zmauth { file(“/var/log/zimbra.log” owner(“zimbra”) ); }; # zimbra
log { source(src); filter(f_auth); destination(zmauth); }; # zimbra

9. Jika menggunakan OpenSUSE 10.3. Edit file /opt/zcs/bin/get_plat_tag.sh
grep “openSUSE 10.2” /etc/SuSE-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo “openSUSE_10.2”
exit 0
fi
Ganti menjadi sebagai berikut :

grep “openSUSE 10.3” /etc/SuSE-release > /dev/null 2>&1
if [ $? = 0 ]; then
echo “openSUSE_10.2”
exit 0

10. Matikan service Postfix sebelum melakukan instalasi Zimbra

service postfix stop
chkconfig postfix off

11. Konfigurasi file /etc/hosts

# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
192.168.0.1 ns2.basma.com ns2
127.0.0.2 ns2.basma.com ns2

12. Konfigurasi file /etc/resolv.conf

### BEGIN INFO
#
#
### END INFO
#
domain basma.com

II. Tahap Pengujian

Sebelum melakukan pengujian jalankan perintah

1. opensusesrv:/home/dani # /etc/init.d/named restart

Pengujian domain dengan dig

ns2:/etc # dig basma.co.id any

; <> DiG 9.4.1-P1 <> basma.co.id any
;; global options: printcmd
;; Got answer:
;; ->>HEADER< ns2.basma.co.id
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: ns2.basma.co.id
Address: 192.168.0.1

> ns2
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: ns2.basma.co.id
Address: 192.168.0.1

Jika setting DNS salah, maka akan seperti dibawah ini :

# nslookup

> opensusesvr
Server: 192.168.0.201
Address: 192.168.0.201#53

** server can’t find opensusesvr: SERVFAIL

> opensusesvr.basma.com
Server: 192.168.0.201
Address: 192.168.0.201#53

** server can’t find opensusesvr.basma.com.basma.com: NXDOMAIN

> basma.com
Server: 192.168.0.201
Address: 192.168.0.201#53

*** Can’t find basma.com: No answer

4. Pengujian dengan host

# host nama_host

atau

# host alamat_ip

ns2:/etc # host 192.168.0.1
1.0.168.192.in-addr.arpa domain name pointer ns2.basma.co.id.

ns2:/etc # host basma.co.id
basma.co.id mail is handled by 10 mail.basma.co.id.

ns2:/etc # host ns2.basma.co.id
ns2.basma.co.id has address 192.168.0.1

ns2:/etc # host mail.basma.co.id
mail.basma.co.id has address 192.168.0.1

III. Tahap Instalasi Zimbra

ns2:/opt/zcs # ./install.sh

Operations logged to /tmp/install.log.8743
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-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.9p2-23
libidn…FOUND libidn-1.0-11
fetchmail…FOUND fetchmail-6.3.8-57
gmp…FOUND gmp-4.2.1-58
/usr/lib/libstdc++.so.5…FOUND
Prerequisite check complete.
Checking for standard system perl…

Checking for installable packages

Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-proxy

Select the packages to install

Install zimbra-ldap [Y] y

Install zimbra-logger [Y] y

Install zimbra-mta [Y] y

Install zimbra-snmp [Y] y

Install zimbra-store [Y] y

Install zimbra-apache [Y] y

Install zimbra-spell [Y] y

Install zimbra-proxy [N] y
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
zimbra-proxy

The system will be modified. Continue? [N] y
######################################3
Pada Zimbra 5.0.5 baris dibawah ini tidak ada

This platform is openSUSE_10.2
Packages found: zimbra-core-4.5.5_GA_838.SuSE10-20070503170511.i386.rpm
This may or may not work

Install anyway? [N] y
####################################

The system will be modified. Continue? [N] y

Removing /opt/zimbra
Installing packages

zimbra-core……zimbra-core-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-ldap……zimbra-ldap-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-logger……zimbra-logger-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-mta……zimbra-mta-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-snmp……zimbra-snmp-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-store……zimbra-store-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-apache……zimbra-apache-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-spell……zimbra-spell-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
zimbra-proxy……zimbra-proxy-5.0.5_GA_2201.openSUSE_10.2-20080417015216.i386.rpm…done
Operations logged to /tmp/zmsetup.01001900-0000139181808.log
Setting defaults…

DNS ERROR resolving MX for ns2.basma.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] y
Create Domain: [ns2.basma.com] basma.com
MX: mail.basma.com (192.168.0.1)

Interface: 192.168.0.1
Interface: 127.0.0.1
done.
Checking for port conflicts

DNS ERROR resolving MX for ns2.basma.co.id
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] y
Create Domain: [ns2.basma.co.id] basma.co.id
Warning: no ‘A’ record found for mail.basma.co.id.basma.co.id

Interface: 192.168.0.1
Interface: 127.0.0.1
Warning: no ‘A’ record found for mail.basma.co.id.basma.co.id
Warning: no ‘A’ record found for mail.basma.co.id.basma.co.id

DNS ERROR – none of the MX records for basma.co.id
resolve to this host
It is suggested that the MX record resolve to this host
Re-Enter domain name? [Yes]
[1]+ Stopped ./install.sh

Proses dihentikan Ctrl + Z. Lakukan pemeriksaan pada

*** Instalasi dihentikan jika ada kesalahan pada file /var/lib/named/master/basma.co.id.hosts

mail.basma.co.id. IN A 192.168.0.1
basma.co.id. IN MX 10 mail.basma.co.id.

(Penting : Berikan titik pada akhir mail.basma.co.id.)

*** Instalasi kembali ***

ns2:/opt/zcs # ./install.sh

DNS ERROR resolving MX for ns2.basma.co.id
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] y
Create Domain: [ns2.basma.co.id] basma.co.id
MX: mail.basma.co.id (192.168.0.1)

Interface: 192.168.0.1
Interface: 127.0.0.1
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@basma.com
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.8qhffp_0@basma.com
+Non-spam(Ham) training user: ham.r4jiiyro7d@basma.com
+Global Documents Account: wiki@basma.com
+SMTP host: ns2.basma.com
+Web server HTTP port: 80
+Web server HTTPS port: 443
+Web server mode: http
+IMAP server port: 7143
+IMAP server SSL port: 7993
+POP server port: 7110
+POP server SSL port: 7995
+Use spell check server: yes
+Spell server URL: http://ns2.basma.com:7780/aspell.php

4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-logger: Enabled
7) zimbra-spell: Enabled
8) zimbra-proxy: Enabled
9) 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@basma.com
** 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.8qhffp_0@basma.com
7) Non-spam(Ham) training user: ham.r4jiiyro7d@basma.com
8) Global Documents Account: wiki@basma.com
9) SMTP host: ns2.basma.com
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://ns2.basma.com:7780/aspell.php

Select, or ‘r’ for previous menu [r] 4

Password for admin@basma.com (min 6 characters): [ftP2UREK] passwordku

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@basma.com
4) Admin Password set
5) Enable automated spam training: yes
6) Spam training user: spam.8qhffp_0@basma.com
7) Non-spam(Ham) training user: ham.r4jiiyro7d@basma.com
8) Global Documents Account: wiki@basma.com
9) SMTP host: ns2.basma.com
10) Web server HTTP port: 80
11) Web server HTTPS port: 443
12) Web server mode: http
13) IMAP server port: 7143
14) IMAP server SSL port: 7993
15) POP server port: 7110
16) POP server SSL port: 7995
17) Use spell check server: yes
18) Spell server URL: http://ns2.basma.com:7780/aspell.php

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) zimbra-proxy: Enabled
9) 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.12148]
Saving config in /opt/zimbra/config.12148…done.
The system will be modified – continue? [No] y
Operations logged to /tmp/zmsetup.01001900-0000139181808.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.
Saving CA in ldap …done.
Creating server entry for ns2.basma.com…done.
Saving SSL Certificate in ldap …done.
Setting spell check URL…done.
Setting service ports on ns2.basma.com…done.
Adding ns2.basma.com to zimbraMailHostPool in default COS…done.

Installing skins…
yahoo
beach
bones
hotrod
bare
sand
lavender
lemongrass
steel
waves
sky
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 basma.com…done.
Creating user admin@basma.com…done.
Creating postmaster alias…done.
Creating user wiki@basma.com…done.
Creating user spam.8qhffp_0@basma.com…done.
Creating user ham.r4jiiyro7d@basma.com…done.
Setting spam training accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for ns2.basma.com…done.
Initializing logger sql database…done.
Initializing mta config…done.
Configuring SNMP…done.
Setting services on ns2.basma.com…done.
Setting up zimbra crontab…done.
Setting up syslog.conf…cp: cannot stat `/etc/syslog.conf’: No such file or directory
grep: /etc/syslog.conf: No such file or directory
syslogd: no process killed
Failed

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.5_GA_2201_UNKNOWN)
The ADMIN EMAIL ADDRESS created (admin@basma.com)

Notify Zimbra of your installation? [Yes] y
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=5.0.5_GA_2201_UNKNOWN&MAIL=admin@basma.com

ERROR: Notification failed
Starting servers…done.
Checking for deprecated zimlets…done.

Installing zimlets…
com_zimbra_email
com_zimbra_local
com_zimbra_cert_manager
com_zimbra_url
com_zimbra_phone
com_zimbra_date
done.
Initializing Documents…done.
Restarting mailboxd…done.

Moving /tmp/zmsetup.01001900-0000139181808.log to /opt/zimbra/log

Configuration complete – press return to exit

Instalasi Zimbra telah komplit. Selanjutnya

ns2:/home/dani # chkconfig –add zimbra ; chkconfig zimbra on
zimbra 0:off 1:off 2:off 3:on 4:off 5:on 6:off

ns2:/home/dani # su zimbra

zimbra@ns2:/home/dani> /opt/zimbra/bin/zmcontrol stop
Host ns2.basma.co.id
Stopping mta…Done
Stopping spell…Done
Stopping snmp…Done
Stopping antivirus…Done
Stopping antispam…Done
Stopping imapproxy…Done
Stopping mailbox…Done
Stopping logger…Done
Stopping ldap…Done

TAHAP AKHIR INSTALASI

Setelah proses instalasi selesai, jalankan perintah berikut :
1. Jalankan ————> chkconfig –del zimbra
2. Edit file /etc/init.d/zimbra dan tambahkan baris berikut tepat dibawah komentar. Komentar ada pada bagian atas file.
### BEGIN INIT INFO
# Provides: zimbra
# Required-Start: $network $syslog
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Zimbra mail service
### END INIT INFO
3. Ganti tulisan “killall -HUP syslogd” dengan /sbin/rcsyslog restart pada
file /opt/zimbra/bin/zmsyslogsetup dan /opt/zimbra/conf/zmlogrotate
4. Restart daemon syslog dengan perintah :
/sbin/rcsyslog restart
Jalankan perintah berikut agar Zimbra otomatis berjalan saat booting
chkconfig –add zimbra ; chkconfig zimbra on

5. Jalankan perintah untuk melakukan proses restart Zimbra
ns2:/opt/zimbra/conf # su zimbra

zimbra@ns2:~/conf> /opt/zimbra/bin/zmcontrol start
Host ns2.basma.com
Starting ldap…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting imapproxy…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
zimbra@ns2:~/conf> /opt/zimbra/bin/zmcontrol stop
Host ns2.basma.com
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@ns2:~/conf> exit

Zimbra sudah dapat dibuka melalui browser Firefox.
Zimbra administrator dengan mengetik alamat https://192.168.0.1:7071
Zimbra Klien dengan mengetik alamat http://192.168.0.1

This entry was posted in Email Server. Bookmark the permalink.

Leave a comment