Results 1 to 3 of 3

Thread: Installing ZCS 5.0.x on CentOS 5 as offline mail server (complete guide)

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    24
    Rep Power
    7

    Default Installing ZCS 5.0.x on CentOS 5 as offline mail server (complete guide)

    QUY TRÌNH CÀI ĐẶT HỆ THỐNG MAIL
    I. INSTALL CENTOS

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

     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.

     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.

     No changes need to be made on the next screen.

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

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

     Manually: mail.trustbank.com.vn
     Gateway: 10.0.250.1
     Primary DNS: 210.245.24.20
     Next you are asked for your time zone.

     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 the box for the CentOS Extra Packages in the lower pane. Click the radio button for Customize Now and click Next

     A box will pop up verifying your IP address information. The next screen allows you to choose packages for your installation. You want the following packages:
    Applications
    Editors
    Text-based Internet
    Development
    Development Libraries
    Development Tools
    Legacy Software Development
    Base System
    Base
    Legacy Software Support

     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.

     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.

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

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

     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 firewall it 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 is essential for ZCS. Go ahead and reboot, and fill up that coffee cup.
    II. Installation Of Split DNS
    This part of installation is working off of the assumption that you are behind a firewall. If you are not behind a firewall (not recommended) you can skip this part of the installation.
    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:
    vi /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";
    forwarders { 10.0.250.3 ; };
    };
    include "/etc/rndc.key";
    zone "test.com" {
    type master;
    file "db.trustbank.com.vn";
    };
    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.test.com file
    vi /var/named/chroot/var/named/db.test.com
    $TTL 14400
    @ IN SOA mail.test.com. root.test.com. (
    2007102001
    14400
    3600
    1209600
    86400 )
    ; Define the nameservers and the mail servers

    IN NS ns1.test.com.
    IN MX 10 mail.test.com.

    Ns1 14400 IN A 10.0.250.3
    test.com. 14400 IN A 10.0.250.3
    Localhost 14400 IN A 127.0.0.1
    test.com. 14400 IN A 10.0.250.3
    Test.com Web Based Testing Software. 14400 IN A 210.245.22.49
     Change your resolv.conf to use your mail server's IP address as it's primary DNS.
    vi /etc/resolv.conf
    search test.com
    nameserver 10.0.250.3
     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.test.com
    It should return something similar to this:
    Server: 10.0.250.3
    Address: 10.0.250.3#53
    Name: mail.test.com
    Address: 10.0.250.3
    Notice that the ip address returned is the same as the local machine. That means success.
    Now we can move on to installing ZCS.
    III. Installation Of Zimbra Collaboration Suite

     You will need to download ZCS from the Zimbra website.
    cd /tmp wget http://files.zimbra.com/downloads/5....0130221917.tgz
     Next untar, change into the directory of the installer and run the installer.
    tar xvzf zcs-5.0.2_GA_1975.RHEL5.20080130221917.tgz
    cd zcs-5.0.2_GA_1975.RHEL5.20080130221917
    ./install.sh
     The output should look something like:
    Checking for existing installation...
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-snmp...NOT FOUND
    zimbra-store...NOT FOUND
    zimbra-apache...NOT FOUND
    zimbra-spell...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND
     Read through the license agreement and hit enter.
    The output should be similar to:
    Checking for prerequisites...
    NPTL...FOUND
    sudo...FOUND sudo-1.6.7p12-10
    libidn...FOUND libidn-0.6.5-1.1
    fetchmail...FOUND fetchmail-6.3.6-1.1
    gmp...FOUND gmp-4.1.4-10
    compat-libstdc++-296...FOUND compat-libstdc++-296-2.96-138
    compat-libstdc++-33...FOUND compat-libstdc++-33-3.2.3-61
    libtool-ltdl...FOUND libtool-ltdl-1.5.22-6.1
    /usr/lib/libstdc++.so.6...FOUND
    Prerequisite check complete.
    Checking for standard system perl...
    perl-5.8.8...FOUND start system perl-5.8.8

    Checking for installable packages

    Found zimbra-core
    Found zimbra-ldap
    Found zimbra-logger
    Found zimbra-mta
    Found zimbra-snmp
    Found zimbra-store
    Found zimbra-apache
    Found zimbra-spell
    Found zimbra-proxy
     Next you need to select the packages to install. The defaults are listed in teh brackets so you can just press enter for every question.
    Install zimbra-ldap [Y]

    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 different
    than the platform for which they were built

    This platform is CentOS5
    Packages found: zimbra-core-5.0.2_GA_1975.RHEL5-20080130221917.i386.rpm
    This 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 the time to take it.
     Once the install is finished you are presented with the Main Menu. It looks like this:

     Notice the asterisks next to the Admin Password. You need to set the Admin Password before you complete 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 hit r 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.

     ZCS Admin Web Interface

     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 to access the site.

     The web interface is fairly easy to navigate.


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

    IV. INSTALL WEBMIN (CONFIGURE FETCHMAIL)

     Download file Webmin…noarch.rpm

    $ rpm –U webmin….noarch.rpm

     Configure Fetchmail on webmin first
     Configure Fetchmail in ~/.fetchmailrc with script:

    set no bouncemail
    set logfile “/var/log/fetchmail”
    set postmaster postmaster@test.com
    set daemon 0
    poll mailserver4.pavietnam.vn with protocol pop3, with options
    localdomains test.com
    no dns
    envelope Envelope-to
    user “user_login_pop@test.com” “password” is * here
    with options rewrite mimedecode fetchall pass8bits

     Set schedule fetchmail

    V. SMTP RELAY

    (Set SMTP Relay to use ISP for mail relay)
     Set mailrelay MTA in Global setting (in Zimba admin web console)
     Config smtp relay (/opt/zimbra/postfix-2.2.3/conf/main.cf)

    $ su zimbra
    $ postconf –e smtp_sasl_auth_enable=yes
    $ echo mailserver4.pavietnam.vn username@test.comassword > /opt/zimbra>conf>relay_password
    $ postmap /opt/zimbra/conf/relay_password

    # test that the map is okay
    $ postmap –q mailrelay.pavietnam.vn /opt/zimbra/conf/relay_password
    # that should return username@test.comassword if done right

    # make postfix use the above
    $ postconf –e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password

    $ postfix reload

    $ postconf –e smtp_sasl_security_options=noanonymous

  2. #2
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    7

    Default

    hi,

    thx for the installation guide, but can you please add your /etc/hosts file.

    gregor

  3. #3
    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    6

    Default

    it said that

    Code:
    Stopping named:                                            [  OK  ]
    Starting named:
    Error in named configuration:
    zone test.com/IN: loading master file db.trustbank.com.vn: file not found
    _default/test.com/IN: file not found
    so, how to create file db.trusbank.com.vn ??

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. [SOLVED] Why my MTA Cross???
    By fsloke in forum Installation
    Replies: 6
    Last Post: 07-30-2008, 09:55 PM
  4. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 AM

Posting Permissions

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