Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] host file problem

  1. #1
    mr.interested is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    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

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    mr.interested is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    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:

    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.

    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:

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

    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

    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:

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

    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 01:44 PM. Reason: formatting

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    mr.interested is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    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

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    mr.interested is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    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:

    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:

    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

    ; <<>> 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

    ; <<>> 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

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    mr.interested is offline Member
    Join Date
    Jan 2011
    Posts
    12
    Rep Power
    4

    Default

    I'm sorry. The first one:

    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:

    root@faeaa:~# cat /etc/resolv.conf
    nameserver 213.133.98.98
    nameserver 213.133.99.99

  10. #10
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  2. SOAP problem - couldn't connect to host
    By mmb12345 in forum Developers
    Replies: 2
    Last Post: 12-31-2007, 03:20 PM
  3. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  4. Installation Problem - Possibly LDAP
    By geroshea in forum Installation
    Replies: 5
    Last Post: 03-16-2007, 04:47 AM
  5. hosts file problem - fqdn
    By martin78 in forum Installation
    Replies: 1
    Last Post: 02-16-2007, 02:03 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
  •