Solved

issue in ZIMBRA

Posted on 2014-07-28
35
2,850 Views
Last Modified: 2014-08-01
Hi,

    I have done the ZIMBRA ( ZCS  )setup in an VPS Centos.

    The output of the final setup conclusion as been attached to this message for your reference.

     I don't see any issue in that.

     But I am unable to browse using the domain "  mail.jesonahosting.net:7071 "

      When I try to debug it says " Unable to determine enabled services from ldap. "

      Even when I type "  zmcontrol status " it says " Unable to determine enabled services from ldap."

and

       " Unable to determine enabled services. Cache is out of date or doesn't exist. "

Kindly check and advice on this.

regards,
B. Emmanuel
zimbra-setup.txt
0
Comment
Question by:Ravi Kumar
  • 18
  • 17
35 Comments
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40225312
~ From your output i noticed at least one item has not been set, the zimbra admin password. This indicates the setup did not go through completely.

3) zimbra-store:                            Enabled
                 +Create Admin User:                    yes
                 +Admin user to create:                 admin@mail.jesonahosting.net
******* +Admin Password                        UNSET

~ Also I see your default email domain is mail.jesonahosting.net, normally it should be jesonahosting.net so that the admin account would read as admin@jesonahosting.net, this indicates you may have issues with the server name that will then cause the setup to run with some incorrect values.

run the following 4 commands and post the results here

cat /etc/hosts
host `hostname`
dig jesonahosting.net mx
dig jesonahosting.net any

Lets start with those and take it from there. As it stands it appears the ldap services are not running and theyare critical for the server to function. You may have to reinstall from scratch, as long as you don't mind doing that, we should be able to get you up and running.
0
 

Author Comment

by:Ravi Kumar
ID: 40226022
Hi,

     Thanks for your reply. I am new to Linux platform so I don't know what to do.

     To get it work I can do anything as you say.....

       I have attached the result for the given comment.
dig-results.txt
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40226986
Ah ok, so we will need to start with the good foundation. I have a few questions to get the ball rolling.

- is this a production or test server?
- is your public IP configured directly on the server, or will it be behind a firewall and NAT'd to a private IP?
- which version zimbra are you installing?

The first steps when setting up zimbra are very important. Making sure your DNS information and server hostname are configured accurately is the key to making it work, if that is done properly, by the time you run the install.sh scripts you will basically be hitting next/next/next until completion
0
 

Author Comment

by:Ravi Kumar
ID: 40227254
- is this a production or test server?
I am going to use this for production once completed successfully, at present this is test VPS server,

- is your public IP configured directly on the server, or will it be behind a firewall and NAT'd to a private IP?
this is VPS server, I think it will configured to server rather behind as it has multiple of OS in same rack.

- which version zimbra are you installing?
zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz

Hope I have answered your query's.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40227408
Yes thank you!

i am going to run a quick test setup on one of my virtual machines to make sure I give you all the right steps. I think the first issue is when choosing the domain to create, instead of mail.jesonahosting.net it should have just been jesonahosting.net

The installer will complain about this but I normally ignore that complaint. I'll post back shortly with full details
0
 

Author Comment

by:Ravi Kumar
ID: 40227426
Thank you.

  I am waiting for your update.

   I hope I will finish this to-day.  :-)
0
 
LVL 18

Assisted Solution

by:Sanga Collins
Sanga Collins earned 500 total points
ID: 40227620
1) OK the first thing you want to do is uninstall Zimbra completely. Change to the zimbra install directory and do the following.

./install.sh -u (when asked to completely remove, say yes)
cd /opt
rm -rf zimbra

2) The next step is making sure your hostname and DNS are setup correctly, from the output you provided earlier it looks correct as long as the ip address of eth0 is indeed 208.67.17.217.
If this is the case then you can go to the next step. If not then we will have to follow the Split DNS method of configuring Zimbra.

3) At this point I install all the updates and some random dependencies that Zimbra uses to function. run the following from the command line. Some may already be installed but that is ok.

yum update -y
yum erase sendmail  
yum install nc gmp compat-libstdc++-33 sysstat sudo libidn wget libtool-ltdl

Reboot the server.

4) Now I install zimbra. Since you already donwloaded and un-tar'd the archive you can simply change to the install directory and run the following

