Building Zimbra on Fedora Core 5 and x86 64

Revision as of 19:47, 9 May 2006 by JoshPrismon (talk | contribs)

Unfortuntily the standard zimbra documentation is way out of date. As I hit issues with this, I will update this page and the documetation below.

Check the Source Code out from Main

Check the source code out:

  cvs -z6 -d co main
  • Does anyone know what the difference is in the CRAY versus MAIN branch?

Building the Web Server for Zimlets.

Zimbra uses a httpd instance for Zimlets and the spell checker. Apache 2.0.54 is used for this. Zimbra documentation has a tendency to be wrong about versions, so check the makefile carefully for whatever version the software is currently expecting.

  • Zimbra Folks... Would it be possible to put up a copy of the ThirdParty stuff uncompiled? You loose a lot of time just digging for the software

Build the web server:

  cd main/ThirdParty/apache-httpd
  sudo make

The final output should look like:

  (cd /opt/zimbra; tar czf \
  /home/Projects/Source/Zimbra/main/ThirdParty/apache-httpd/builds/UNKNOWN/httpd-2.0.54.tgz \
  chmod -R a+w \

Amavisd -- Mail filtering in the Secure Layer

Zimbra segregates itself by using two seperate mail systems. The first email server is Postfix. Postfix receives the emails from the outside world and passes them on to a perl program called Amavis. Amavis integrates Postfix with Spamassasin, ClamAV and DSPAM and provides standard site wide filtering actions and returns the email to postfix.

  • Be very careful if you are screwing with Postfix. Chances are you could probably do it in Amavis.
  • Be cautious about security. Postfix is designed to be fast and secure, but email security problems have only recently be passed by web security problems as hackers entry way of choice.

To Install Amavisd, you need to do the following:

 cd ../amavisd
 tar xzf amavisd-new-2.3.3.tar.gz
 cd amavisd-new-2.3.3
 patch -p0 < ../amavisd.2.3.3.patch

Amavis does not have a Makefile. We can't test the build until we build the whole thing.

Net Snmp

Net Snmp monitors the server in the industry standard snmp format.

  mkdir ../snmp
  get net-snmp-5.1.2.tar.gz (You have to dig for this. I found it at
  tar xzf net-snmp-5.1.2.tar.gz
  cd net-snmp-5.1.2
  ./configure --prefix=/opt/zimbra/snmp-5.1.2( Some questions where asked here. I went with the defaults, but if anything breaks, this is a good thing to check)
  sudo make install
  cd /opt/zimbra
  sudo tar czf snmp-5.1.2.tar.gz snmp-5.1.2
  cd  your zimbra Directory/ThirdParty/snmp
  sudo /opt/zimbra/snmp-5.1.2.tar.gz .


Aspell enables the spelling service for Zimbra. Unfortuntily the version of aspell is behind the times and has a few problems with the more modern gcc-g++. So we are going to build this package using the compat-gcc instead (GCC 3.2). To do that, change the Makefile in the aspell directory. Go to the line that includes ./configure and change it to be the following:

  ./configure --prefix=/opt/zimbra/aspell-$(ASPELL_VERSION) CXX=g++32; make)

Newer version of Aspell also have this problem. Revised install:

  cd ../aspell
  Edit the make file and change the configure line to    ./configure --prefix=/opt/zimbra/aspell-$(ASPELL_VERSION) CXX=g++32; make)


ClamAV provides the basic virus protection for Zimbra.

Since the instructions on this section are wrong, I redid this section with the newest clamav.

Edit the Make file in the clamav folder to point at the new version

    CLAMAV_VERSION ?= 0.88.2
    sudo make

The very last part of it fails because of the extra .2

    sudo tar czf /home/Projects/Source/Zimbra/main/ThirdParty/clamav/builds/UNKNOWN/clamav-0.88.2.tgz clamav-0.88/


Tomcat is the primary web server for the Java backends

  mkdir ../jakarta-tomcat
  cd ../jakarta-tomcat

Mysql</h> cd ../mysql mkdir FC5 ln -s FC5 UNKNOWN cd FC5 wget Here comes the interesting part. The howto says to grab a client libs zip, that does't exist. So we need to built it ourselves: wget tar xvfz mysql-4.1.16.tar.gz cd mysql-4.1.16 ./configure make cd libmysql cd .libs/ tar cvfz mysql-standard-4.1.16-clientlibs.tgz Then copy that intothe mysql/unknown directory. From Mysql make mkdir -p /opt/zimbra (cd /opt/zimbra; \ tar xzf /home/Projects/Source/Zimbra/main/ThirdParty/mysql/UNKNOWN/mysql-standard-4.1.16-pc-linux-gnu-i686-glibc23.tar.gz) (cd /opt/zimbra/mysql-standard-4.1.16-pc-linux-gnu-i686-glibc23/lib; \ tar xzf /home/Projects/Source/Zimbra/main/ThirdParty/mysql/UNKNOWN/mysql-standard-4.1.16-clientlibs.tgz)

Jump to: navigation, search