Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-2011, 04:03 PM
Active Member
 
Posts: 25
Question Ubuntu 8.04 LTS Server (Hardy Heron) Install Guide - DOUBTS

Hi,

This post refers to the Guide: "http://wiki.zimbra.com/wiki/Ubuntu_8.04_LTS_Server_%28Hardy_Heron%29_Install_G uide"

As I have tested and seen in more than few forum this Guide drives you easily to fail in the instalation of Zimbra. I have folllow carefully every step and quickly I got doubts.

In the first part: "Installing Ubuntu 8.04 LTS" It could be ok, maybe we can consider to say that we must cancel dhcp configuration during installation quickly to make the point 1):

"1) The installation (and the guide) want to configure your LAN via DHCP. Cancel it before it gets that far, and manually configure it with a static IP address, netmask, and gateway. Don't put in a public DNS for your nameserver configuration; instead put in the same IP address that you just gave the machine for its own static IP (this won't let you resolve names on the internet until we do some more configuration below, but it saves headaches later)"

First important doubt: How is posible that I did exacly this and I can resolve name on internet???

Look:
---
root@mailhost:/# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 172.16.1.8
netmask 255.255.255.0
network 172.16.1.0
broadcast 172.16.1.255
gateway 172.16.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.16.1.8
dns-search mydomain.com
---
Is this what the guide says to do? I did it in the installation, even thought:

root@mailhost:/# ping yahoo.com
PING yahoo.com (209.191.122.70) 56(84) bytes of data.
64 bytes from ir1.fp.vip.mud.yahoo.com (209.191.122.70): icmp_seq=1 ttl=53 time=164 ms
64 bytes from ir1.fp.vip.mud.yahoo.com (209.191.122.70): icmp_seq=2 ttl=53 time=162 ms
64 bytes from ir1.fp.vip.mud.yahoo.com (209.191.122.70): icmp_seq=3 ttl=53 time=166 ms
64 bytes from ir1.fp.vip.mud.yahoo.com (209.191.122.70): icmp_seq=4 ttl=53 time=163 ms

So what now? Did I mistake somewhere? Could I continue? ¿Yes/no?

After this I finish installation and continue reading...

In the second part: "DNS

On Ubuntu, check /etc/default/bind9 to see the root directory path for your bind installation. If not other path is specified, then it's most likely /etc/bind/

OK

Proper DNS configuration is PARAMOUNT! If you don't have your DNS working properly, don't even bother trying to install Zimbra, because trying to fix DNS after the fact may result in an install that can do everything except send mail--even from a Zimbra user to himself! So I'll say it again:

If you can't resolve your mailserver's own private IP address (NOT the public IP) using nslookup, fix it BEFORE you install Zimbra! "

Excuse me! Please, Is this correct?:
root@mailhost:/# nslookup mailhost
Server: 172.16.1.8
Address: 172.16.1.8#53

Non-authoritative answer:
Name: mailhost.mydomain.com
Address: 88.216.222.133
I supposed it correct but take a look in the next paragraph of the guide:

"If your installation above was successful, when you sign on at the command line you'll be able to ping public IP addresses if you know them, but you may not be able to resolve any names to ping them"

I'm able to resolve any name!
Oh no! I'm afraid, what I did wrong?


In this point, and before reinstalling again (fourth time) I apreciate any help or clue that you could give me. Am I in the wrong way? yes/no?

I will send any info if required!

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 04-23-2011, 05:08 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

FWIW, I've just downloaded the Ubuntu 8.04 LTS server iso and installed it following the 'howtoforge' article and the Zimbra wiki article and I've had no problems install Zimbra on that server and getting it to run. As I mentioned in your other thread you've probably got your DNS records configured incorrectly - you must make sure the format of them is correct including any following 'periods' at the end of domain name as mentioned in both articles. I'd also like to point out that I don't have any experience using Ubuntu and the articles cover all the steps (which I followed exactly - with minor changes for my LAN configuration) necessary for installing the operating system and Zimbra correctly.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-23-2011, 09:17 AM
Active Member
 
Posts: 25
Smile Solved

Finally I solved, so I will give the helpfull information I was looking for two days ago.

The first, I will call:

Guide1 to - Ubuntu 8.04 LTS Server (Hardy Heron) Install Guide - Zimbra :: Wiki

