Johns Hopkins Linux Users GroupMain Page | About | Help | FAQ | Special pages | Log in


Printable version | Disclaimers | Privacy policy

Zimbra on Ubuntu Server

From Johns Hopkins Linux Users Group

Updated Oct 19, 2009 ajs


Contents

What is Zimbra?

"Modern, Innovative Email & Collaboration
Make email manageable again, change the way you work with others"

Most of the meaningful text you see "quoted" in this article is cut/paste from the zimbra website. Most of the comments are probably my own or a wiki contributor's.

Open Source Edition 6.0

Yahoo Public License - YPL

"ZCS Open Source Edition is available for you to test, evaluate, deploy, customize, and improve. In doing so we also hope you will participate in the Zimbra Community, so that we can work together to make ZCS a better product for everyone. It is free in perpetuity (providing you comply with the associated licensing terms). It does not, however, include Zimbra Support or software subscription."

Dedicated Server Required

"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®."

Infrastructure Setup

    For example (yours will be different):
      # Local network interface
      auto eth0
      iface eth0 inet static
      address 192.168.30.72
      netmask 255.255.255.0
      network 192.168.30.0
      broadcast 192.168.30.255
      gateway 192.168.30.1
      dns-nameservers 192.168.30.80
 For Example:
  DNS Record     Host Name     LAN IP     WAN IP  
  A - Host     zmail     192.168.30.72     69.17.69.101  
  MX - Mail Exchanger     zmail.mydomain.com  

 For Example:
 127.0.0.1      zmail.mydomain.com  zmail
 192.168.30.72  zmail.mydomain.com  zmail
  Zimbra Port Mapping
  Remote Queue Manager  22 
  Postfix  25 
  HTTP  80 
  POP3  110 
  IMAP  143 
  LDAP  389 
  HTTPS  443 
  Mailboxd IMAP SSL  993 
  Mailboxd POP SSL  995 
  Mailboxd LMTP  7025 
  Admin Console 7071
 sudo apt-get install ssh

Dependencies

 Sudo 
 libidnll 
 libpcre3 
 libexprt1 
 libstd++6  
 libstd++5 
 libgmp3C2
 sudo apt-get install libpcre3 libgmp3c2 libstdc++5 sysstat
 sudo apt-get update

Installation

 For Example:  
 1.  In  PuTTY on the server, create and go to a temporary folder like /var/tmp
 2.  On the remote workstation, find the URL for the download
 3.  Copy the URL to your clipboard.  Note: The URL hasn't changed in at least 3 days now, so you can probably try the one below.
 4.  In PuTTY, enter a wget command and right-click to paste the
     URL after it.
 
 /var/tmp$ wget http://h.yimg.com/lo/downloads/6.0.1_GA/zcs-6.0.1_GA_1816.UBUNTU8.20090911174852.tgz
 5.  Sudo Extract the tgz file and run its intall script  
 /var/tmp$ sudo tar zxvf zcs-6.0.1_GA_1816.UBUNTU8.20090911174852.tgz
 /var/tmp$ cd zcs-6.0.1_GA_1816.UBUNTU8.20090911174852
 /var/tmp/zcs-6.0.1_GA_1816.UBUNTU8.20090911174852$ sudo ./install.sh

Problem: Uses host name as the domain name

 DNS ERROR resolving MX for zmail.mydomain.net
 It is suggested that the domain name have an MX record configured in DNS
 Change domain name? [Yes]
 Create domain: [zmail.mydomain.net] mydomain.net
       MX: zmail.mydomain.net (192.168.30.72)
       Interface: 192.168.30.72
       Interface: 127.0.0.1

Complete the Installation

Problem: Ubuntu Uses sudo

 $ su - zimbra
   -> Password: *****
   su: Authentication failure

Work Around Commands

 sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
 sudo -u zimbra /opt/zimbra/bin/zmcontrol start
 sudo -u zimbra /opt/zimbra/bin/zmcontrol status

It Works - We Think!

The Administrator:  Console https://zmail.mydomain.net:7071

Note: Requires FLASH for Server Statistics chart display.

The Web Client:  http://zmail.mydomain.net


Configuration

Global Configuration

Zimbra Desktop

Oct 19, 2009

Installation

 chmod +x zdesktop_1_0_3_build_1691_linux_i686.sh
 ./zdesktop_1_0_3_build_1691_linux_i686.sh
 sudo -u zimbra /opt/zimbra/bin/zmtlsctl mixed
 sudo reboot

Note 1: We have to reboot because the logger service will not restart if we simply restart the Zimbra services (see Bugs section below).

Note 2: Zimbra Client does not behave as documented for zmtlsctl both so it will not work for self signed SSL certificates.


Bugs

 Created an attachment (id=18631)  
 replacement for /opt/zimbra/libexec/zmrrdfetch
 cd /opt/zimbra/libexec
 sudo wget http://bugzilla.zimbra.com/attachment.cgi?id=18631
 sudo mv zmrrdfetch zmrrdfetch.bkup1
 sudo mv attachment.cgi?id=18631 zmrrdfetch
 sudo chmod +rwx zmrrdfetch
 ls -l -> -rwxr-xr-x 1 root root   8219 2009-10-01 09:10 zmrrdfetch
 sudo reboot

Better stick with the Web Client until this bug is fixed if intending to use Zimbra for collaboration.


About the Author - Arnold

The author is still a Linux novice and needs to put this article here so he can remember how he did it. This is especially important if the task cannot be completed in one session.

Retrieved from "http://www.jhlug.org/wiki/index.php/Zimbra_on_Ubuntu_Server"

This page has been accessed 1,266 times. This page was last modified on 20 October 2009, at 01:02.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More…