New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1337 votes ~ 14 comments )

 

Weblog entry #1 for amsin

Zimbra 5.0.2 GA on Debian Etch
Posted by amsin on Tue 4 Mar 2008 at 08:42
My reference:
http://howtoforge.com/zimbra-collaboration-suite-5.0-on-debian-etch

Zimbra Colaboration Suite - 5.0.2 GA Release Open Source Edition

The Zimbra Collaboration Suite includes the Zimbra MTA, the Zimbra LDAP server, and the Zimbra mailbox server. In a single-server installation, all components are installed on one server and require no additional manual configuration. This installation guide is a quick start guide that describes the basic steps needed to install and configure the Zimbra Collaboration Suite in a direct network connect environment. In this environment, the Zimbra server is assigned a domain for which it receives mail, and a direct network connection to the Internet. When the Zimbra Collaboration Suite is installed, you will be able to log on to the Zimbra administration console to manage the domain and provision accounts. The accounts you create will be able to send and receive external email.

Important Notice About Single Server Installations

The Zimbra Collaboration Suite is designed to be the only application suite installed on the server. The Zimbra Collaboration Suite bundles and installs, as part of the installation process various other third party and open source software, including Apache Jetty, Postfix, OpenLDAP, and MySQL. The versions installed have been tested and configured to work with the Zimbra software.

Important:You cannot have any other web server, database, LDAP, or MTA server running, when you install the Zimbra software. If you have installed any of the applications, before you install Zimbra software, disable these applications. During the ZCS install, Zimbra makes global system changes that may break applications that are on your server.

System requirements
Production environments:

Intel/AMD CPU 32-bit 2.0 GHZ+.
For large deployments (more than 2000 users), 64-bit OS is recommended.
Minimum - 2 GB RAM / Recommend - 4 GB
Temp file space for installs and upgrades*
10 GB free disk space for software and logs (SATA or SCSI for performance, and RAID/Mirroring for redundancy)
Additional disk space for mail storage
Temp files space- The zimbra-store requires 5GB for /opt/zimbra, plus additional space for mail storage. The other nodes require 100MB.

General Requirements:

Firewall Configuration should be set to "No firewall", and the Security Enhanced Linux (SELinux) should be disabled
RAID-5 is not recommended for installations with more than 100 accounts.

Operating system supported:

Red Hat Enterprise Linux 5 x86
Red Hat Enterprise Linux 5 x86_64
Red Hat Enterprise Linux 4 x86
Red Hat Enterprise Linux 4 x86_64
Red Hat Fedora 7 x86
Debian 4 x86
MacOS X x86
openSUSE Linux 10.2 x86
SUSE Linux Enterprise Server 10 x86
SUSE Linux Enterprise Server 10 x86_64
Ubuntu 6.06 LTS x86

Other Dependencies

For Red Hat Enterprise, Fedora Core and SuSE operating systems, the server must also have the following installed:

  1. NPTL. Native POSIX Thread Library
  2. Sudo. Superuser, required to delegate admins.
  3. libidn. For internationalizing domain names in applications (IDNA)
  4. cURL. A command line tool for transferring files with URL syntax
  5. fetchmail. A remote-mail retrieval and forwarding utility used for on-demand TCIP/IP links.
  6. GMP. GNU Multiple-Precision Library.
  7. compat-libstdc ++-33. Compatibility Standard C++ libraries.
  8. NOTE: The 32-bit version of the compat-libstdc rpm package is required for both 32-bit or 64-bit servers.
  9. For Red Hat Enterprise only: compat-libstdc ++-296
Miscellaneous
  • SSH client software to transfer and install the Zimbra Collaboration Suite software.
  • Valid DNS configured with an A record and MX record
  • Servers should be configured to run Network Time Protocol (NTP) on a scheduled basis
The default port configurations when Zimbra is installed: Default port usage:
* Postfix 25
* HTTP 80
* POP3 110
* IMAP 143
* LDAP 389
* HTTPS 443
* Tomcat IMAP SSL 993
* Tomcat POP SSL 995
* Tomcat LMTP 7025
Steps to follow:

Install and configure Debian Etch 4.0 with disk mirroring (RAID1). Apply all updates available. When you install the Debian Etch 4 for the Zimbra Collaboration Suite, accept the default setup answers, except for the Disk Partition Setup, the Network Configuration, the Gateway and Primary DNS addresses.
The disk partition should be set up as follows:

The Mount Point/RAID Volume size for the Boot partition (/boot) should be 1GB.
The Swap partition should be set to twice the size of the RAM on your machine.
The Root partition (/) should be set with the remaining disk space size.
Enable The root Account
$ sudo passwd root
Password: Enter root password
Password again: Renter password for confirmation
Afterwards, become root by running
$ su
Password: Enter root password
#
All following commands in this howto are executed as root (unless specified). Install The SSH Daemon
# apt-get install ssh openssh-server
Configure system to have a static IP Address And hostname
Edit /etc/network/interfaces and adjust it to our needs (in this howto setup we will use the IP address 192.168.10.110):
# vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.10.110
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
Then restart your network:
#/etc/init.d/networking restart
Then edit /etc/hosts. Make it look like this:
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.10.110 server.ourdomain.net server
# The following lines are desirable for IPv6 capable hosts
1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Now run:
# echo server.ourdomain.net > /etc/hostname
and reboot the system:
# shutdown -r now
Afterwards, run
# hostname
# hostname -f
Hostname should show "server" and hostname -f should show "server.ourdomain.net"

Important: You will need to disable/remove Sendmail/postfix/exim in order to run the Zimbra Collaboration Suite. For example, to disable Postfix on your system, run:
# /etc/init.d/postfix stop
# update-rc.d -f postfix remove
Install prerequisites for Zimbra:
# apt-get install curl fetchmail libpcre3 libgmp3c2 libexpat1 libxml2 libtie-ixhash-perl
Afterwards, go to http://www.zimbra.com/community/downloads.html and download the Debian 4 x86 package to a desired directory (normally to /usr/src/).
# cd /usr/src
# wget http://files.zimbra.com/downloads/5.0.2_GA/zcs-5.0.2_GA_1975.DEBIAN4.0.20080130234700.tgz
Unpack the Zimbra .tgz file and start the installer:
# tar xvfz zcs-5.0.2_GA_1975.DEBIAN4.0.20080130234700.tgz
# cd zcs-5.0.2_GA_1975.DEBIAN4.0.20080130234700/
# ./install.sh
Overview of Installation Process When you run the install script, the Zimbra install verifies that the correct prerequisite packages are available to be installed.

* Zimbra Core installs the libraries, utilities, and monitoring tools.

* Zimbra LDAP installs the OpenLDAP software, which provides open source LDAP directory services.

* Zimbra MTA installs the Postfix open source MTA, the Clam AntiVirus antivirus engine, the SpamAssassin junk mail filter, and the Amavisd-New content filter.

* Zimbra Store installs the mailbox server, including Jetty, the servlet container for the Zimbra server.

* Zimbra Spell installs the Aspell open source spelling checker. When Zimbra spell is installed, Zimbra-Apache is also installed.

* Zimbra SNMP installs the SNMP package for monitoring. This package is optional.

* Zimbra Logger installs tools for syslog aggregation, reporting, and message tracing. If you do not install Logger, you cannot use the message trace feature, the server statistics are not captures, and the server statistics section of the administration console does not display.

* Zimbra Proxy installs the proxy feature. Using an IMAP/POP proxy server allows mail retrieval for a domain to be split across multiple Zimbra servers on a per user basis.

The Zimbra server configuration is menu driven. The installation menu shows you the default configuration values. The menu displays the logical host name and email domain name [mail.ourdomain.net] as configured on the computer. You can change any of the values. For single server installs, you must define the administrator password, which you use to log on to the administration console, and you specify the location of the Zimbra license xml file.

