Zimbra 8.7 Silent Install Answer Files


  • Service Provider

    Take from https://github.com/jorgedlcruz/zimbra-automated-installation

    This requires two files as Zimbra is not designed for unattended installation, sadly. So this is far more cumbersome than it should be.

    /tmp/installZimbra

    AVDOMAIN="$1"
    AVUSER="admin@$1"
    CREATEADMIN="admin@$1"
    CREATEADMINPASS="$3"
    CREATEDOMAIN="$1"
    DOCREATEADMIN="yes"
    DOCREATEDOMAIN="yes"
    DOTRAINSA="yes"
    EXPANDMENU="no"
    HOSTNAME="$HOSTNAME.$1"
    HTTPPORT="8080"
    HTTPPROXY="TRUE"
    HTTPPROXYPORT="80"
    HTTPSPORT="8443"
    HTTPSPROXYPORT="443"
    IMAPPORT="7143"
    IMAPPROXYPORT="143"
    IMAPSSLPORT="7993"
    IMAPSSLPROXYPORT="993"
    INSTALL_WEBAPPS="service zimlet zimbra zimbraAdmin"
    JAVAHOME="/opt/zimbra/common/lib/jvm/java"
    LDAPAMAVISPASS="$3"
    LDAPPOSTPASS="$3"
    LDAPROOTPASS="$3"
    LDAPADMINPASS="$3"
    LDAPREPPASS="$3"
    LDAPBESSEARCHSET="set"
    LDAPDEFAULTSLOADED="1"
    LDAPHOST="$HOSTNAME.$1"
    LDAPPORT="389"
    LDAPREPLICATIONTYPE="master"
    LDAPSERVERID="2"
    MAILBOXDMEMORY="512"
    MAILPROXY="TRUE"
    MODE="https"
    MYSQLMEMORYPERCENT="30"
    POPPORT="7110"
    POPPROXYPORT="110"
    POPSSLPORT="7995"
    POPSSLPROXYPORT="995"
    PROXYMODE="https"
    REMOVE="no"
    RUNARCHIVING="no"
    RUNAV="yes"
    RUNCBPOLICYD="no"
    RUNDKIM="yes"
    RUNSA="yes"
    RUNVMHA="no"
    SERVICEWEBAPP="yes"
    SMTPDEST="admin@$1"
    SMTPHOST="$HOSTNAME.$1"
    SMTPNOTIFY="yes"
    SMTPSOURCE="admin@$1"
    SNMPNOTIFY="yes"
    SNMPTRAPHOST="$HOSTNAME.$1"
    SPELLURL="http://$HOSTNAME.$1:7780/aspell.php"
    STARTSERVERS="yes"
    SYSTEMMEMORY="3.8"
    TRAINSAHAM="ham.$RANDOMHAM@$1"
    TRAINSASPAM="spam.$RANDOMSPAM@$1"
    UIWEBAPPS="yes"
    UPGRADE="yes"
    USEKBSHORTCUTS="TRUE"
    USESPELL="yes"
    VERSIONUPDATECHECKS="TRUE"
    VIRUSQUARANTINE="virus-quarantine.$RANDOMVIRUS@$1"
    ZIMBRA_REQ_SECURITY="yes"
    ldap_bes_searcher_password="$3"
    ldap_dit_base_dn_config="cn=zimbra"
    ldap_nginx_password="$3"
    ldap_url="ldap://$HOSTNAME.$1:389"
    mailboxd_directory="/opt/zimbra/mailboxd"
    mailboxd_keystore="/opt/zimbra/mailboxd/etc/keystore"
    mailboxd_keystore_password="$3"
    mailboxd_server="jetty"
    mailboxd_truststore="/opt/zimbra/common/lib/jvm/java/jre/lib/security/cacerts"
    mailboxd_truststore_password="changeit"
    postfix_mail_owner="postfix"
    postfix_setgid_group="postdrop"
    ssl_default_digest="sha256"
    zimbraDNSMasterIP=""
    zimbraDNSTCPUpstream="no"
    zimbraDNSUseTCP="yes"
    zimbraDNSUseUDP="yes"
    zimbraDefaultDomainName="$1"
    zimbraFeatureBriefcasesEnabled="Enabled"
    zimbraFeatureTasksEnabled="Enabled"
    zimbraIPMode="ipv4"
    zimbraMailProxy="FALSE"
    zimbraMtaMyNetworks="127.0.0.0/8 $2/24 [::1]/128 [fe80::]/64"
    zimbraPrefTimeZoneId="America/Los_Angeles"
    zimbraReverseProxyLookupTarget="TRUE"
    zimbraVersionCheckInterval="1d"
    zimbraVersionCheckNotificationEmail="admin@$1"
    zimbraVersionCheckNotificationEmailFrom="admin@$1"
    zimbraVersionCheckSendNotifications="TRUE"
    zimbraWebProxy="FALSE"
    zimbra_ldap_userdn="uid=zimbra,cn=admins,cn=zimbra"
    zimbra_require_interprocess_security="1"
    zimbra_server_hostname="$HOSTNAME.$1"
    INSTALL_PACKAGES="zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxy"
    

    In the above script, you will need to replace each occurrence of $1 with your server's FQDN. And each $3 with your Zimbra admin's password. The admin account on creation will be [email protected]

    And then we need a keystroke file: /tmp/installZimbra-keystrokes

    y
    y
    y
    y
    y
    n
    y
    y
    y
    y
    y
    y
    y
    

    Now that we have our files, you can install Zimbra. Obviously you must download and extract first, and cd into the extracted directory. Once you have done so, this is the installation command.

    ./install.sh -s < /tmp/zcs/installZimbra-keystrokes
    

    And then to apply the configuration when that is complete:

    /opt/zimbra/libexec/zmsetup.pl -c /tmp/zcs/installZimbraScript
    

    And finally you can start up your server:

    su - zimbra -c 'zmcontrol restart'


Looks like your connection to MangoLassi was lost, please wait while we try to reconnect.