Guide2 to - The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) | HowtoForge - Linux Howtos and Tutorials

In the Guide1 the author says refering to Guide2:

"There is an excellent, highly-detailed installation guide for this version at The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) | HowtoForge - Linux Howtos and Tutorials. I highly recommend this guide, particularly if you are new to Linux or Ubuntu specifically. The following points need to be kept in mind as you install:"

Don't follow Guide2 and after Guide1, you will have DNS problems. I have created a Google Apps Doc with my installation, maybe if a "master" wants to review it we can post it somewhere. I will post here just only the differences, in black text of Guide1 or Guide2 and red my text.
If you can not resolve your mailserver's own private IP address (NOT the public IP) using nslookup, fix it BEFORE you install Zimbra!

If your installation was successful Above, When you sign on at the command line you'll be Able to ping IP addresses public if you know Them, But You May Not Be Able to resolve names to ping and Stock Them.

Here comes problems. I try nsloopup and result is this:

root @ mailhost: ~ # nslookup mailhost
Server: 172.16.1.8
Address: 172.16.1.8 # 53

Non-authoritative answer:
mailhost.mydomain.com canonical name = myalias.dnsalias.net.
Name: myalias.dnsalias.net
Address: 222.111.777.666

Note: I'm using dnsalis because this is only for testing Zimbra for comparing with OX. This server will not be for production.

But I can pint to google.com, or yahoo.com

root @ mailhost: ~ # pinggoogle.es
PINGgoogle.es (209.85.229.104) 56 (84) bytes of data.
64 bytes from www-in-f104.1e100.net (209.85.229.104): icmp_seq = 1 ttl = 53 time = 54.2 ms
--- ping statistics ---google.es
2Transmitted packets, 2 received, 0% packet loss, time 1003ms
rtt min / avg / max / mdev = 53.974/54.127/54.281/0.278 ms

root @ mailhost: ~ # ping yahoo.com
PING yahoo.com (209.191.122.70) 56 (84) bytes of data.
fp.vip.mud.yahoo.com 64 bytes from (209.191.122.70): icmp_seq = 1 ttl = 52 time = 156 ms
--- yahoo.com ping statistics ---
3 packets Transmitted, 2 received, 33% packet loss, time 2000ms
rtt min / avg / max / mdev = 156.793/161.607/166.422/4.831 ms

So. .. Already somehing Is it not working as the guide says?

I'm going to continue with it and we will is if it works.


---
Check / etc / resolv.conf and make sure it looks like this:

nameserver xxx.xxx.xxx.xxx

OK, Our resolv.conf 's files is like this. Must I change it?

root @ mailhost: ~ # cat / etc / resolv.conf
searchmydomain.com
nameserver 172.16.1.8


---
You Should Be Able to resolve names in the Outside World. Try something like "ping google.com" and if you get an answer, you're on the way.

I can do this from the very begining ... I do not know why.

---
Before you get to the install you Also Need to modify your / etc / hosts file:

127.0.0.1 localhost localhost.localdomain
xxx.xxx.xxx.xxx mail.mydomain.com mail

My one looks like this and I'm not to change anything.

root @ mailhost: ~ # cat / etc / hosts
127.0.0.1 localhost
172.16.1.8 mailhost.mydomain.com mailhost


In Guide2, page 3 it says:

Now run

echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start

Afterwards, run

hostname
hostname -f

Both should show server1.example.com now.

Don't run it, the installation I did it, the installation doesn0t worked...

My installation is like this:

root@mailhost:~# hostname
mailhost
root@mailhost:~# hostname -f
mailhost.mydomain.com
root@mailhost:~#

Show they are different!





By the way it's all. Any comment will be welcome and maybe we must improve detailed guide, or not?

Regards
Reply With Quote
  #4 (permalink)  
Old 04-23-2011, 09:23 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

You don't need to modify the guide, it covers the steps you need to install Ubuntu and Zimbra. I followed the guide(s) step-by-step (changing only the LAN IP and installing only openSSH during the install & DNS in a chroot after install of Ubuntu) and it worked without problems - you need to read both guides if you're new to Linux and/or Ubuntu and make sure you follow the instructions.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-12-2011, 01:11 AM
Active Member
 
Posts: 25
Default