./install.sh --platform-override

~~~~~ The following is my screen output just for reference (i left the license agreements part out to save on space)~~~~~
Operations logged to /tmp/install.log.23306
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-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...NOT FOUND

Do you agree with the terms of the software license agreement? [N] y

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nc-1.84-22
     FOUND: sudo-1.8.6p3-12
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: libaio-0.3.107-10
     FOUND: /usr/lib64/libstdc++.so.6

Checking for suggested prerequisites...
     FOUND: perl-5.10.1
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.

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-memcached
Found zimbra-proxy


Select the packages to install

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-memcached [N]

Install zimbra-proxy [N]
Checking required space for zimbra-core
Checking space for zimbra-store

Installing:
    zimbra-core
    zimbra-ldap
    zimbra-logger
    zimbra-mta
    zimbra-snmp
    zimbra-store
    zimbra-apache
    zimbra-spell

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

Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/prelink.conf...done.
Cleaning up /etc/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-store......zimbra-store-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done
Operations logged to /tmp/zmsetup.07292014-111651.log
Installing LDAP configuration database...done.
Setting defaults...     MX: mail.jesonahosting.net (10.200.12.200)

        Interface: 10.200.12.200
        Interface: 127.0.0.1
        Interface: ::1
                10.200.12.200
done.
0
 
LVL 18

Assisted Solution

by:Sanga Collins
Sanga Collins earned 500 total points
ID: 40227634
4.5) I started a new post since the next steps are critical for your system to work. The setup will bring you to the final main menu page. On this page you want to set your admin password by choosing option 3 then option 4 and typing in a password you want

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@mail.jesonahosting.net
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.wsfvueo0@mail.jesonahosting.net
        +Enable automated spam training:       yes
        +Spam training user:                   spam.n2uk_ajscd@mail.jesonahosting.net
        +Non-spam(Ham) training user:          ham.akjhndqg@mail.jesonahosting.net
        +SMTP host:                            mail.jesonahosting.net
        +Web server HTTP port:                 80
        +Web server HTTPS port:                443
        +Web server mode:                      https
        +IMAP server port:                     143
        +IMAP server SSL port:                 993
        +POP server port:                      110
        +POP server SSL port:                  995
        +Use spell check server:               yes
        +Spell server URL:                     http://mail.jesonahosting.net:7780/aspell.php
        +Configure for use with mail proxy:    FALSE
        +Configure for use with web proxy:     FALSE
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@mail.jesonahosting.net
        +Version update source email:          admin@mail.jesonahosting.net

   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

Address unconfigured (**) items  (? - help) 3


Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@mail.jesonahosting.net
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.wsfvueo0@mail.jesonahosting.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.n2uk_ajscd@mail.jesonahosting.net
   8) Non-spam(Ham) training user:             ham.akjhndqg@mail.jesonahosting.net
   9) SMTP host:                               mail.jesonahosting.net
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  13) IMAP server port:                        143
  14) IMAP server SSL port:                    993
  15) POP server port:                         110
  16) POP server SSL port:                     995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://mail.jesonahosting.net:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE
  20) Configure for use with web proxy:        FALSE
  21) Enable version update checks:            TRUE
  22) Enable version update notifications:     TRUE
  23) Version update notification email:       admin@mail.jesonahosting.net
  24) Version update source email:             admin@mail.jesonahosting.net

Select, or 'r' for previous menu [r] 4

Password for admin@mail.jesonahosting.net (min 6 characters): [JPTgabk4I] letmein123

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@mail.jesonahosting.net
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.wsfvueo0@mail.jesonahosting.net
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.n2uk_ajscd@mail.jesonahosting.net
   8) Non-spam(Ham) training user:             ham.akjhndqg@mail.jesonahosting.net
   9) SMTP host:                               mail.jesonahosting.net
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  13) IMAP server port:                        143
  14) IMAP server SSL port:                    993
  15) POP server port:                         110
  16) POP server SSL port:                     995
  17) Use spell check server:                  yes
  18) Spell server URL:                        http://mail.jesonahosting.net:7780/aspell.php
  19) Configure for use with mail proxy:       FALSE
  20) Configure for use with web proxy:        FALSE
  21) Enable version update checks:            TRUE
  22) Enable version update notifications:     TRUE
  23) Version update notification email:       admin@mail.jesonahosting.net
  24) Version update source email:             admin@mail.jesonahosting.net

