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

Thread: [SOLVED] ZMsetservername pains

  1. #1
    Join Date
    Dec 2008
    Location
    North Bay, CA
    Posts
    31
    Rep Power
    7

    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.

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Dec 2008
    Location
    North Bay, CA
    Posts
    31
    Rep Power
    7

    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

  5. #5
    Join Date
    Dec 2008
    Location
    North Bay, CA
    Posts
    31
    Rep Power
    7

    Default

    Bill...Sorry about the dup msg.

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    Dec 2008
    Location
    North Bay, CA
    Posts
    31
    Rep Power
    7

    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 02:14 AM.

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

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Dec 2008
    Location
    North Bay, CA
    Posts
    31
    Rep Power
    7

    Default

    I'm behind a NAT router which routes linkxcorp to the internal IP address.

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. zmsetservername command
    By tiger2000 in forum Administrators
    Replies: 1
    Last Post: 11-23-2008, 11:37 PM

Posting Permissions

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