Results 1 to 8 of 8

Thread: zimbra upgrade from 5.0.18 to 7.2.4 generates errors with reference to /etc/hosts

  1. #1
    zmgd is offline Junior Member
    Join Date
    Jun 2013
    Posts
    9
    Rep Power
    2

    Default zimbra upgrade from 5.0.18 to 7.2.4 generates errors with reference to /etc/hosts

    I have a working version of zimbra 5.0.18. Email flows in and out for my public domain: westcoasteden.com. I used the default domain: example.com during the initial install. My /etc/hosts file is as follows:
    127.0.0.1 localhost.localdomain localhost
    127.0.1.1 zimbra
    127.0.1.1 zimbra.example.com zimbra
    127.0.0.1 mail.example.com mail

    My /etc/resolv.conf is:
    nameserver 127.0.0.1
    search example.com gv.shawcable.net

    I am using dnsmaq, not bind. I followed the instructions on the Split DNS document to get email flowing for the public domain: westcoasteden.com. I can send and receive email to/from accounts on this domain.

    After getting email working I wanted to upgrade to a newer version. I downloaded and extracted the files for the 7.2.4 version (my box is 32-bit). But, when I try to upgrade by running ./install.sh, I receive the following:

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

    <ip> <FQHN> <HN>

    Where <IP> is the ip address of the host,
    <FQHN> is the FULLY QUALIFIED host name, and
    <HN> is the (optional) hostname-only portion

    to try to resolve the issue, I created an A record for zimbra.westcoasteden.com and used (96.50.10.110 zimbra.westcoasteden.com zimbra) in my /etc/hosts, but that also did not work. I also tried changing that to: 127.0.0.1 zimbra.example.com zimbra and then to 127.0.1.1, but neither worked.


    After I make a change, I am restarting both /etc/init.d/networking and /etc/init.d/dnsmasq. My version of Linux is Ubuntu 8.04.

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

    Default

    Quote Originally Posted by zmgd View Post
    I followed the instructions on the Split DNS document to get email flowing for the public domain: westcoasteden.com.
    I'm afraid you did not follow those instructions, your hosts file is horribly broken and you should also have an entry for your LAN IP in that file. I'd suggest you go back and read the Split DNS article again and reconstruct your hosts file and when you've done that post the output of all the commands in the 'Verify....' section of that article.
    Last edited by phoenix; 06-24-2013 at 10:37 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    zmgd is offline Junior Member
    Join Date
    Jun 2013
    Posts
    9
    Rep Power
    2

    Default

    Ugh...after many iterations (trying to follow the Split DNS article), the only config of /etc/hosts (and dnsmasq.conf and /etc/resolv.conf) that works for sending/receiving email is the one that I sent originalyl and the one that you say is horribly broken. So, to add a bit more info. I am directly connected to the Internet. I am not behind a firewall...other than Ubuntu firewall rules. The /etc/dnsmasq.conf is:

    oot@zimbra:/# cat /etc/dnsmasq.conf
    server=8.8.8.8
    server=64.59.160.13
    server=64.59.161.68
    domain=example.com
    mx-host=example.com,mail.example.com,5
    listen-address=127.0.0.1

    The verify output is as follows...the only output that looks a little off is the host command...
    root@zimbra:/# dig westcoasteden.com mx

    ; <<>> DiG 9.4.2-P2.1 <<>> westcoasteden.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19765
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

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

    ;; ANSWER SECTION:
    westcoasteden.com. 74986 IN MX 10 mail.westcoasteden.com.

    ;; ADDITIONAL SECTION:
    mail.westcoasteden.com. 74986 IN A 96.50.10.110

    ;; Query time: 11 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Jun 24 14:12:25 2013
    ;; MSG SIZE rcvd: 72

    root@zimbra:/# dig westcoasteden.com any

    ; <<>> DiG 9.4.2-P2.1 <<>> westcoasteden.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23264
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 5

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

    ;; ANSWER SECTION:
    westcoasteden.com. 74978 IN MX 10 mail.westcoasteden.com.
    westcoasteden.com. 18807 IN NS ns-206.awsdns-25.com.
    westcoasteden.com. 18807 IN NS ns-1827.awsdns-36.co.uk.
    westcoasteden.com. 820 IN SOA ns-551.awsdns-04.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
    westcoasteden.com. 18807 IN NS ns-1509.awsdns-60.org.
    westcoasteden.com. 18807 IN NS ns-551.awsdns-04.net.

    ;; ADDITIONAL SECTION:
    ns-551.awsdns-04.net. 61802 IN A 205.251.194.39
    mail.westcoasteden.com. 74978 IN A 96.50.10.110
    ns-206.awsdns-25.com. 86351 IN A 205.251.192.206
    ns-1509.awsdns-60.org. 53593 IN A 205.251.197.229
    ns-1827.awsdns-36.co.uk. 55176 IN A 205.251.199.35

    ;; Query time: 13 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Jun 24 14:12:33 2013
    ;; MSG SIZE rcvd: 334

    root@zimbra:/# host $(hostname)
    zimbra.example.com A 127.0.0.1
    !!! zimbra.example.com A record has zero ttl

    Murray

  4. #4
    zmgd is offline Junior Member
    Join Date
    Jun 2013
    Posts
    9
    Rep Power
    2

    Default

    I am still trying to do an upgrade, but I got distracted. I decided to try and move the default zimbra port 80 to port 8080 because I wanted Apache 2 to coexist with Zimbra's httpd. I royally messed things up and could not get zmmailboxctld to start after the change. I used the following to make the change:

    /opt/zimbra/bin/zmprov mcf zimbraMailPort 8080
    /opt/zimbra/bin/zmprov gcf zimbraMailPort #which displays the following.
    zimbraMailPort: 8080

    I ended up moving Apache2 to port 8080 and then Zimbra would start. I wanted Apache2 so that I could run a GUI version of Bacula. In order to get Zimbra working again, I modified my hosts file:

    oot@zimbra:/# cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost
    96.50.10.110 zimbra
    96.50.10.110 mail.example.com mail
    96.50.10.110 zimbra.example.com zimbra

    I then had to add 96.50.10.110 to zimbraMtaMyNetworks because I could not send outgoing mail from my LAN IP.

    zimbra@zimbra:/etc/init.d$ zmprov modifyServer mail.example.com zimbraMtaMyNetworks '127.0.0.0/8 96.50.10.110/32'
    zimbra@zimbra:/etc/init.d$ postfix reload
    postfix/postfix-script: refreshing the Postfix mail system
    zimbra@zimbra:/etc/init.d$ postconf mynetworks
    mynetworks = 127.0.0.0/8 96.50.10.110/32

    So, now I could send and receive email. I thought, "This must be a correct /etc/hosts file!". I was wrong! I tried the upgrade again and got the same error message that I had to fix my /etc/hosts file. I am bewildered. How can I have a misconfigured hosts file when Zimbra is working? I can send and receive email.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    Default

    This is well documented in the Split DNS wiki article and many forum threads (it's even in the error message from the upgrade procedure), your hosts file should contain only the following:

    Code:
    127.0.0.1 localhost.localdomain localhost
    96.50.10.110 mail.westcoasteden.com mail
    The fact that it works with your current configuration is pure luck and the format you currently have will bite you in the backside at some point in the future, more recent versions of ZCS enforce the correct format. The entry you've added for your IP address in zimbraMtaMyNetworks is required otherwise ZCS doesn't know where to deliver mail (or find other ZCS services) and this is the default which you must have removed.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    zmgd is offline Junior Member
    Join Date
    Jun 2013
    Posts
    9
    Rep Power
    2

    Default

    My luck seems to be an on again off again situation. Your suggestion did not work because I originally (and foolishly) installed zimbra using the default domain; example.com. I could not send or receive email using the following:
    127.0.0.1 localhost.localdomain localhost
    96.50.10.110 mail.westcoasteden.com mail

    I can howerver send and receive westcoasteden.com email using:
    127.0.0.1 localhost.localdomain localhost
    96.50.10.110 mail.example.com mail

    However, the upgrade failed. But, enough is enough. No more experimentation. I will do this right...get a bare metal 64-bit box, install Ubuntu 12.04 and then Zimbra 8.04 and use my public domain as the zimbra domain when I install Zimbra. I learned a lot during this process, thank again. PS: how do you get your code in a code box when you post?

    Regards,

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    Default

    You can actually rename a domain with the zmprov command. If you're in the Advanced editor for the forum post then highlight a block of text then hit the code button (it's the # hash symbol on the toolbar).
    Last edited by phoenix; 06-27-2013 at 11:01 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    jhon is offline Senior Member
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    60
    Rep Power
    2

    Default

    Probably, You are missing word "mail" in your first line of hosts file.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra v7.x REST API reference?
    By j2b in forum Administrators
    Replies: 3
    Last Post: 07-19-2011, 04:19 AM
  2. Zimbra generates large mailbox.log files
    By Peperzaken in forum Administrators
    Replies: 14
    Last Post: 12-03-2008, 11:11 AM
  3. [SOLVED] upgrade failing because of /etc/hosts?
    By Phloyd in forum Installation
    Replies: 5
    Last Post: 11-29-2008, 11:47 AM
  4. RFC: Zimbra generates In-Reply-To incorrectly?
    By Baylink in forum Administrators
    Replies: 3
    Last Post: 09-15-2008, 10:23 AM
  5. zimbra generates occasional duplicate message
    By ljm in forum Administrators
    Replies: 0
    Last Post: 01-15-2007, 09:43 PM

Tags for this Thread

Posting Permissions

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