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 01-29-2011, 10:33 AM
Member
 
Posts: 12
Default [SOLVED] host file problem

Hello,

@ all - any update on this? I'm trying to install the latest version (zcs-NETWORK-6.0.10 for Ubuntu 10.04 64) on Ubuntu 10.10 64. I'm having the very same issue with the file /etc/hosts/. How can I fix that? I was also trying to edit the file like here (diggleby Blog Archive how to fix zimbra error please fix /etc/hosts file), but nothing happened.

@ ipguru99 - what exactly did you edit in the file utilfunc.sh?

Best
Reply With Quote
  #2 (permalink)  
Old 01-29-2011, 10:49 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

You should not add your post to a thread that's almost five years old, I'll move this to a new thread.

Quote:
Originally Posted by mr.interested View Post
@ all - any update on this? I'm trying to install the latest version (zcs-NETWORK-6.0.10 for Ubuntu 10.04 64) on Ubuntu 10.10 64. I'm having the very same issue with the file /etc/hosts/. How can I fix that? I was also trying to edit the file like here (diggleby Blog Archive how to fix zimbra error please fix /etc/hosts file), but nothing happened.
The answer to your question is all over the forums and the wiki, you need to fix your hosts file (plus your DNS A & MX records need to be correct) - you should also provide examples of what you've done to fix the problem. Go to the Split DNS article in the wiki and read what you have to do (if you're behind a NAT router), you can also run the commands in the 'Verify...' section of that article to confirm all the settings are correct. The Quick Start Installation Guide also has details of what's needed for the hosts file, I assume you read that first?

Quote:
Originally Posted by mr.interested View Post
@ ipguru99 - what exactly did you edit in the file utilfunc.sh?
You do not need to modify anything in the install script.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 01-29-2011, 12:38 PM
Member
 
Posts: 12
Default

Thank you Bill. Apologies for digging up in the old thread, but though it would be handier for people reading my post.

Yes, I've read all documentation, but I'm new to administrating servers, and I'm getting a little bit confused. Please let me explain in a few points below.

FIRST. I'm trying to install the latest network edition on my VPS, but I've also tried to install this on my laptop, which has the very same system (Ubuntu 10.10 64-bit) and it worked. I didn't have any problems with this, and I did NOT install any dependencies prior to ZCS installation. Only when I try to install this on VPS I get the below error:

Quote:
ERROR: Installation can not proceeed. Please fix your /etc/hosts file
to contain:



Where is the ip address of the host,
is the FULLY QUALIFIED host name, and
is the (optional) hostname-only portion
SECOND. I was comparing /etc/hosts file on VPS to this on my laptop, and couldn't really find any relevant differences. At the beginning it looked like this, where 00.0.000.000 is one of my VPS IP's.

Quote:
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
00.0.000.000 domain.com
THIRD. I've read Modifying Operating System Configurations and I was trying to understand this part:

Quote:
127.0.0.1 localhost.localdomain localhost
your.ip.address FQDN yourhostname
In one of the documents I've found two interesting hints:

Quote:
FQDN
Fully qualified domain name. The hostname and the path to the host. For example, Zimbra offers Open Source email server software and shared calendar for Linux and the Mac. is a fully qualified domain name. www is the host, Zimbra isthe second-level domain, and .com is the top level domain.
and

Quote:
You can use another FQDN as long as the name has a proper DNS entry to point at ‘server’ both internally and externally.
So I tried to add to /etc/hosts one of the following lines at each time, since I was (and sill am) unsure of the explanation about that file:

Quote:
00.0.000.000 zimbra.domain.com
Quote:
00.0.000.000 zimbra.domain.com localhost
And I also added A record in BIND:

Quote:
zimbra.domain.com. A Default 00.0.000.000
FOURTH. I just want to make sure that the platform will be on http://zimbra.domain.com, and not on Domain Name Registration and Web Hosting | Domain.com.

FIFTH. Slightly off-topic. I understand that the platform is the only application installed on the server. What if I wanted to use an open-source version for other domain, say, domain.net on the same VPS?

Thank you for your help.

Best

Last edited by mr.interested; 01-29-2011 at 12:44 PM.. Reason: formatting
Reply With Quote
  #4 (permalink)  
Old 01-30-2011, 12:10 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by mr.interested View Post
Thank you Bill. Apologies for digging up in the old thread, but though it would be handier for people reading my post.

Yes, I've read all documentation, but I'm new to administrating servers, and I'm getting a little bit confused. Please let me explain in a few points below.

