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 12-23-2009, 08:56 AM
Intermediate Member
 
Posts: 16
Default [SOLVED] hostname not surviving reboot

Here is my issue, right now everything works, whe I reboot the server the host name appears to break, which breaks the admin staus, stats, and stats email, this is just what I've noticed.

I've run through these formus, the Wiki, and any just about everything else I could find, serveral times.

The ONLY way I can temporally resolve it (until next reboot) is to, as root:
Code:
hostname mail
As soon as above is run, everything works. (no restart of anything required).

I have split DNS setup using a Win2k3 DNS server (.3), with a backup, slave Win2k8 DNS server (.5).

There has got to be an error somewhere in my config thats not letting things survie a reboot, I just can't seem to find it.

Here is all the normally requested Info:

cat /etc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
192.168.87.60 mail.mydomain.com mail

# The following lines are desirable for IPv6 capable hosts
# ::1     ip6-localhost ip6-loopback
# fe00::0 ip6-localnet
# ff00::0 ip6-mcastprefix
# ff02::1 ip6-allnodes
# ff02::2 ip6-allrouters
# ff02::3 ip6-allhosts
cat /etc/resolv.conf
Code:
search mydomain.com
nameserver 192.168.87.3
nameserver 192.168.87.5
dig yourdomain.com any
Code:
; <<>> DiG 9.4.2 <<>> mydomain.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11835
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 5

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

;; ANSWER SECTION:
mydomain.com.           3600    IN      A       192.168.87.60
mydomain.com.           3600    IN      NS      ns2.mydomain.com.
mydomain.com.           3600    IN      NS      srv1.mydomain.com.
mydomain.com.           3600    IN      NS      srv1.localdomain.local.
mydomain.com.           3600    IN      NS      ns1.mydomain.com.
mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
live.com. 64 900 600 86400 3600
mydomain.com.           3600    IN      MX      10 mail.mydomain.com.

;; ADDITIONAL SECTION:
ns2.mydomain.com.       3600    IN      A       192.168.87.5
srv1.mydomain.com.      3600    IN      A       192.168.87.3
srv1.localdomain.local.        3600    IN      A       192.168.87.3
ns1.mydomain.com.       3600    IN      A       192.168.87.3
mail.mydomain.com.      3600    IN      A       192.168.87.60

;; Query time: 0 msec
;; SERVER: 192.168.87.3#53(192.168.87.3)
;; WHEN: Wed Dec 23 21:21:21 2009
;; MSG SIZE  rcvd: 278
dig yourdomain.com mx
Code:
; <<>> DiG 9.4.2 <<>> mydomain.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25261
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

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

;; ANSWER SECTION:
mydomain.com.           3600    IN      MX      10 mail.mydomain.com.

;; ADDITIONAL SECTION:
mail.mydomain.com.      3600    IN      A       192.168.87.60

;; Query time: 0 msec
;; SERVER: 192.168.87.3#53(192.168.87.3)
;; WHEN: Wed Dec 23 21:23:15 2009
;; MSG SIZE  rcvd: 67
host `hostname`
Code:
mail.mydomain.com has address 192.168.87.60
host -v fqdn.yourdomain.com
Code:
Trying "mail.mydomain.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64870
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.             IN      A

;; ANSWER SECTION:
mail.mydomain.com.      3600    IN      A       192.168.87.60

Received 51 bytes from 192.168.87.3#53 in 0 ms
Trying "mail.mydomain.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29470
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.             IN      AAAA

;; AUTHORITY SECTION:
mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
live.com. 64 900 600 86400 3600

Received 97 bytes from 192.168.87.3#53 in 0 ms
Trying "mail.mydomain.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1620
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

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

;; AUTHORITY SECTION:
mydomain.com.           3600    IN      SOA     srv1.localdomain.local. hostmaster.localdomain
live.com. 64 900 600 86400 3600

Received 97 bytes from 192.168.87.3#53 in 0 ms
This is driving me nuts, I've got lot of time into NOT solving this, any help would be appriciated.
Reply With Quote
  #2 (permalink)  
Old 12-23-2009, 09:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

What does it say in the /etc/hostname file?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 12-23-2009, 09:51 AM
Intermediate Member
 
Posts: 16
Default Hostname contents

Quote:
Originally Posted by phoenix View Post
What does it say in the /etc/hostname file?
/etc/hostname
Code:
mail

Thanks for the quick reply!

Frank
Reply With Quote
  #4 (permalink)  
Old 12-23-2009, 10:19 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

What's the contents of this file: /etc/sysconfig/network

[/edit]Oops, that was from the wrong distribution.

What I meant to ask was, when you did the command to display the contents of /etc/hostname did you do that after a reboot or after you had run the hostname command to set the name to 'mail?
__________________
Regards


Bill

Last edited by phoenix; 12-23-2009 at 11:13 AM..
Reply With Quote
  #5 (permalink)  
Old 12-23-2009, 12:30 PM
Intermediate Member
 
Posts: 16
Default Hostname

It was after the reboot and after reseting the hostname mannually.

I will try rebooting and recording info before resetting it.

Frank
Reply With Quote
  #6 (permalink)  
Old 12-23-2009, 04:52 PM
Intermediate Member
 
Posts: 16
Default Hostname

/etc/hostname did not change after reboot, before doing anything.
Code:
mail
hostname -a (same resultes for -s -f and -d)
Code:
hostname: Unknown host
After resetting hostname with
Code:
hostname mail
hostname -a and -s returned
Code:
mail
hostname -f
Code:
mail.mydomain.com
hostname -d
Code:
mydomain.com
Reply With Quote
  #7 (permalink)  
Old 12-25-2009, 12:12 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Could you try this, delete the /etc/hostname file then use your favourite editor to create the file again with your hostname then save the file and reboot the server. Does that fix it?
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 12-25-2009, 10:01 AM
Intermediate Member
 
Posts: 16
Default Re-create hostname file

Quote:
Originally Posted by phoenix View Post
Could you try this, delete the /etc/hostname file then use your favourite editor to create the file again with your hostname then save the file and reboot the server. Does that fix it?
That did it, although I don't understand why. The file contents and permissions are identical. Is this some kind of quirk with the OS?

Thanks a lot for your time, now thats resolved, the ony other issues I have is the AV/AS stats are always zero, and I know there is some spam being routed to the junk my folder, but I search the formus before I post this issue.

Again, thanks Frank.
Reply With Quote
  #9 (permalink)  
Old 12-25-2009, 10:26 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by flsimbeck View Post
That did it, although I don't understand why. The file contents and permissions are identical. Is this some kind of quirk with the OS?
If everything appears OK then the likely answer is that there are some unprintable characters in the file (as there probably was in this case), deleting and recreating the file just means you have the correct data in there and no extraneous characters. Glad you've fixed it.

Quote:
Originally Posted by flsimbeck View Post
Thanks a lot for your time, now thats resolved, the ony other issues I have is the AV/AS stats are always zero, and I know there is some spam being routed to the junk my folder, but I search the formus before I post this issue.
I'd suggest you have a look at the wiki for details of the logger here: Logger (ZCS 6.0.x and later) - Zimbra :: Wiki That will give you an idea of how it works and at the bottom of that page there are some Troubleshooting tips. When you've been through that have a quick search of the forums for any similar problems and if you still have no data then post again in a new thread.

Quote:
Originally Posted by flsimbeck View Post
Again, thanks Frank.
You're welcome.
__________________
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.