Quote:
Originally Posted by phoenix View Post
You don't need to modify the guide, it covers the steps you need to install Ubuntu and Zimbra. I followed the guide(s) step-by-step (changing only the LAN IP and installing only openSSH during the install & DNS in a chroot after install of Ubuntu) and it worked without problems - you need to read both guides if you're new to Linux and/or Ubuntu and make sure you follow the instructions.
Hi Bill:

Question, if you server's name (hostname) is not "mail" the in this Guide you have to change the word "mail" with your hostname every where?

Last time I installed Zimbra in Ubuntu I had the probleme that:

"hostname" and "hostname -f" was the same and it must be diferent, "hostname"=SERVERNAME and "hostname -f"=SERVERNAME.DOMAIN

I'm already blocked againg in the instalation... And I followed all the same steps as the last time.

Regards
Rafa
Reply With Quote
  #6 (permalink)  
Old 09-12-2011, 05:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by grafiky View Post
Question, if you server's name (hostname) is not "mail" the in this Guide you have to change the word "mail" with your hostname every where?
Yes, of course you do - that's explained in the article about the hostname and the FQDN.

Quote:
Originally Posted by grafiky View Post
Last time I installed Zimbra in Ubuntu I had the probleme that:

"hostname" and "hostname -f" was the same and it must be diferent, "hostname"=SERVERNAME and "hostname -f"=SERVERNAME.DOMAIN
If you followed those instructions in the wiki article then this does not happen. I have, yet again, downloaded 8.04 LTS and installed it and then followed the instructions in the wiki article - those commands gave me a different output (and correct i.e. hostname & FQDN respectively) than you've given.

Quote:
Originally Posted by grafiky View Post
I'm already blocked againg in the instalation... And I followed all the same steps as the last time.
Then all I can say is that you've done something wrong. You need to go to the Split DNS article and post the output of all the commands in the 'Verify....' section of that article. You should also include the output of the following command:

Code:
cat /etc/hostname
The output from that command should be a single word that is the hostname of your server not the FQDN. You do not need to modify any other files than the one mentioned in the wiki article, do not follow the instructions in the HowToForge article it is not necessary. I'll say this again, the wiki article contains all the steps needed to correctly install Zimbra (and configure the DNS and modify Ubuntu) on a Ubuntu server.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 09-12-2011, 06:18 AM
Active Member
 
Posts: 25
Default

OK, here it is... I wish you could see something wrong that I'm missing..

Code:
First Verify command:
---
root@zimbra-srv:~# dig brandhost.eu mx

; <<>> DiG 9.7.0-P1 <<>> brandhost.eu mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35122
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;brandhost.eu.                  IN      MX

;; ANSWER SECTION:
brandhost.eu.           604800  IN      MX      10 zimbra-srv.brandhost.eu.

;; AUTHORITY SECTION:
brandhost.eu.           604800  IN      NS      zimbra-srv.brandhost.eu.

;; ADDITIONAL SECTION:
zimbra-srv.brandhost.eu. 604800 IN      A       172.16.1.200

;; Query time: 0 msec
;; SERVER: 172.16.1.200#53(172.16.1.200)
;; WHEN: Mon Sep 12 17:06:45 2011
;; MSG SIZE  rcvd: 87
[
Code:
B]Second Verify command:[/B]

---
root@zimbra-srv:~# dig brandhost.eu any

; <<>> DiG 9.7.0-P1 <<>> brandhost.eu any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18089
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;brandhost.eu.                  IN      ANY

;; ANSWER SECTION:
brandhost.eu.           604800  IN      SOA     zimbra-srv.brandhost.eu. admin.brandhost.eu. 110911 604800 86400 2419200 604800
brandhost.eu.           604800  IN      NS      zimbra-srv.brandhost.eu.
brandhost.eu.           604800  IN      MX      10 zimbra-srv.brandhost.eu.
brandhost.eu.           604800  IN      A       172.16.1.200

;; ADDITIONAL SECTION:
zimbra-srv.brandhost.eu. 604800 IN      A       172.16.1.200

;; Query time: 0 msec
;; SERVER: 172.16.1.200#53(172.16.1.200)
;; WHEN: Mon Sep 12 17:09:40 2011
;; MSG SIZE  rcvd: 145
Code:
Third Verify command:

