Zimbr Installation

  • Upload
    flipp3r

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

  • 8/7/2019 Zimbr Installation

    1/18

    Reference: www.howtoforge.com

    Zimbra Collaboration Suite Open Source Edition On CentOS

    This tutorial shows how to set up Zimbra Collaboration Suite - Open Source Edition on CentOS. Thistutorial covers installation of CentOS, dependencies for ZCS and setup of Split DNS when workingbehind a firewall. This tutorial is based on the way I set this server up and is only a suggestion. Itcarries no guarantees and it is highly suggested that you do this on a test server first to verifyfunctionality. If you don't have a test server available you should download VMWare Server 1.0 andperform this tutorial on a test virtual server.

    1 Requirements

    To install this system you will need the following:

    CentOS 5 DVD or CD ISO images which are available athttp://isoredirect.centos.org/centos/5/isos/i386/

    High-speed Internet connection

    A full coffee pot or alternative source of caffeine

    2 Preliminary Note

    In this tutorial I use the hostname mail.geekdept.com with the IP address of 192.168.0.45 and agateway of 192.168.0.1. These settings should be replaced with the appropriate hostname and IPaddress for your setting.

    3 Installion of CentOS 5

    Insert your CentOS install CD into your system and boot from it. Hit Enter to start the installation.

    http://isoredirect.centos.org/centos/5/isos/i386/http://isoredirect.centos.org/centos/5/isos/i386/
  • 8/7/2019 Zimbr Installation

    2/18

    You are first asked if you would like to test the CD Media. You can choose skip.

    After this the installer starts. Click on Next.

    Next you are asked for language.

  • 8/7/2019 Zimbr Installation

    3/18

    In my case I chose English and it then ask for which English. I'm in the US so I choose US English.

    A box pops up warning you about initializing the drive.

  • 8/7/2019 Zimbr Installation

    4/18

    No changes need to be made on the next screen.

    Again you are warned of the iminent doom of your disk.

  • 8/7/2019 Zimbr Installation

    5/18

    Network Devices gives you the opportunity to enter IP address information for your network. Keep inmind that you cannot run an email server using DHCP. Use the edit button and enter informationappropriate for your network. Don't forget to enter your gateway and nameservers as well.

    Next you are asked for your time zone.

  • 8/7/2019 Zimbr Installation

    6/18

    Enter a password for the root account.

    Now it is time to choose the packages to install. Uncheck all boxes in the upper pane and check thebox for the CentOS Extra Packages in the lower pane. Click the radio button for Customize Now andclick Next

  • 8/7/2019 Zimbr Installation

    7/18

    A box will pop up verifying your IP address information. The next screen allows you to choosepackages for your installation. You want the following packages:

    ApplicationsEditors

    Text-based InternetDevelopmentDevelopment LibrariesDevelopment ToolsLegacy Software Development

    Base SystemBaseLegacy Software Support

  • 8/7/2019 Zimbr Installation

    8/18

    Once you have selected the pacakages click Next and it will search for dependencies.

    It is now ready to begin the installation. Click Next to begin.

  • 8/7/2019 Zimbr Installation

    9/18

    The installation should only take a few minutes because we are installing the bare minimum.

    Click on Reboot once the installation is finished. Be sure to remove your installation CD as well.

  • 8/7/2019 Zimbr Installation

    10/18

    Once the system reboots you are presented with the firstboot screen. This feature is very helpfulbecause it allows you to make changes to the firewall. Using the keyboard choose Firewall click tab tomove to the Run Tool button and hit enter.

    For Security Level choose disabled and choose disabled for SELinux as well. Choose OK.

  • 8/7/2019 Zimbr Installation

    11/18

    Now you are back at the main firstboot screen. You can tab to the Exit button.

    Please note that we have now disabled all security on this box. If this computer is not behind a firewallit could be compromised quite easily.

    The last step is to shutoff some services that will interfere with ZCS.

    chkconfig sendmail off chkconfig ip6tables off chkconfig iptables off

    We need one package before we can continue:

    yum install libtool-ltdl

    This completes the base installation of CentOS. On the next page we will setup Split DNS which isessential for ZCS. Go ahead and reboot, and fill up that coffee cup.

    4 Installation Of Split DNS

    This part of installation is working off of the assumption that you are behind a firewall. If you are notbehind a firewall (not recommended) you can skip this part of the installation.

    I need to give credit where it is due. The chroot portion of this tutorial is adapted from SebastienWains. His CentOS Bind Chroot tutorial can be found athttp://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/ . The Split DNS tutorial isadapted from the Zimbra Wiki and can be found at http://wiki.zimbra.com/index.php?title=Split_dns .

    yum install bind bind-chroot bind-libs bind-utils

    REMINDER: Be sure to use the ip address and hostname/FQDN that is appropriate for your installation.

    Create the /var/named/chroot/etc/named.conf file:

    vim /var/named/chroot/etc/named.conf options {

    directory "/var/named";dump-file "/var/named/data/cache_dump.db";statistics-file "/var/named/data/named_stats.txt";

    http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/http://wiki.zimbra.com/index.php?title=Split_dnshttp://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/http://wiki.zimbra.com/index.php?title=Split_dns
  • 8/7/2019 Zimbr Installation

    12/18

    forwarders { 192.168.0.10 ; };};include "/etc/rndc.key";// We are the master server for mail.geekdept.comzone "mail.geekdept.com" {

    type master;file "db.mail.geekdept.com";

    };

    The ip address for forwarders should be the ip address of your dns server.

    Now you need to create your /var/named/chroot/var/named/db.mail.geekdept.com file

    vim /var/named/chroot/var/named/db.mail.geekdept.com;; Addresses and other host information.;@ IN SOA mail.geekdept.com. hostmaster.mail.geekdept.com. (

    10118 ; Serial43200 ; Refresh3600 ; Retry3600000 ; Expire2592000 ) ; Minimum

    ; Define the nameservers and the mail serversIN NS 192.168.0.45IN A 192.168.0.45IN MX 10 mail.geekdept.com.

    Change your resolv.conf to use your mail server's IP address as it's primary DNS.

    vim /etc/resolv.conf search geekdept.comnameserver 192.168.0.45

    Start named on your server /etc/init.d/named start

    Enable autostart for named.

    chkconfig named on

    To verify that it is working do the following:

    nslookup mail.geekdept.com

    It should return something similar to this:Server: 192.168.0.45Address: 192.168.0.45#53Name: mail.geekdept.comAddress: 192.168.0.45

    Notice that the ip address returned is the same as the local machine. That means success.

    Now we can move on to installing ZCS.

    5 Installation Of Zimbra Collaboration Suite

    You will need to download ZCS from the Zimbra website.

    cd /tmp wget http://files.zimbra.com/downloads/5.0.2_GA/zcs-5.0.2_GA_1975.RHEL5.20080130221917.tgz

  • 8/7/2019 Zimbr Installation

    13/18

  • 8/7/2019 Zimbr Installation

    14/18

    Install zimbra-logger [Y]

    Install zimbra-mta [Y]

    Install zimbra-snmp [Y]

    Install zimbra-store [Y]

    Install zimbra-apache [Y]

    Install zimbra-spell [Y]

    Install zimbra-proxy [N]

    You will see a warning like this:

    You appear to be installing packages on a platform differentthan the platform for which they were built

    This platform is CentOS5Packages found: zimbra-core-5.0.2_GA_1975.RHEL5-20080130221917.i386.rpmThis may or may not work

    Install anyway? [N] Y

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

    The installation takes a little bit so if you are running low on coffee or need a potty break now is thetime to take it. :)

    Once the install is finished you are presented with the Main Menu. It looks like this:

  • 8/7/2019 Zimbr Installation

    15/18

    Notice the asterisks next to the Admin Password. You need to set the Admin Password before youcomplete the install. To do this enter 3 at the prompt and hit enter. The menu changes to:

    Now you choose 4. You will be prompted to change the password. After you change the password hitr which will take you back to the previous menu. Enter a at the prompt to save the configuration.

    The installation will complete and you will be all set to access the administrative web interface.

    6 ZCS Admin Web Interface

    Just like Falko I'm just going to give a brief screenshot tour and leave it up to you to get moreinformation from the Zimbra Admin Guide and the Zimbra Wiki .

    http://files.zimbra.com/website/docs/Zimbra%20OS%20Admin%20Guide.pdfhttp://wiki.zimbra.com/http://files.zimbra.com/website/docs/Zimbra%20OS%20Admin%20Guide.pdfhttp://wiki.zimbra.com/
  • 8/7/2019 Zimbr Installation

    16/18

    6.1 Administration Login

    You can access the admin web interface by going to https://you.domain.com:7071.

    Note: The web interface is accessed via ssl. Make sure you put https otherwise you won't be able toaccess the site.

    The web interface is fairly easy to navigate.

    The best place to start is with domains. Right now you most likely have a domain likemail.geekdept.com. You are going to want people to send email to geekdept.com. So click ondomains.

  • 8/7/2019 Zimbr Installation

    17/18

    After you have added your domain you are probably going to want to add an email account. Click onaccounts and add your first account.

    There are a ton of features you can add. By default the Instant Messenger feature is turned off but Ithink it is a really cool feature. It works really well.

    6.2 User Login

    Now that you have an email account setup you can access the user interface. Point your browser tohttp://your.domain.com.

  • 8/7/2019 Zimbr Installation

    18/18

    Log in with your full email address and the password that you set for it.

    Send some test emails to another email account to verify that it is working properly.

    You are all set! As long as you have setup your external mx records properly you should be good togo. Spend some time on the Zimbra Wiki and Forums and when you master it help others out.