Results 1 to 4 of 4

Thread: Problems after changing domain with zmsetservername

  1. #1
    Join Date
    Jan 2012
    Rep Power

    Default Problems after changing domain with zmsetservername


    I have followed the instructions here to change the hostname of a server, but am running into problems after running 'zmcontrol restart'. It looks like some services are not starting correctly, and I cannot access the webmail or admin (port 7071) interfaces.

    Here is the output of 'zmcontrol restart'

            Stopping zmconfigd...Done.
            Stopping stats...Done.
            Stopping mta...Done.
            Stopping spell...Done.
            Stopping snmp...Done.
            Stopping cbpolicyd...Done.
            Stopping archiving...Done.
            Stopping antivirus...Done.
            Stopping antispam...Done.
            Stopping imapproxy...Done.
            Stopping memcached...Done.
            Stopping mailbox...Done.
            Stopping logger...Done.
            Stopping ldap...Done.
            Starting ldap...Done.
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
            Starting zmconfigd...Done.
            Starting logger...Failed.
    Starting logswatch...ERROR: service.FAILURE (system failure: unable to lookup server by name: message: [LDAP: error code 49 - Invalid Credentials]) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
    zimbra logger service is not enabled!  failed.
            Starting mailbox...Done.
            Starting memcached...Done.
            Starting imapproxy...Done.
            Starting antispam...Done.
            Starting antivirus...Done.
            Starting snmp...Done.
            Starting spell...Done.
            Starting mta...Done.
            Starting stats...Done.

  2. #2
    Join Date
    May 2011
    Rep Power


    you changed hostname. so you will need to tell other server the new hostname or IP.

  3. #3
    Join Date
    Jan 2012
    Rep Power


    Quote Originally Posted by vavai View Post
    Please paste the relevant log on /opt/zimbra/log/mailbox.log. It seems that your LDAP has an incorrect settings.

    Invalid credentials means something wrong with your LDAP user name & password. Did you modify LDAP settings in addition Zimbra hostname?
    Perhaps I should reveal that there is more going on here than just a changed domain. This is a second zimbra server instance (server B) that is freshly installed and being restored with snapshot backups from another (server A). Both are single server installs of the Open Source edition.

    To be most clear... My goal is to restore Server A onto a new install on Server B with these constraints:

    • Backups from Server A must be small
    • Hostname of Server B must be different
    • LDAP password of Server B must be different

    When the new instance (server B) is being installed, it is configured with a new hostname, and new LDAP password (I can't set the same password for both for security reasons). Afterwards, I restore the snapshot backup from server A on top of this, then run zmsetservername to ensure the old config files are changed back.

    So to answer the question, yes... the LDAP password for the second instance ends up being different perhaps than what is stored in the post-restored server state.

    Here's the mailbox.log: Zimbra mailbox.log -
    Last edited by jcuzella; 01-06-2012 at 09:45 AM. Reason: Added explanation of restore constraints

  4. #4
    Join Date
    Jan 2012
    Rep Power


    Hmm... after considering the wiki, it looks like the way I've been trying to backup & restore is not the right way.

    I'll try some of the other open source edition backup scripts and start a new thread in case I have problems ;-)

Similar Threads

  1. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  2. Replies: 20
    Last Post: 03-18-2008, 05:37 AM
  3. Changing Domain!
    By zibra in forum Administrators
    Replies: 1
    Last Post: 06-01-2007, 05:15 AM
  4. MTA is Dying after yum update
    By tonyawbrey in forum Administrators
    Replies: 27
    Last Post: 04-02-2006, 06:11 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