Page 1 of 8 123 ... LastLast
Results 1 to 10 of 74

Thread: I got Ubuntu and Zimbra working

  1. #1
    Join Date
    Oct 2006
    Rep Power

    Default I got Ubuntu and Zimbra working

    There have been a few posts on Zimbra problems with Ubuntu, including one where a poster asked if anybody had managed to get it working--to no response. Well, I have it working, mostly, and figured I'd share what I had to do to get here. I'm able to send and recieve messages, use address book, calendar, web and pop interface, etc.

    My configuration is Ubuntu 6.06.1 i386 server and zcs-4.0.2_GA_362.UBUNTU6.tgz. The box lives behind a firewall, so split DNS was needed, and it is substantially different on Ubuntu than the RH version described in the wiki article. I'm also using Ubuntu 6.06 (Dapper) not 6.10 (Edgy)--As of this writing Edgy is still pre-release and I wanted to do my testing on a 'supported' configuration. I replaced my domain with MYDOMAIN, and the machine's local IP number with, adjust your settings accordingly.
    1. Install Ubuntu server.
      1. I used the default install, not the LAMP option. I figure Zimbra installs all of it's own server programs, so why go through the hassle of disabling the LAMP versions before installing zimbra.
      2. I unplugged the network cable before installing so I could do the network setup during the install. With the cable plugged in, the installer grabs DHCP info, and I wanted more control over the network config. For example, I set the DNS entries to my ISP's DNS servers instead of the internal ones provided by DHCP. No network connection will make it hang for a while trying to update apt's repositories, but it eventually moves on.
    2. After the install reboots, drop the install CD back in, log in, and sudo apt-get install ssh openssh-server. While you can type everything in at the console, I prefer to fire up PUTTY and use cut/paste for the rest of the steps.
    3. Install from the CDs.
      Several Zimbra pre-reqs are missing from the default Ubuntu install, as are a couple things that will cause problems later.
      You can preface every command with sudo, or run sudo bash to get a root session running.
      1. apt-get install libidn11 curl libpcre3 libgmp3c2 libxml2
        - curl also installs openssl
      2. apt-get install perl
        - Perl is actually installed, but not all of it. For example perl-modules is needed to prevent Getopt/ error (Getopt::Std). This will install the rest.
    4. Update, and install software not on the CD
      1. Plug the network cable in.
      2. Turn on the repositories
        • edit the sources.list: /etc/apt/sources.list
        • Uncomment everything that is mainrestricted or universe but not a backport.
        • change * for a suitable mirror close to you
        • comment out the cd-rom line
        • save and exit
      3. apt-get update
      4. apt-get upgrade
        - 35Meg, may take a while
      5. apt-get install fetchmail
      6. apt-get install expat
        installs expat libexpat1 . Needed to start spell
      7. apt-get install bind
        For doing split DNS. Needed because I'm behind a firewall.
        Should this be apt-get install bind9? Probably, but for a test box I'm sticking with what I at least know a little.
    5. edit /etc/hosts
      Code:       localhost.localdomain localhost mail
    6. configure bind for split DNS. This is somewhat different from the Wiki Article mainly because things are in different places.
      1. edit /etc/bind/named.conf.options
         // forwarders {
        // };
        uncomment and change to reflect your own upstream DNS servers. In my case they are Bresnan, adjust yours accordingly.
        forwarders {;; 
      2. Append to /etc/bind/named.conf.local
        	// We are the master server for
        	zone "" {
        		type master;
        		file "";
      3. create the zone file: /var/cache/bind/
        ;       Addresses and other host information.
        @       IN      SOA (
                                       10118      ; Serial
                                       43200      ; Refresh
                                       3600       ; Retry
                                       3600000    ; Expire
                                       2592000 )  ; Minimum
        ;       Define the nameservers and the mail servers
                       IN      NS
                       IN      A
                       IN      MX      10
      4. modify /etc/resolv.conf
        change upstream name servers to your own IP:
      5. /etc/init.d/bind reload
      6. to test it, nslookup should point to
    7. install Zimbra
      1. check the Quick Start pdf
      2. get zcs-4.0.2_GA_362.UBUNTU6.tgz into tmp directory somehow -- I used FTP from my local FTP server. 215278127 bytes received in 19.19 secs
      3. tar xzvf zcs-4.0.2_GA_362.UBUNTU6.tgz
      4. cd zcs
      5. ./
        As explained in the quickstart guide, the only thing I did for the install was change the admin password.
    8. At this point for me, server status and graphs were not showing up.
      add the following as line 31 to /opt/zimbra/libexec/zmlogprocess
       use lib "/opt/zimbra/zimbramon/lib/i386-linux-thread-multi";
      and add the following as line 30 to /opt/zimbra/libexec/zmgengraphs
      use lib '/opt/zimbra/zimbramon/lib/i386-linux-thread-multi';
      A restart of Zimbra might work (su - zimbra and then zimbra@mail:~$ zmcontrol start) but It didn't for me. Since I had installed a bunch of things without a reboot, I decided to reboot the machine. After it came back up, Server status was working. Graphs took longer to show up, looks like they might be on a chron job or maybe need enough logging data to have something to graph.
    9. Test it!
      When I reached this point, mine was working.

    Update: I got brave and did apt-get install bind9 just to see what would happen. It stopped and uninstalled the current version of bind, and loaded Bind v9. It gave me the option of keeping my config files (which I did) and started up with no errors. Now I can run named-checkconf and named-checkzone to confirm the bind setup is ok.
    Another Update: Upgraded to ver 4.0.3. Aside from having to re-edit zmgengraphs and zmlogprocess, and reboot the server to get all processess running again, it went very well. About half an hour, including download time.
    Last edited by pacsteel; 10-25-2006 at 04:54 PM. Reason: IP clarification and bind update. Edit2-got graphs working. Edit3-Upgraded to 4.0.3

  2. #2
    Join Date
    Oct 2006
    Rep Power


    Much appreciated! I'll give this a shot over the next couple days. One thing that you may want to clarify in your examples are whether the's are the internal IP or the external IP.

    Please keep us updated on your Edgy installation adventures!

  3. #3
    Join Date
    Oct 2006
    Rep Power


    Figured out the graphing problem. /tmp/gengraphs.out showed that it was having exactly the same problem as the logging--unable to locate

    I added the following as line 30 to /opt/zimbra/libexec/zmgengraphs and restarted
    use lib '/opt/zimbra/zimbramon/lib/i386-linux-thread-multi';
    I've updated my first post accordingly.

  4. #4
    Join Date
    Oct 2006
    Rep Power


    Excellent guide! I got it working in a few hours and I'm starting to play with it as I type this. THANKS!!

  5. #5
    Join Date
    Oct 2005
    Rep Power

    Thumbs up Nice guide I will explore it very soon

    Thanks a lot for Your documentation. I will recommend it in Ubuntu forums as well.

    I have to change some disks to my production server before I can start the ZCS journey.

    I am very excited to try it out. Will post my comments later.

    Best regards Daniel Mersebak

  6. #6
    Join Date
    Sep 2006
    SE Queensland - Australia
    Rep Power

    Default I love your work

    Thanks for sharing your experience. What you have done is almost identical to what I am in the midst of right now. I previously set up a Ubuntu (breezy) server with Zimbra 4.0.1 as a testbed and am putting together a production model now but went to Zimbra 4.0.2 (as suggested elswere in these forums) and have had to also go to Dapper Drake to be able to use the available Zimbra package. I'm sure things will go smoothly now that I can use the info that has been posted here.


  7. #7
    Join Date
    Sep 2006
    SE Queensland - Australia
    Rep Power


    I just finished my install and all appeard to go well. I inserted the two "use" statements as pacsteel detailed above - rebooted and checked my statistics page. . . . . No graphs

    I also get "Server Error Encountered" whenever I click onto the Mail Queues folder - also no details on the displayed page - everything just says "loading....."

    The details in the error message box are:
    ************************************************** *********
    Message: system failure: exception during auth {RemoteManager:>}
    com.zimbra.cs.service.ServiceException: system failure: exception during auth {RemoteManager:>}
    at com.zimbra.cs.service.ServiceException.FAILURE(Ser
    at com.zimbra.cs.rmgmt.RemoteManager.getSession(Remot
    at com.zimbra.cs.rmgmt.RemoteManager.execute(RemoteMa
    at com.zimbra.cs.service.admin.GetMailQueueInfo.handl e(
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:162)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:84)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:223)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at ternalDoFilter(
    at Filter(
    at org.apache.catalina.core.StandardWrapperValve.invo ke(
    at org.apache.catalina.core.StandardContextValve.invo ke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke (
    at org.apache.catalina.core.StandardEngineValve.invok e(
    at org.apache.catalina.valves.AccessLogValve.invoke(A
    at org.apache.catalina.connector.CoyoteAdapter.servic e(
    at org.apache.coyote.http11.Http11Processor.process(H
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt
    at Socket(
    at ead.runIt(
    at org.apache.tomcat.util.threads.ThreadPool$ControlR
    Caused by: There was a problem while talking to
    at ch.ethz.ssh2.Connection.connect( 2)
    at ch.ethz.ssh2.Connection.connect( 0)
    at com.zimbra.cs.rmgmt.RemoteManager.getSession(Remot
    ... 24 more
    Caused by: Connection refused
    at Method)
    at .java:333)
    at ava:182)
    at ava:366)
    at ch.ethz.ssh2.transport.TransportManager.initialize (
    at ch.ethz.ssh2.Connection.connect( 1)
    ... 26 more

    Error code: service.FAILURE
    Method: ZmCsfeCommand.prototype.invoke
    ************************************************** ********

    This is not a great problem for me at this stage but if someone knows how to fix it I'd appreciate the info.

  8. #8
    Join Date
    Aug 2005
    Rep Power

    Default ssh disabled?

    Quote Originally Posted by bizzo
    Caused by: There was a problem while talking to
    Looks like you have ssh disabled or running on an alternate port.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  9. #9
    Join Date
    Dec 2005
    Rep Power

    Default Ditto

    I also have ZCS on a Ubuntu 6.06 LTS with zcs-4.0.2_GA_362.DEBIAN3.1.tgz, I didn't note every step to take but it looks similiar to yours, everything was pretty straightforward. The errors and logs made it clear what had to be added to get the various components running.

    I used dnsmasq for the dns though.

  10. #10
    Join Date
    Sep 2006
    SE Queensland - Australia
    Rep Power

    Thumbs up

    Spot on ! I installed openssh server and I now have mail queue statistics

    Thanks mate.

Similar Threads

  1. LDAP and Samba
    By numkem in forum Administrators
    Replies: 12
    Last Post: 02-11-2009, 01:12 PM
  2. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  3. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  4. Smooth install of Zimbra in Ubuntu 6.10 (Edgy Eft)
    By martinfst in forum Zimbra Success Stories
    Replies: 11
    Last Post: 05-01-2007, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts