I'm a moderate linux user, and have been trying to get my mail away from google and self-hosted.,
while also retaining the ability to share documents, like Google docs, as well as share files
Hopefully I stumbled in the right direction.
Is there a way to setup a temporary domain, so I can get familiar on how everything works, and then rollout to primary domain (addon?) after successful install?
Temporary Domain
- L. Mark Stone
- Ambassador
- Posts: 2796
- Joined: Wed Oct 09, 2013 11:35 am
- Location: Portland, Maine, US
- ZCS/ZD Version: 10.0.6 Network Edition
- Contact:
Re: Temporary Domain
Yes, this is super-easy to do...canerican wrote:I'm a moderate linux user, and have been trying to get my mail away from google and self-hosted.,
while also retaining the ability to share documents, like Google docs, as well as share files
Hopefully I stumbled in the right direction.
Is there a way to setup a temporary domain, so I can get familiar on how everything works, and then rollout to primary domain (addon?) after successful install?
Create your test domain, say, mydomain-temp.com, and configure private DNS to be authoritative for it.
Once you are done testing (and assuming DNS for mydomain.com is already in place), simply run as the zimbra user:
Code: Select all
zmprov rd mydomain-temp.com mydomain.com
Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
Re: Temporary Domain
Thanks Mark
I tried setting the domain up:
Externally
$ nslookup mail.adver--ait.net
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: mail.adver--ait.net
Address: 107.--.6.16
on the box:
/etc/hosts
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# 127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
#107.172.6.16 AliceblueColorless-VM
#::1 localhost ip6-localhost ip6-loopback
107.--.6.16 mail.adver--ait.net
I tried setting the domain up:
Externally
$ nslookup mail.adver--ait.net
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: mail.adver--ait.net
Address: 107.--.6.16
on the box:
/etc/hosts
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# 127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
#107.172.6.16 AliceblueColorless-VM
#::1 localhost ip6-localhost ip6-loopback
107.--.6.16 mail.adver--ait.net
Code: Select all
Do you wish to upgrade? [Y] Y
Scanning for any new or additional packages available for installation
Existing packages will be upgraded
Upgrading zimbra-core
Upgrading zimbra-ldap
Upgrading zimbra-logger
Upgrading zimbra-mta
Upgrading zimbra-dnscache
Upgrading zimbra-snmp
Upgrading zimbra-store
Upgrading zimbra-apache
Upgrading zimbra-spell
Upgrading zimbra-memcached
Upgrading zimbra-proxy
Upgrading zimbra-chat
Upgrading zimbra-drive
Upgrading zimbra-imapd
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.
Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy
zimbra-chat
zimbra-drive
zimbra-imapd
The system will be modified. Continue? [N] y
Beginning Installation - see /tmp/install.log.8qprZsxS for details...
zimbra-core-components will be downloaded and installed.
zimbra-timezone-data will be installed.
zimbra-common-mbox-db will be installed.
zimbra-common-mbox-docs will be installed.
zimbra-common-mbox-conf will be installed.
zimbra-common-mbox-conf-rights will be installed.
zimbra-common-mbox-conf-attrs will be installed.
zimbra-common-mbox-conf-msgs will be installed.
zimbra-common-mbox-native-lib will be installed.
zimbra-core will be installed.
zimbra-ldap-components will be downloaded and installed.
zimbra-ldap will be installed.
zimbra-logger will be installed.
zimbra-mta-components will be downloaded and installed.
zimbra-mta will be installed.
zimbra-dnscache-components will be downloaded and installed.
zimbra-dnscache will be installed.
zimbra-snmp-components will be downloaded and installed.
zimbra-snmp will be installed.
zimbra-store-components will be downloaded and installed.
zimbra-jetty-distribution will be downloaded and installed.
zimbra-mbox-war will be installed.
zimbra-mbox-conf will be installed.
zimbra-mbox-service will be installed.
zimbra-store will be installed.
zimbra-apache-components will be downloaded and installed.
zimbra-apache will be installed.
zimbra-spell-components will be downloaded and installed.
zimbra-spell will be installed.
zimbra-memcached will be downloaded and installed.
zimbra-proxy-components will be downloaded and installed.
zimbra-proxy will be installed.
zimbra-chat will be downloaded and installed (later).
zimbra-drive will be downloaded and installed (later).
zimbra-imapd will be installed.
Downloading packages (11):
zimbra-core-components
zimbra-ldap-components
zimbra-mta-components
zimbra-dnscache-components
zimbra-snmp-components
zimbra-store-components
zimbra-jetty-distribution
zimbra-apache-components
zimbra-spell-components
zimbra-memcached
zimbra-proxy-components
...done
Saving existing configuration file to /opt/zimbra/.saveconfig
Shutting down zimbra mail
Backing up the ldap database...failed.
Removing existing packages
zimbra-chat...done
zimbra-drive...done
zimbra-imapd...done
zimbra-ldap...done
zimbra-logger...done
zimbra-mta...done
zimbra-dnscache...done
zimbra-snmp...done
zimbra-store...done
zimbra-spell...done
zimbra-memcached...done
zimbra-core...done
Removing deployed webapp directories
Installing repo packages (11):
zimbra-core-components
zimbra-ldap-components
zimbra-mta-components
zimbra-dnscache-components
zimbra-snmp-components
zimbra-store-components
zimbra-jetty-distribution
zimbra-apache-components
zimbra-spell-components
zimbra-memcached
zimbra-proxy-components
...done
Installing local packages (22):
zimbra-timezone-data
zimbra-common-mbox-db
zimbra-common-mbox-docs
zimbra-common-mbox-conf
zimbra-common-mbox-conf-rights
zimbra-common-mbox-conf-attrs
zimbra-common-mbox-conf-msgs
zimbra-common-mbox-native-lib
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-dnscache
zimbra-snmp
zimbra-mbox-war
zimbra-mbox-conf
zimbra-mbox-service
zimbra-store
zimbra-apache
zimbra-spell
zimbra-proxy
zimbra-imapd
Installing extra packages (2):
zimbra-chat
zimbra-drive
...done
Running Post Installation Configuration:
Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=localhost
LDAPHOST=localhost
LDAPPORT=389
SNMPTRAPHOST=
SMTPSOURCE=
SMTPDEST=
SNMPNOTIFY=0
SMTPNOTIFY=0
LDAPROOTPW=*
LDAPZIMBRAPW=*
LDAPPOSTPW=*
LDAPREPPW=*
LDAPAMAVISPW=*
LDAPNGINXPW=*
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.20180327-192119.log
[] INFO: master is down, falling back to replica...
[] FATAL: failed to initialize LDAP client
com.zimbra.cs.ldap.LdapException: LDAP error: : An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
ExceptionId:main:1522192883618:4823f9e8e7dcd9c1
Code:ldap.LDAP_ERROR
at com.zimbra.cs.ldap.LdapException.LDAP_ERROR(LdapException.java:90)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:74)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:40)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:117)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnectionPool(LdapConnectionPool.java:63)
at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.init(UBIDLdapContext.java:111)
at com.zimbra.cs.ldap.unboundid.UBIDLdapClient.init(UBIDLdapClient.java:39)
at com.zimbra.cs.ldap.LdapClient.getInstanceIfLDAPavailable(LdapClient.java:62)
at com.zimbra.cs.ldap.LdapClient.getInstance(LdapClient.java:69)
at com.zimbra.cs.ldap.LdapClient.initialize(LdapClient.java:94)
at com.zimbra.cs.account.ldap.LdapProv.<init>(LdapProv.java:47)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:279)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:276)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:341)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:297)
at com.zimbra.cs.account.ProvUtil.initProvisioning(ProvUtil.java:1004)
at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java:3955)
Caused by: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)')
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:754)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:686)
at com.unboundid.ldap.sdk.LDAPConnection.<init>(LDAPConnection.java:518)
at com.unboundid.ldap.sdk.SingleServerSet.getConnection(SingleServerSet.java:229)
at com.unboundid.ldap.sdk.ServerSet.getConnection(ServerSet.java:98)
at com.unboundid.ldap.sdk.FailoverServerSet.getConnection(FailoverServerSet.java:545)
at com.unboundid.ldap.sdk.LDAPConnectionPool.createConnection(LDAPConnectionPool.java:938)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:876)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:779)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:726)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:114)
... 18 more
Caused by: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
at com.unboundid.ldap.sdk.LDAPConnectionInternals.<init>(LDAPConnectionInternals.java:137)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:744)
... 28 more
[] INFO: master is down, falling back to replica...
[] FATAL: failed to initialize LDAP client
com.zimbra.cs.ldap.LdapException: LDAP error: : An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
ExceptionId:main:1522192885340:b8e832dd31f3dd68
Code:ldap.LDAP_ERROR
at com.zimbra.cs.ldap.LdapException.LDAP_ERROR(LdapException.java:90)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:74)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:40)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:117)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnectionPool(LdapConnectionPool.java:63)
at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.init(UBIDLdapContext.java:111)
at com.zimbra.cs.ldap.unboundid.UBIDLdapClient.init(UBIDLdapClient.java:39)
at com.zimbra.cs.ldap.LdapClient.getInstanceIfLDAPavailable(LdapClient.java:62)
at com.zimbra.cs.ldap.LdapClient.getInstance(LdapClient.java:69)
at com.zimbra.cs.ldap.LdapClient.initialize(LdapClient.java:94)
at com.zimbra.cs.account.ldap.LdapProv.<init>(LdapProv.java:47)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:279)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:276)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:341)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:297)
at com.zimbra.cs.account.ProvUtil.initProvisioning(ProvUtil.java:1004)
at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java:3955)
Caused by: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)')
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:754)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:686)
at com.unboundid.ldap.sdk.LDAPConnection.<init>(LDAPConnection.java:518)
at com.unboundid.ldap.sdk.SingleServerSet.getConnection(SingleServerSet.java:229)
at com.unboundid.ldap.sdk.ServerSet.getConnection(ServerSet.java:98)
at com.unboundid.ldap.sdk.FailoverServerSet.getConnection(FailoverServerSet.java:545)
at com.unboundid.ldap.sdk.LDAPConnectionPool.createConnection(LDAPConnectionPool.java:938)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:876)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:779)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:726)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:114)
... 18 more
Caused by: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
at com.unboundid.ldap.sdk.LDAPConnectionInternals.<init>(LDAPConnectionInternals.java:137)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:744)
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Port conflict detected: 80 (zimbra-store)
Port conflicts detected! - Press Enter/Return key to continue
[] INFO: master is down, falling back to replica...
[] FATAL: failed to initialize LDAP client
com.zimbra.cs.ldap.LdapException: LDAP error: : An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
ExceptionId:main:1522192947621:501bb01915bc1771
Code:ldap.LDAP_ERROR
at com.zimbra.cs.ldap.LdapException.LDAP_ERROR(LdapException.java:90)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:74)
at com.zimbra.cs.ldap.unboundid.UBIDLdapException.mapToLdapException(UBIDLdapException.java:40)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:117)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnectionPool(LdapConnectionPool.java:63)
at com.zimbra.cs.ldap.unboundid.UBIDLdapContext.init(UBIDLdapContext.java:111)
at com.zimbra.cs.ldap.unboundid.UBIDLdapClient.init(UBIDLdapClient.java:39)
at com.zimbra.cs.ldap.LdapClient.getInstanceIfLDAPavailable(LdapClient.java:62)
at com.zimbra.cs.ldap.LdapClient.getInstance(LdapClient.java:69)
at com.zimbra.cs.ldap.LdapClient.initialize(LdapClient.java:94)
at com.zimbra.cs.account.ldap.LdapProv.<init>(LdapProv.java:47)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:279)
at com.zimbra.cs.account.ldap.LdapProvisioning.<init>(LdapProvisioning.java:276)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:341)
at com.zimbra.cs.account.Provisioning.getInstance(Provisioning.java:297)
at com.zimbra.cs.account.ProvUtil.initProvisioning(ProvUtil.java:1004)
at com.zimbra.cs.account.ProvUtil.main(ProvUtil.java:3955)
Caused by: LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server 127.0.0.1:389: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)')
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:754)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:686)
at com.unboundid.ldap.sdk.LDAPConnection.<init>(LDAPConnection.java:518)
at com.unboundid.ldap.sdk.SingleServerSet.getConnection(SingleServerSet.java:229)
at com.unboundid.ldap.sdk.ServerSet.getConnection(ServerSet.java:98)
at com.unboundid.ldap.sdk.FailoverServerSet.getConnection(FailoverServerSet.java:545)
at com.unboundid.ldap.sdk.LDAPConnectionPool.createConnection(LDAPConnectionPool.java:938)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:876)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:779)
at com.unboundid.ldap.sdk.LDAPConnectionPool.<init>(LDAPConnectionPool.java:726)
at com.zimbra.cs.ldap.unboundid.LdapConnectionPool.createConnPool(LdapConnectionPool.java:114)
... 18 more
Caused by: java.io.IOException: An error occurred while attempting to establish a connection to server 127.0.0.1:389: java.net.ConnectException: Connection refused (Connection refused)
at com.unboundid.ldap.sdk.LDAPConnectionInternals.<init>(LDAPConnectionInternals.java:137)
at com.unboundid.ldap.sdk.LDAPConnection.connect(LDAPConnection.java:744)
... 28 more
Saving config in /opt/zimbra/config.10217...done.
Operations logged to /tmp/zmsetup.20180327-192119.log
Setting local config values...done.
Initializing core config...Setting up CA...failed.
==========================LOG FILE====================
Tue Mar 27 19:22:37 2018 Setting local config zimbra_ldap_userdn to uid=zimbra,cn=admins,cn=zimbra
Tue Mar 27 19:22:37 2018 *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_ldap_userdn='uid=zimbra,cn=admins,cn=zimbra' 2> /dev/null
Tue Mar 27 19:22:37 2018 done.
Tue Mar 27 19:22:37 2018 checking isEnabled zimbra-core
Tue Mar 27 19:22:37 2018 zimbra-core is enabled
Tue Mar 27 19:22:37 2018 Initializing core config...
Tue Mar 27 19:22:37 2018 Setting up CA...
Tue Mar 27 19:22:37 2018 *** Running as zimbra user: /opt/zimbra/bin/zmcertmgr createca
** Creating /opt/zimbra/ssl/zimbra/ca/zmssl.cnf
** Retrieving CA cert from LDAP... failed
** Retrieving CA private key from LDAP... failed
** Retrieving Commercial CA cert from LDAP... failed
ERROR: createca: empty key '/opt/zimbra/ssl/zimbra/ca/ca.key'