Basic Configuration
The default configuration installs the Zimbra-LDAP, the Zimbra-MTA with anti-virus and anti-spam protection, the Zimbra mailbox server, the SNMP monitoring tools (optional), Zimbra-spell (optional), the logger tool (optional), and the Zimbra proxy (optional) on one server.
The menu driven installation displays the components and their existing default values. The During the installation process you can modify the information.
The '''install.sh''' script reviews the installation software to verify that the Zimbra packages are available. Find below the install log of Zimbra on development server.
# ./install.sh

Operations logged to /tmp/install.log.3571
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-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-4
libidn11...FOUND libidn11-0.6.5-1
curl...FOUND curl-7.15.5-1etch1
fetchmail...FOUND fetchmail-6.3.6-1etch1
libgmp3c2...FOUND libgmp3c2-2:4.2.1+dfsg-4
libxml2...FOUND libxml2-2.6.27.dfsg-2
libstdc++6...FOUND libstdc++6-4.1.1-21
openssl...FOUND openssl-0.9.8c-4etch1

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]
Install zimbra-store [Y]
Install zimbra-spell [Y]
Install zimbra-proxy [N]
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

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

Removing /opt/zimbra
Installing packages

zimbra-core......zimbra-core_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...
zimbra-ldap......zimbra-ldap_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...
zimbra-logger......zimbra-logger_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...
zimbra-mta......zimbra-mta_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...done
zimbra-snmp......zimbra-snmp_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...done
zimbra-store......zimbra-store_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...
zimbra-apache......zimbra-apache_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...done
zimbra-spell......zimbra-spell_5.0.0_RC1_1538.DEBIAN4.0_i386.deb...done
Operations logged to /tmp/zmsetup.log.6277
Setting defaults...
done.
Checking for port conflicts

Main menu

1) Hostname: server.ourdomain.net
2) Ldap master host: server.ourdomain.net
3) Ldap port: 389
4) Ldap password: set
5) TimeZone: (GMT-08.00) Pacific Time (US & Canada)
6) zimbra-ldap: Enabled
7) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@server.ourdomain.net
******* +Admin Password UNSET
+Enable automated spam training: yes
+Spam training user: spam.oaorqxue@server.ourdomain.net
+Non-spam(Ham) training user: ham.qucwgmev@server.ourdomain.net
+Global Documents Account: wiki@server.ourdomain.net
+SMTP host: server.ourdomain.net
+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://server.ourdomain:7780/aspell.php

8) zimbra-mta: Enabled
9) zimbra-snmp: Enabled
10) zimbra-logger: Enabled
11) zimbra-spell: Enabled
r) Start servers after configuration yes
s) Save config to file
x) Expand menu
q) Quit

Address unconfigured (**) items (? - help) 7


Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@server.ourdomain.net
** 4) Admin Password UNSET
5) Enable automated spam training: yes
6) Spam training user: spam.oaorqxue@server.ourdomain.net
7) Non-spam(Ham) training user: ham.qucwgmev@server.ourdomain.net
8) Global Documents Account: wiki@server.ourdomain.net
9) SMTP host: server.ourdomain.net
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://server.ourdomain.net:7780/aspell.php

Select, or 'r' for previous menu [r] 4

Password for admin@server.ourdomain.net (min 6 characters): [SsaKudUL] Enter the password

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@server.ourdomain.net
4) Admin Password set
5) Enable automated spam training: yes
6) Spam training user: spam.oaorqxue@server.ourdomain.net
7) Non-spam(Ham) training user: ham.qucwgmev@server.ourdomain.net
8) Global Documents Account: wiki@server.ourdomain.net
9) SMTP host: server.ourdomain.net
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://server.ourdomain.net:7780/aspell.php

Select, or 'r' for previous menu [r] r

Main menu

