Ralph May's picture

 Every time i run "/usr/local/bin/zimbra-conf myhost.com mypassword" I get this error

 

 

Host mail.example.com
        Stopping stats...Done
        Stopping mta...Done
        Stopping spell...Done
        Stopping snmp...Done
        Stopping archiving...Done
        Stopping antivirus...Done
        Stopping antispam...Done
        Stopping imapproxy...Done
        Stopping mailbox...Done
        Stopping logger...Done
        Stopping ldap...Done
Failed to start slapd.  Attempting debug start to determine error.
daemon: getaddrinfo() failed: Name or service not known
 
Have Checked all the forms have not yet found on post with this error or any idea on how to fix it. If any one knows what is up could really use the help. Thanks All
Forum: 
Ralph May's picture

I give credit to the original poster over at vps.net. The answer is out there you just got to SEARCH HARD and learn to read.

METHOD 1

Create the Zimbra VPS and then login to it via SSH, once logged in issue the following commands:



Code:
	su - zimbra
zmlocalconfig -e ldap_url=ldap://localhost:389
zmlocalconfig -e ldap_master_url=ldap://localhost:389
zmlocalconfig -e ldap_port=389
zmlocalconfig -e ldap_host=localhost
/usr/local/bin/zimbra-conf DOMAIN ADMIN_PASS

Replace DOMAIN with the domain you want it to setup so that it sets up mail.domain.com and replace ADMIN_PASS with a proper password.

The last command may show some errors but it doesn't seem to affect anything so once its done restart the VPS and once restarted browse tohttps://VPS_IP:7071 and login with admin@domain.com and the admin password you entered.

Method 2

Create the Zimbra VPS and then login to it via SSH, once logged in issue the following commands:



Code:
	su - zimbra
zmlocalconfig -e ldap_url=ldap://localhost:389
zmlocalconfig -e ldap_master_url=ldap://localhost:389
zmlocalconfig -e ldap_port=389
zmlocalconfig -e ldap_host=localhost

zmcontrol stop
/opt/zimbra/libexec/zmsetservername NEW_HOSTNAME
zmprov createDomain domain.com
zmprov ca admin@domain.com test123 zimbraIsAdminAccount TRUE

Replace DOMAIN with the domain you want it to setup so that it sets up mail.domain.com and replace test123 with a proper password.

The last command may show some errors but it doesn't seem to affect anything so once its done restart the VPS and once restarted browse tohttps://VPS_IP:7071 and login with admin@domain.com and the admin password you entered.

Hope that helps!

Jeremy Davis's picture

Sorry no one here could help you out, but good on you for finding the answer. And better still, coming back and sharing with the TKL community. I'm sure this will help someone in the future.

Add new comment