well, where do I begin...
The short question is:
-why does zmhostname print out this hostname?
Facts (for the most part):
-I had a working mail server that I needed to change to another domain.
-Static IP directly connected to Internet. No LAN.
-old domain was tospanama.com
-new domain oxfordpanama.info but want to use mail.oxfordpanama.com (also own oxfordpanama.com, but it is another machine)
-email server was working ok with mail.oxfordpanama.com after I made some changes in zimbra (don't ask me what), but there were a number of emails that being deferred with connection time out (to yahoo, gmail and hotmail) and mail transport unavailable messages
-there were still remnants of tospanama.com in zimbra and the file system and I thought that could be a cause so I started changing stuff
here's the output of what I currently have:
Code:
dig mail.oxfordpanama.com mx
; <<>> DiG 9.4.2 <<>> mail.oxfordpanama.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51626
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.oxfordpanama.com. IN MX
;; AUTHORITY SECTION:
oxfordpanama.com. 10800 IN SOA dns11.register.com. root.register.com. 200310320 10800 3600 604800 86400
;; Query time: 105 msec
;; SERVER: 201.225.225.225#53(201.225.225.225)
;; WHEN: Fri Feb 25 01:53:51 2011
;; MSG SIZE rcvd: 95
Code:
dig mail.oxfordpanama.com any
; <<>> DiG 9.4.2 <<>> mail.oxfordpanama.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41412
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.oxfordpanama.com. IN ANY
;; ANSWER SECTION:
mail.oxfordpanama.com. 58440 IN A 201.226.249.201
;; AUTHORITY SECTION:
oxfordpanama.com. 43704 IN NS dns12.register.com.
oxfordpanama.com. 43704 IN NS dns11.register.com.
;; Query time: 5 msec
;; SERVER: 201.225.225.225#53(201.225.225.225)
;; WHEN: Fri Feb 25 02:13:17 2011
;; MSG SIZE rcvd: 104
Code:
host $(hostname)
mail.oxfordpanama.com has address 201.226.249.201
Code:
cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 5128
#
### END INFO
#domain mail.oxfordpanama.com
search oxfordpanama.com
nameserver 201.225.225.225
nameserver 201.224.73.162
nameserver 8.8.8.8
#nameserver 8.8.4.4
Code:
127.0.0.1 localhost.localdomain localhost
201.226.249.201 mail.oxfordpanama.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
Code:
hostname
mail.oxfordpanama.com
And finally the dreadful error that led me to this post.
Code:
zmcontrol start
Host -n
Starting ldap...Done.
FAILED
Failed to start slapd. Attempting debug start to determine error.
daemon: getaddrinfo() failed: No address associated with hostname Any ideas so that I won't have a mob at my desk all day...
TIA!