1) Hostname: server.ourdomain.net
2) Ldap master host: server.ourdomain.net
3) Ldap port: 389
4) Ldap password: set
5) TimeZone: (GMT-08.00) Pacific Time (US & Canada)
6) zimbra-ldap: Enabled
7) zimbra-store: Enabled
8) zimbra-mta: Enabled
9) zimbra-snmp: Enabled
10) zimbra-logger: Enabled
11) zimbra-spell: Enabled
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] y
Save config in file: [/opt/zimbra/config.9329]
Saving config in /opt/zimbra/config.9329...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup.log.9329
Setting local config values...done.
Setting up CA...done.
Creating SSL certificate...done.
Initializing ldap...Started slapd: pid 10822
adding new entry "cn=zimbra"
adding new entry "cn=admins,cn=zimbra"
adding new entry "uid=zimbra,cn=admins,cn=zimbra"
adding new entry "uid=zmreplica,cn=admins,cn=zimbra"
adding new entry "uid=zmpostfix,cn=admins,cn=zimbra"
adding new entry "cn=zimlets,cn=zimbra"
adding new entry "cn=cos,cn=zimbra"
adding new entry "cn=servers,cn=zimbra"
adding new entry "cn=config,cn=zimbra"
adding new entry "cn=default,cn=cos,cn=zimbra"
adding new entry "cn=mime,cn=config,cn=zimbra"
adding new entry "cn=message/rfc822,cn=mime,cn=config,cn=zimbra"
adding new entry "cn=text/html,cn=mime,cn=config,cn=zimbra"
adding new entry "cn=text/enriched,cn=mime,cn=config,cn=zimbra"
adding new entry "cn=text/plain,cn=mime,cn=config,cn=zimbra"
adding new entry "cn=text/calendar,cn=mime,cn=config,cn=zimbra"
adding new entry "cn=all,cn=mime,cn=config,cn=zimbra"
done.
Deploying CA in ...done.
Installing SSL certificate...done.
Installing SSL certificate...done.
Creating server entry for server.ourdomain.net...done.
Setting spell check URL...done.
Setting service ports on server.ourdomain.net...done.
Adding server.ourdomain.net to zimbraMailHostPool in default COS...done.
Installing skins...
steel
bare
sand
allure
gorilla
charcoal
fresh
curls
nature
bones
waves
hotrod
endless
lavender
sky
harvest
vanilla
rose
froggy
fields
lemongrass
done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Creating domain server.ourdomain.net...done.
Creating user admin@server.ourdomain.net...done.
Creating postmaster alias...done.
Creating user wiki@server.ourdomain.net...done.
Creating user spam.oaorqxue@server.ourdomain.net...done.
Creating user ham.qucwgmev@server.ourdomain.net...done.
Setting spam training accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for server.ourdomain.net...done.
Initializing logger sql database...done.
Initializing mta config...done.
Configuring SNMP...done.
Setting services on server.ourdomain.net...done.
Setting up zimbra crontab...no crontab for zimbra
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.0_RC1_1538_DEBIAN4.0)
The ADMIN EMAIL ADDRESS created (admin@server.ourdomain.net)

Notify Zimbra of your installation? [Yes] n
Notification skipped
Starting servers...done.
Installing zimlets...
com_zimbra_html
com_zimbra_email
com_zimbra_date
zimbra_cert_manager
com_zimbra_phone
com_zimbra_url
com_zimbra_search
done.
Initializing Documents...done.
Restarting mailboxd...done.
Operations logged to /tmp/zmsetup.log.9329
Configuration complete - press return to exit
To test if all Zimbra services are running, become the zimbra user:
# su - zimbra
zimbra@server:~$zmcontrol status
The output should look like this:

zimbra@server:~$ zmcontrol status
Host server.ourdomain.net
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
If not all services are started, run
zimbra@server:~$ zmcontrol start

zimbra@server:~$ zmcontrol status
Type '''exit''' to become root again.

To access user account: https://mailserver.ourdomain.net

To access admin site : https://mailserver.ourdomain.net:7071

Uninstalling Zimbra Collaboration Suite

To uninstall servers you run the install script -u and then delete the zcs directory and remove the zcs.tgz file on the servers.

1.cd to the original install directory for the zcs files.

2.Type ./install.sh -u.

3.When Completely remove existing installation? is displayed, type Yes.The Zimbra servers are stopped, the existing packages, the webapp directories, and the /opt/zimbra directory are removed.

4.Delete the zcs directory, type rm -rf [zcsfullfilename].

5.Delete the zcs.tgz file.

 

 

 

Flattr