Select, or 'r' for previous menu [r]

5) Finally you get to the screen showing your setup is complete and now zimbra wants to apply your settings. If this process does not take place the server will not run.

Main menu

   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-store:                            Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Default Class of Service Configuration:
   r) Start servers after configuration        yes
   s) Save config to file
   x) Expand menu
   q) Quit

*** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes]
Save config in file: [/opt/zimbra/config.32285]
Saving config in /opt/zimbra/config.32285...done.
The system will be modified - continue? [No] y
Operations logged to /tmp/zmsetup.07292014-111651.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.jesonahosting.net...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.jesonahosting.net...done.
Adding mail.jesonahosting.net to zimbraMailHostPool in default COS...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=FALSE...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.jesonahosting.net...done.
Creating domain mail.jesonahosting.net...done.
Setting default domain name...done.
Creating domain mail.jesonahosting.net...already exists.
Creating admin account admin@mail.jesonahosting.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.n2uk_ajscd@mail.jesonahosting.net...done.
Creating user ham.akjhndqg@mail.jesonahosting.net...done.
Creating user virus-quarantine.wsfvueo0@mail.jesonahosting.net...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.jesonahosting.net...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
        com_zimbra_srchhighlighter...done.
        com_zimbra_attachmail...done.
        com_zimbra_cert_manager...done.
        com_zimbra_email...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_date...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_url...done.
        com_zimbra_webex...done.
        com_zimbra_phone...done.
        com_zimbra_viewmail...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_clientuploader...done.
        com_zimbra_attachcontacts...done.
        com_zimbra_proxy_config...done.
        com_zimbra_tooltip...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.0.7_GA_6021_RHEL6_64)
        The ADMIN EMAIL ADDRESS created (admin@mail.jesonahosting.net)

Notify Zimbra of your installation? [Yes] n
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.07292014-111651.log to /opt/zimbra/log


Configuration complete - press return to exit
0
 
LVL 18

Assisted Solution

by:Sanga Collins
Sanga Collins earned 500 total points
ID: 40227644
You should now be able to connect to the following website and login with the admin user and password

https://mail.jesonahosting.net:7071
user: admin
pass: letmein123 (of course make a stronger password for yourself)

Once logged in, you can create a new zimbra domain called jesonahosting.net, set it as the default domain and then you will not have to use admin@mail.jesonahosting.net for the admin account. I am pretty sure there is a way to set this up ahead of time so this step is not needed, but for the life of me I can not find the maneuver in my notes anywhere LOL.

That should complete the setup of your test server :D
0
 

Author Comment

by:Ravi Kumar
ID: 40227651
Thanks for the update.

I shall do as per your steps. If I am stuck anywhere will get back to you.

Will post you once completed successfully.

Thank you.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40227747
not a problem! good luck.
0
 

Author Comment