---
root@zimbra-srv:~# host $(hostname)
zimbra-srv.brandhost.eu has address 172.16.1.200
Code:
Fourth Verify command:

---
root@zimbra-srv:~# cat /etc/resolv.conf
search brandhost.eu
nameserver 172.16.1.200
Code:
Fifth Verify command:

---
root@zimbra-srv:~# cat /etc/hosts
127.0.0.1       localhost.localdomain   localhost
172.16.1.200    zimbra-srv.brandhost.eu zimbra-srv

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[
Code:
B]Sixth Verify command:[/B]

---
root@zimbra-srv:~# cat /etc/hostname 
zimbra-srv
It will be nice if you see any problem, it means I could fix it...

I will add this information:

Code:
root@zimbra-srv:~# su - zimbra

zimbra@zimbra-srv:~$ zmcontrol status

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

zimbra@zimbra-srv:~$ zmcontrol stop  
Host zimbra-srv
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping imapproxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Failed.
cat: /opt/zimbra/conf/spnego_java_options: No such file or directory
Stopping mailboxd...mailboxd is not running.
Error: assertion '-r /opt/zimbra/conf/my.cnf' failed


        Stopping convertd...Done.
        Stopping logger...Done.
        Stopping zmconfigd...Done.
        Stopping ldap...Done.
zimbra@zimbra-srv:~$ zmcontrol start
Host zimbra-srv
Starting ldap...Done.
Failed.
ldap_url and ldap_master_url cannot be the same on an ldap replica
---

This error I got AFTER execute this commands of this link:

"
[...]

/opt/zimbra/libexec/zmsetservername -n SERVERNAME

this command set ldap_master_url, ldap_url and ldap_port but only to be sure.

zmlocalconfig -e ldap_master_url=ldap://SERVERNAME:390
zmlocalconfig -e ldap_url=ldap://SERVERNAME:390
zmlocalconfig -e ldap_port=390


[...]
"


Thanks in advance, a lot.
Rafa

Last edited by phoenix; 09-12-2011 at 09:22 AM.. Reason: Add more info
Reply With Quote
  #8 (permalink)  
Old 09-12-2011, 08:32 AM
Active Member
 
Posts: 25
Default

Hi Bill:

I'm reinstalling and reinstalling and I see that during installation of Zimbra in the Wiki Guide says:

"When it asks you for your domain, it's going to have your fully-qualified domain name (hostname.mydomain.com) rather than just the domain, and probably complain about not having an MX record. Change the hostname to just mydomain.com and it'll find the names through nslookup, and it'll be happy."

But in the Quick Start Guide it says oposite:

"DNS ERROR - resolving MX records for mailhost.example.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] n
done.
Checking for port conflicts"

Did you change domain name?

I'm again already in this point...

Thanks.
Reply With Quote
  #9 (permalink)  
Old 09-12-2011, 09:28 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by grafiky View Post
I'm reinstalling and reinstalling and I see that during installation of Zimbra in the Wiki Guide says:

"When it asks you for your domain, it's going to have your fully-qualified domain name (hostname.mydomain.com) rather than just the domain, and probably complain about not having an MX record. Change the hostname to just mydomain.com and it'll find the names through nslookup, and it'll be happy."

But in the Quick Start Guide it says oposite:
It does not say the opposite, you have the option of chaning the domain name at that point, if your domain name is domain.com then you change it to that. The Install Guide merely shows you that in the case of that installation they have chosen to not change it.

The information you've posted from the Split DNS article is all OK.

What I suggest you do at this stage is completely shutdown Zimbra (and kill any remaining processes) then remove Zimbra with the following command:

Code:
./install.sh -u
That will remove all of the packages and the /opt/zimbra directory structure. When you have done that you run the installer again and make sure you do not install memcached or the imapproxy - they are not needed on a single server install. Go through the rest of the installation steps and when you're asked to change the domain name - change it to "brandhost.eu" and let the rest of the install finish. There should be no reason at this point why it shouldn't start correctly.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 09-15-2011, 08:53 AM
Active Member
 
Posts: 25
Default

Dear phoenix:

Uninstall, install and... works!

I will neves know the error but my statistics are not so bad, 2 of 5 installations worked!.

Thanks again.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.