FIRST. I'm trying to install the latest network edition on my VPS, but I've also tried to install this on my laptop, which has the very same system (Ubuntu 10.10 64-bit) and it worked. I didn't have any problems with this, and I did NOT install any dependencies prior to ZCS installation. Only when I try to install this on VPS I get the below error:-
The problem here is the fact you're installing Zimbra on a VPS, this is not a supported platform for Zimbra (OSS or NE) and will invalidate your support for NE. You may get it working (there are several threads in the forums on this) but you'd basically be on your own for support.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 01-30-2011, 02:55 AM
Member
 
Posts: 12
Default

Thank you Bill. I have never thought that installing Zimbra on VPS would be a problem, so I didn't even look for those threads.

I can see your reply re RAM (here Installing Zimbra on VPS). There's no problem for me to increase it to 2GB. I can do this temporary to see if this helps.

However, that problem the user had on the mentioned thread is something else, and it happens later in the installation. But that doesn't explain my problem with /etc/hosts file. Could you please explain how to fix that?

Best
Reply With Quote
  #6 (permalink)  
Old 01-30-2011, 05:21 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Go to the Split DNS article and post the output from all the commands in the 'Verify....' section.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 01-30-2011, 06:08 AM
Member
 
Posts: 12
Default

Many thanks for your response. I was researching the forum, and with a help of couple of your posts and others (fresh install on new debian vps, not working!, fresh install on new debian vps, not working!, and using the site Pingability.com: Web Site Monitoring and Alert Service), I set up the following DNS in BIND:

Quote:
zimbra.faeaa.com. A Default 46.4.156.210
faeaa.com. MX 38400 10 mxl.faeaa.com.
mxl.faeaa.com. A Default 46.4.156.210
Here's how etc/hosts file looks like:

Quote:
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
46.4.156.210 zimbra.faeaa.com zimbra
And to answer to your request, below the outputs.

dig yourdomain.com mx

Quote:
; <<>> DiG 9.7.1-P2 <<>> faeaa.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41435
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;faeaa.com. IN MX

;; ANSWER SECTION:
faeaa.com. 38400 IN MX 10 mxl.faeaa.com.

;; Query time: 96 msec
;; SERVER: 89.101.160.4#53(89.101.160.4)
;; WHEN: Sun Jan 30 13:58:11 2011
;; MSG SIZE rcvd: 47
dig faeaa.com any

Quote:
; <<>> DiG 9.7.1-P2 <<>> faeaa.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59845
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;faeaa.com. IN ANY

;; ANSWER SECTION:
faeaa.com. 38287 IN MX 10 mxl.faeaa.com.
faeaa.com. 36406 IN A 46.4.156.210

;; Query time: 16 msec
;; SERVER: 89.101.160.4#53(89.101.160.4)
;; WHEN: Sun Jan 30 14:00:04 2011
;; MSG SIZE rcvd: 63
Hope I didn't omit anything for you to show.

Best
Reply With Quote
  #8 (permalink)  
Old 01-30-2011, 06:32 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Do you have a firewall on this server? You missed out the following command:

Code:
host `hostname`  <-- note the backticks not single quotes
What's the output of the following:

Code:
cat /etc/resolv.conf
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 01-30-2011, 06:40 AM
Member
 
Posts: 12
Default

I'm sorry. The first one:

Quote:
root@faeaa:~# host 'faeaa.com'
faeaa.com has address 46.4.156.210
faeaa.com mail is handled by 10 mxl.faeaa.com.
And the second one:

Quote:
root@faeaa:~# cat /etc/resolv.conf
nameserver 213.133.98.98
nameserver 213.133.99.99
Reply With Quote
  #10 (permalink)  
Old 01-30-2011, 07:00 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by mr.interested View Post
I'm sorry. The first one:
No, I meant use the command exactly as you see it - do not change anything in the command.

Quote:
Originally Posted by mr.interested View Post
And the second one:

Code:
root@faeaa:~# cat /etc/resolv.conf
nameserver 213.133.98.98
nameserver 213.133.99.99
Then I'm slightly confused by your DNS output, it's getting a server response at this IP address (look at the IP in the output of your dig command above):

Code:
89.101.160.4
The DNS servers in your resolv.conf don't appear to have your DNS records:

Code:
dig @213.133.98.98 faeaa.com mx

; <<>> DiG 9.7.1-P2 <<>> @213.133.98.98 faeaa.com mx
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 17530
;; flags: qr rd; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; Query time: 52 msec
;; SERVER: 213.133.98.98#53(213.133.98.98)
;; WHEN: Sun Jan 30 15:55:52 2011
;; MSG SIZE  rcvd: 12
The DNS server IP in your resolv.conf should be your install of BIND on the Zimbra server.

What's the answer to my question about the firewall?
__________________
Regards


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