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

Thread: I got Ubuntu and Zimbra working

  1. #1
    pacsteel is offline Active Member
    Join Date
    Oct 2006
    Location
    Montana
    Posts
    38
    Rep Power
    8

    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 xxx.xxx.xxx.xxx, 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/Std.pm 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 *.ubuntu.com 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:
      127.0.0.1       localhost.localdomain localhost
      xxx.xxx.xxx.xxx  mail.MYDOMAIN.com 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
        Code:
         // forwarders {
        //      0.0.0.0;
        // };
        uncomment and change to reflect your own upstream DNS servers. In my case they are Bresnan, adjust yours accordingly.
        Code:
        forwarders { 
        69.145.248.50; 69.145.232.4; 
        };
      2. Append to /etc/bind/named.conf.local
        Code:
        	// We are the master server for mail.MYDOMAIN.com
        	zone "mail.MYDOMAIN.com" {
        		type master;
        		file "db.mail.MYDOMAIN.com";
        };
      3. create the zone file: /var/cache/bind/db.mail.MYDOMAIN.com
        Code:
        ;
        ;       Addresses and other host information.
        ;
        @       IN      SOA     mail.MYDOMAIN.com. hostmaster.mail.MYDOMAIN.com. (
                                       10118      ; Serial
                                       43200      ; Refresh
                                       3600       ; Retry
                                       3600000    ; Expire
                                       2592000 )  ; Minimum
        ;       Define the nameservers and the mail servers
                       IN      NS      xxx.xxx.xxx.xxx
                       IN      A       xxx.xxx.xxx.xxx
                       IN      MX      10 mail.MYDOMAIN.com.
      4. modify /etc/resolv.conf
        change upstream name servers to your own IP:
        nameserver xxx.xxx.xxx.xxx
      5. /etc/init.d/bind reload
      6. to test it, nslookup mail.MYDOMAIN.com should point to xxx.xxx.xxx.xxx
    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. ./install.sh
        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
      Code:
       use lib "/opt/zimbra/zimbramon/lib/i386-linux-thread-multi";
      and add the following as line 30 to /opt/zimbra/libexec/zmgengraphs
      Code:
      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 03:54 PM. Reason: IP clarification and bind update. Edit2-got graphs working. Edit3-Upgraded to 4.0.3

  2. #2
    btdown is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    16
    Rep Power
    8

    Default

    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 xxx.xxx.xxx.xxx's are the internal IP or the external IP.

    Please keep us updated on your Edgy installation adventures!

  3. #3
    pacsteel is offline Active Member
    Join Date
    Oct 2006
    Location
    Montana
    Posts
    38
    Rep Power
    8

    Default

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

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

  4. #4
    copilot is offline Starter Member
    Join Date
    Oct 2006
    Posts
    1
    Rep Power
    8

    Default

    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
    daimer77 is offline Active Member
    Join Date
    Oct 2005
    Posts
    34
    Rep Power
    9

    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
    bizzo is offline Junior Member
    Join Date
    Sep 2006
    Location
    SE Queensland - Australia
    Posts
    9
    Rep Power
    8

    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.

    Thanks

  7. #7
    bizzo is offline Junior Member
    Join Date
    Sep 2006
    Location
    SE Queensland - Australia
    Posts
    9
    Rep Power
    8

    Question

    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: lilydale1.com.au->zimbra@lilydale1.com.au:22}
    com.zimbra.cs.service.ServiceException: system failure: exception during auth {RemoteManager: lilydale1.com.au->zimbra@lilydale1.com.au:22}
    at com.zimbra.cs.service.ServiceException.FAILURE(Ser viceException.java:174)
    at com.zimbra.cs.rmgmt.RemoteManager.getSession(Remot eManager.java:195)
    at com.zimbra.cs.rmgmt.RemoteManager.execute(RemoteMa nager.java:132)
    at com.zimbra.cs.service.admin.GetMailQueueInfo.handl e(GetMailQueueInfo.java:56)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:261)
    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 Servlet.java:173)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:541)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:667)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.io.IOException: There was a problem while talking to lilydale1.com.au:22
    at ch.ethz.ssh2.Connection.connect(Connection.java:64 2)
    at ch.ethz.ssh2.Connection.connect(Connection.java:46 0)
    at com.zimbra.cs.rmgmt.RemoteManager.getSession(Remot eManager.java:186)
    ... 24 more
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
    at java.net.Socket.connect(Socket.java:516)
    at ch.ethz.ssh2.transport.TransportManager.initialize (TransportManager.java:299)
    at ch.ethz.ssh2.Connection.connect(Connection.java:59 1)
    ... 26 more

    Error code: service.FAILURE
    Method: ZmCsfeCommand.prototype.invoke
    Details:soap:Receiver
    ************************************************** ********

    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
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default ssh disabled?

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

  9. #9
    brained is offline Loyal Member
    Join Date
    Dec 2005
    Posts
    94
    Rep Power
    9

    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
    bizzo is offline Junior Member
    Join Date
    Sep 2006
    Location
    SE Queensland - Australia
    Posts
    9
    Rep Power
    8

    Thumbs up

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

    Thanks mate.

Page 1 of 8 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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, 01: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
  •