Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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-06-2008, 12:21 AM
Partner (VAR/HSP)
 
Posts: 31
Default [SOLVED] ZMsetservername pains

I know I will get my hand slapped for this...we had a working zimbra installation which had been running for 5 months. This worked out great. I tried to migrate it to a more permanent domain name. So I added the new domain through zimbraadmin, tested and everything was working.

I then set out to use ZMSetservername and it failed (probably due to multiple domains being on the server). This has left the server unusable. I tried to set the hostname back to the old hostname and it still doesnt work. I narrowed down the problem to LDAP not starting when using a zimbra user. There may be more problems but this is where it starts for me.

Code:
@(#) $OpenLDAP: slapd 2.3.41 (May  2 2008 10:35:11) $
        root@ubu32:/opt/build.zimbra/source/FRANKLIN/ThirdParty/openldap/openldap-2.3.41.6z/servers/slapd
daemon_init: ldap://
daemon_init: listen on ldap://
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: bind(7) failed errno=13 (Permission denied)
slap_open_listener: failed on ldap:///
slapd stopped.
connections_destroy: nothing to destroy.
Unfortunately, I do no have a latest backup. (This was a little careless of me). My backup is a few weeks old and some of our users have some emails which they would need. Is there anything that can be done to recover this server? Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-06-2008, 12:34 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Did you modify your DNS settings to point to the new server name? Did you also modify your hosts file for the new server name? What were you trying to do when you made this change?

You should also check this article: http://wiki.zimbra.com/index.php?title=Zmsetservername
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 12-06-2008, 12:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Please don't post duplicate messages on the same problem in the forums, it makes it difficult to answer your posts and follow the problem.
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 12-06-2008, 12:40 AM
Partner (VAR/HSP)
 
Posts: 31
Default

Hi Bill,

Thanks for the quick reply. DNS settings are correct and pointing to the server and the hosts file has the new server info. However, trying to revert to the old hostname isnt working either.

I looked at that article and tried to do everything on there but at this point nothing seems to work. If I run the above command using "-u root" then the it seems to work. Using "-u zimbra" gives the permission denied error.


-A
Reply With Quote
  #5 (permalink)  
Old 12-06-2008, 12:41 AM
Partner (VAR/HSP)
 
Posts: 31
Default

Bill...Sorry about the dup msg.
Reply With Quote
  #6 (permalink)  
Old 12-06-2008, 12:46 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Let's check the DNS and hosts ettings first, post the output of the following (run on the zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com any
dig yourdomain.com mx
host `hostname`  <-- type as-is with backticks not single quotes
Please format the output of each command with 'code' attributes.

Which version & release of Zimbra is this and which operating system. I will be going shortly as I have an appointment, post the output for others to have a look at just in case I don't get a chance to reply.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 12-06-2008, 01:04 AM
Partner (VAR/HSP)
 
Posts: 31
Default

Hi Bill,

The Zimbra Version is: 5.05
OS: Ubuntu 8.04

hosts file

Code:
zimbra@ec2-75-101-133-225:~$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
75.101.133.225 mail.linkxcorp.com

# 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


resolv.conf

Code:
zimbra@ec2-75-101-133-225:~$ cat /etc/resolv.conf
search compute-1.internal
nameserver 172.16.0.23



dig linkxcorp (host 1)

Code:
zimbra@ec2-75-101-133-225:~$ dig linkxcorp.com any

; <<>> DiG 9.4.2 <<>> linkxcorp.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55133
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

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

;; ANSWER SECTION:
linkxcorp.com.          172800  IN      NS      ns45.domaincontrol.com.
linkxcorp.com.          172800  IN      NS      ns46.domaincontrol.com.

;; AUTHORITY SECTION:
linkxcorp.com.          172800  IN      NS      ns46.domaincontrol.com.
linkxcorp.com.          172800  IN      NS      ns45.domaincontrol.com.

;; Query time: 80 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Sat Dec  6 00:56:23 2008
;; MSG SIZE  rcvd: 111
Code:
zimbra@ec2-75-101-133-225:~$ dig linkxcorp.com mx

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

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

;; ANSWER SECTION:
linkxcorp.com.          3600    IN      MX      0 mail.linkxcorp.com.

;; AUTHORITY SECTION:
linkxcorp.com.          172712  IN      NS      ns45.domaincontrol.com.
linkxcorp.com.          172712  IN      NS      ns46.domaincontrol.com.

;; Query time: 72 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Sat Dec  6 00:57:51 2008
;; MSG SIZE  rcvd: 104



Code:
zimbra@ec2-75-101-133-225:~$ host `hostname`
ec2-75-101-133-225.compute-1.amazonaws.com has address 10.254.199.144



dig ec2-75-101-133-225.compute-1.amazonaws.com (host 2)

Code:
zimbra@ec2-75-101-133-225:~$ dig ec2-75-101-133-225.compute-1.amazonaws.com any

; <<>> DiG 9.4.2 <<>> ec2-75-101-133-225.compute-1.amazonaws.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4438
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 3

;; QUESTION SECTION:
;ec2-75-101-133-225.compute-1.amazonaws.com. IN ANY

;; ANSWER SECTION:
ec2-75-101-133-225.compute-1.amazonaws.com. 37 IN A 10.254.199.144

;; AUTHORITY SECTION:
amazonaws.com.          20292   IN      NS      pdns1.ultradns.net.
amazonaws.com.          20292   IN      NS      pdns2.ultradns.net.
amazonaws.com.          20292   IN      NS      pdns3.ultradns.org.
amazonaws.com.          20292   IN      NS      pdns4.ultradns.org.
amazonaws.com.          20292   IN      NS      pdns5.ultradns.info.
amazonaws.com.          20292   IN      NS      pdns6.ultradns.co.uk.

;; ADDITIONAL SECTION:
pdns1.ultradns.net.     115     IN      A       204.74.108.1
pdns2.ultradns.net.     102368  IN      A       204.74.109.1
pdns6.ultradns.co.uk.   57405   IN      A       204.74.115.1

;; Query time: 0 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Sat Dec  6 01:00:54 2008
;; MSG SIZE  rcvd: 295
Code:
zimbra@ec2-75-101-133-225:~$ dig ec2-75-101-133-225.compute-1.amazonaws.com mx

; <<>> DiG 9.4.2 <<>> ec2-75-101-133-225.compute-1.amazonaws.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13802
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ec2-75-101-133-225.compute-1.amazonaws.com. IN MX

;; AUTHORITY SECTION:
compute-1.amazonaws.com. 60     IN      SOA     ns0.compute-1.amazonaws.com. hostmaster.amazon.com. 1226978246 1800 300 2419200 60

;; Query time: 1 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Sat Dec  6 01:01:36 2008
;; MSG SIZE  rcvd: 118

Last edited by lsu_guy; 12-06-2008 at 01:14 AM..
Reply With Quote
  #8 (permalink)  
Old 12-06-2008, 05:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Is linkxcorp.com your real domain name and are you behind any sort of firewall or NAT router?
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 12-06-2008, 08:23 AM
Partner (VAR/HSP)
 
Posts: 31
Default

I'm behind a NAT router which routes linkxcorp to the internal IP address.
Reply With Quote
  #10 (permalink)  
Old 12-06-2008, 08:34 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by lsu_guy View Post
I'm behind a NAT router which routes linkxcorp to the internal IP address.
You mean it forwards port 25 to your internal IP address? As you're behind a router you should really have a Split DNS set-up so the internal IP of your server can be resolved correctly. Is this a fixed IP address you have and is this:

Code:
10.254.199.144
your LAN IP address?
__________________
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.