by:Ravi Kumar
ID: 40227839
Hi,

      I was very much happy that everything was going fine....

       but at last while Starting servers something went wrong.

       Kindly check the screen shot for more information.  :-(
zimbra-ee.jpg
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40228001
Whoaaa!

Looks like you still have a lot of issues. Before even getting to the java errors, I noticed in the log that there is still and error message: unable to determine enabled services from LDAP.

THe first thing I would do is try to fix the permissions by running the following commands

chown -R zimbra:zimbra /opt/zimbra
/opt/zimbra/libexec/zmfixperms -verbose

Then in the /etc/hosts file I would also add the following line

127.0.0.1 localhost.localdomain localhost

Afterwhich try restarting Zimbra to see if it loads properly.

Also if you could, please post the results of the following command

cat /etc/hosts
cat /etc/resolv.conf
ifconfig

Thanks!
0
 

Author Comment

by:Ravi Kumar
ID: 40228327
Hi,

      When I try to restart the ZIMBRA, this is the error I got.

[zimbra@mail ~]$ zmcontrol start
Host mail.jesonahosting.net
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Failed.


        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Failed.
/opt/zimbra/postfix/libexec/postfix-script: fork: Cannot allocate memory
postfix failed to start
Starting saslauthd...already running.


        Starting stats...Failed.
/opt/zimbra/bin/zmlocalconfig: fork: Cannot allocate memory
Use of uninitialized value $expected in string ne at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 57.
Use of uninitialized value $expected in concatenation (.) or string at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 58.
Must be user  to run this command


[zimbra@mail ~]$

-----------------------------------------------------------------------------------------------------------------
cat /etc/hosts

multi on
::1          localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 localhost.localdomain localhost
208.67.17.217 mail.jesonahosting.net mail
[zimbra@mail ~]$

-------------------------------------------------------------------------------------------------------------------
cat /etc/resolv.conf

search jesonahosting.net
nameserver 208.67.17.217
nameserver 8.8.8.8
[zimbra@mail ~]$

---------------------------------------------------------------------------------------------------------------------
ifconfig

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:17543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11690028 (11.1 MiB)  TX bytes:11690028 (11.1 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:2728 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3914 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:248697 (242.8 KiB)  TX bytes:3181198 (3.0 MiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:208.67.17.217  P-t-P:208.67.17.217  Bcast:208.67.17.217  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

[zimbra@mail ~]$
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40228461
After seeing these error messages and checking with the Zimbra forums, I believe your issue is actually not with Zimbra, but with the CentOS VPS. Zimbra is quite straight forward to install, and the amount of errors you are getting as well as they type of errors lead me to believe the base operating system is to blame.

I am not sure what options you have for getting a clean start with the OS. I am going to check into this a little more before committing to re-install from scratch
0
 

Author Comment

by:Ravi Kumar
ID: 40228701
Hi,

    Thanks for the update.

    Do I need to go for OS re-installation?

    It would be better to troubleshoot with this, as VPS support is very poor, they will take another 4 to 5 days for re-installation.

    It would be grateful to troubleshoot from here.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40228884
Was this VPS used for anything else before you tried to install zimbra? For example, did someone setup other packages or configure it for other uses? I see the resolv.conf has the server IP as one of the DNS servers. This would lead me to believe that named or some other DNS package was installed. Let me know if this is accurate.

The problem about unable to determine services from LDAP usually means there is an issue with name resolution and DNS so zimbra can not find its own ldap server to even get off the ground running.
0
Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

 

Author Comment

by:Ravi Kumar
ID: 40228910
Hi,

     This is new VPS bought exclusive for ZIMBRA.

     Before installing ZIMBRA I have hosted the domain " jesonahosting.net " to check whether the server works without any issue.

   So to host the domain I did the necessary setup for NS pointing and other records ( A, MX, etc., ) changed to make
 " jesonahosting.net " work from this hosting and it was done and the domain also resolves perfect from this VPS.

    This was the only thing done.
     
     Whether this made the issue, should not I host any domain with ZIMBRA?

     Kindly advice, thank you.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40229220
The DNS settings may be where the issue orginate from. Can you tell me what steps you followed to create the DNS entries? On my test server I did  it from the command line so that my db.mail.jesonahosting.net looks like the following

@       IN      SOA     mail.jesonahosting.net. adminaccount.jesonahosting.net. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum

               IN      NS      localhost.
               IN      A       10.200.12.200
               IN      MX      10 mail.jesonahosting.net.


of course 10.200.12.200 is my test server IP address.
0
 

Author Comment

by:Ravi Kumar
ID: 40229270
As seen in the below URL

http://www.serverpronto.com/kb/page.php?id=Configure+your+DNS+Server+(CentOS/Fedora)

and also I did some changes to MX and A record as per the ZIMBRA forums.
0
 
LVL 18

Accepted Solution

by:
Sanga Collins earned 500 total points
ID: 40229341
Do you by any chance have the firewall enabled? If so you should disable it by running the following. (once we get past the test server we can re-enable and open ports according to: http://wiki.zimbra.com/wiki/Firewall_Configuration)

service iptables stop
chckconfig iptables off.

Next step is to redo the DNS setup. I have been using the following for all my Zimbra setups over the last few years. You can view the webpage at this link: http://jamesreubenknowles.com/installing-zimbra-7-on-centos-1327
It was from Zimbra 7, but the exact same process works for Zimbra 8.

Install Bind: This should overwrite your original bind setup

yum install bind bind-chroot bind-libs bind-utils
Ensure bind starts automatically.

 chkconfig named on
Create the named Configuration File

nano /var/named/chroot/etc/named.conf
chmod 644 /var/named/chroot/etc/named.conf
Insert the following. Be sure to change the forwarders IP address (eee.fff.ggg.hhh, iii.jjj.kkk.lll) to the IP addresses of the old DNS server. Be sure to replace domain.com with your own domain.

options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    forwarders {
        eee.fff.ggg.hhh ;
        iii.jjj.kkk.lll ;
    };
};
include "/etc/rndc.key";
// Specify that this server is the master for mail.domain.com
zone "mail.domain.com" {
    type master;
    file "db.mail.domain.com";
};
Create the file described in the file line. Be sure to change domain.com to the domain of your server.

nano /var/named/chroot/var/named/db.mail.domain.com
chmod 644 /var/named/chroot/var/named/db.mail.domain.com
Insert the following. Also pay attention the fact that adminaccount.domain.com is the system administrator’s e-mail address adminaccount@domain.com. DNS turns the first period into the @ sign.

@       IN      SOA     mail.domain.com. adminaccount.domain.com. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum

               IN      NS      aaa.bbb.ccc.ddd
               IN      A       aaa.bbb.ccc.ddd
               IN      MX      10 mail.domain.com.
Adjust resolv.conf

Adjust the resolv.conf file to search the local server for primary DNS

nano /etc/resolv.conf
Change it to look like:

search domain.com
nameserver aaa.bbb.ccc.ddd
Start the named Dæmon

chkconfig named on
service named start
Check its operation with:

dig mail.domain.com mx
It should return something similar to:

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> mail.domain.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40071
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mail.domain.com.            IN      MX

;; ANSWER SECTION:
mail.domain.com.      2592000      IN      MX      10 mail.domain.com.

;; AUTHORITY SECTION:
mail.domain.com.      2592000      IN      NS      aaa.bbb.ccc.ddd.mail.domain.com.

;; ADDITIONAL SECTION:
mail.domain.com.      2592000      IN      A      aaa.bbb.ccc.ddd

;; Query time: 1 msec
;; SERVER: aaa.bbb.ccc.ddd#53(aaa.bbb.ccc.ddd)
;; WHEN: Sat Mar 12 17:42:25 2011
;; MSG SIZE  rcvd: 93
and

dig mail.domain.com any
should return something like:

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> mail.domain.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1326
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.domain.com.            IN      ANY

;; ANSWER SECTION:
mail.domain.com.      2592000      IN      SOA      mail.domain.com. sysadmin.domain.com. 10118 43200 3600 3600000 2592000
mail.domain.com.      2592000      IN      NS      aaa.bbb.ccc.ddd.mail.domain.com.
mail.domain.com.      2592000      IN      A      aaa.bbb.ccc.ddd
mail.domain.com.      2592000      IN      MX      10 mail.domain.com.

;; Query time: 1 msec
;; SERVER: aaa.bbb.ccc.ddd#53(aaa.bbb.ccc.ddd)
;; WHEN: Sat Mar 12 17:43:23 2011
;; MSG SIZE  rcvd: 138
The final check is the following. Note! This must be typed verbatim!

host $(hostname)
Should return something like:

mail.domain.com has address aaa.bbb.ccc.ddd
mail.domain.com mail is handled by 10 mail.domain.com.

We can then do a reinstall of Zimbra once this is complete.
0
 

Author Comment

by:Ravi Kumar
ID: 40229729
Hi,

    Thanks for the steps....

    I shall start the work and update you once completed.

Thank you
0
 

Author Comment

by:Ravi Kumar
ID: 40229854
HI,

     I like to know one more thing that is system requirement.

     As per James Reuben blog it says we need at least 1.5GB of RAM but in our VPS it has only 1GB of RAM, 1CPU will this make any issue for ZIMBRA installation?

    Kindly advice on this.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40230026
Whhooaaaa, that is barely enough to get the system running. You most definitely need at least the following.

Production environments
• Intel/AMD 2.0 GHZ+ 64-bit CPU
• Require a minimum of 3GB of RAM, recommend a minimum of 4GB of RAM

What I actually use for my systems
-  2 x 2 2.3ghz 64bit CPU
- 4GB of RAM
- 250 GB HDD at least

For approx 1000 users I have 4 of these servers, 1 ldap server and 1 MTA server so 6 in total. ZImbra is heavy on the RAM but only heavy on CPU during peak times.
0
 

Author Comment

by:Ravi Kumar
ID: 40230898
I think this must be the issue for " Cannot allocate memory "

I will purchase new VPS with all the said requirement and start the work from scratch. as per the below document.

http://jamesreubenknowles.com/installing-zimbra-7-on-centos-1327

Thanks for your help.

Will post you once it is up or if I am stuck again.

Thank you.
0
 

Author Comment

by:Ravi Kumar
ID: 40232675
Hi,

     I have bought another VPS and installed ZIMBRA.

    Installation finished successfully. but unable to browse 7071

    I have added the following domain in this server srikumarstores.com

   and tried srikumarstores.com:7071 it is not browsing.

   as we can't run web server in this what has to be done to veiw the administrative panel?

   Kindly advice what to do?
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40232740
is the firewall running?

try the following command from the CLI

service iptables status

from the CLI you can also try

telnet localhost 7071
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40232745
sorry I pressed submit prematurely. If the firewall is running you can disable it so that you can check out the admin interface. This ofcourse is not the way to leave it permanently. You can use the following guide to see what ports need to be open

http://wiki.zimbra.com/wiki/Firewall_Configuration
0
 

Author Comment

by:Ravi Kumar
ID: 40232806
Thanks for the update.

Actually I have disabled the firewalls.

I able to Telnet
Telnet 23.227.167.251 7071

below is the report when I restarted the  ZIMBRA.

Host mail.jesonahosting.net
        Stopping vmware-ha...Done.
        Stopping zmconfigd...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping ldap...Done.
Host mail.jesonahosting.net
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Failed.
postfix failed to start
Starting saslauthd...done.


        Starting stats...Done.
[root@mail ~]#

It seems MTA as problem.
0
 

Author Comment

by:Ravi Kumar
ID: 40232819
FYI :

As mail.jesonahosting.net is hosted is another VPS while installation

DNS ERROR resolving MX for mail.jesonahosting.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes

and changed to srikumarstores.com
0
 

Author Comment

by:Ravi Kumar
ID: 40232874
WoW!

At last I made it!

https://srikumarstores.com:7071/zimbraAdmin/

but inside error shows

mta  X

have to find that, kindly post if you have any solution.

Thank you for your guidance.

Kindly advice on MTA... before I close this solution.
0
 
LVL 18

Assisted Solution

by:Sanga Collins
Sanga Collins earned 500 total points
ID: 40232901
Oh this is very good. Usually when I see the MTA has a red X, it means that there is another program that may be using port25.

Do you have sendmail installed? you can check by running the following command

service sendmail status

You should also check that centos Postfix is not running

service postfix status

If either of them are running, do the following

service postfix stop or service sendmail stop
chkconfig postfix off or chkconfig sendmail off

then
su - zimbra
zmcontrol restart
0
 

Author Comment

by:Ravi Kumar
ID: 40233510
Hoops!

You where right port was used by send mail, after stopping that I restarted ZIMBRA..... Everything went failed to start.

Then after cross checking I came to know that in " /etc/hosts " host has been changed automatically after rectifying that everything came to and END.

Started successfully.... with NO errors.

I personally THANK YOU so much for your patience in guiding me in all the ways.

Thank you so much.
0
 

Author Comment

by:Ravi Kumar
ID: 40233600
Hi,

     Can you provide me an suitable guide on how to configure multiple domain in ZIMBRA administration?

Thank you in advance.
0
 
LVL 18

Expert Comment

by:Sanga Collins
ID: 40233994
This can be done as well but you should open a new question so that the posts are relevant and not mixed up.

Good to hear its working now! Your patience paid off
0

Featured Post

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Outlook 2007 Won't send email 6 59
Reaing backed up eudora email 3 38
Email Encryption 5 44
Email Issue 3 43
I wrote this article because there are many articles out there that don't seem to understand the essence of what bitcoins really are. Bitcoins are worth a look because they have the potential to save us from tithing our money to credit card compa…
Zimbra is famous for its platform independency, ability to manage multiple user accounts, easy assimilation with 3rd party applications, social network certification etc. Here, we discuss about how users can move multiple Zimbra user accounts to Exc…
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now