<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Installation_v8_%28Zimbra%29</id>
	<title>Installation v8 (Zimbra) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Installation_v8_%28Zimbra%29"/>
	<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Installation_v8_(Zimbra)&amp;action=history"/>
	<updated>2026-05-29T21:10:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://vwiki.co.uk/index.php?title=Installation_v8_(Zimbra)&amp;diff=2745&amp;oldid=prev</id>
		<title>Sstrutt: Initial creation from v6/v7 page (still WIP)</title>
		<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Installation_v8_(Zimbra)&amp;diff=2745&amp;oldid=prev"/>
		<updated>2022-06-05T11:53:28Z</updated>

		<summary type="html">&lt;p&gt;Initial creation from v6/v7 page (still WIP)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Zimbra FOSS Installation Guide&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Note that if you are installing on a server with a private address that is to be [[Acronyms#N|NAT]]&amp;#039;ed to a publicly accessible address you&amp;#039;ll need ensure that you&amp;#039;ve got [[Split_DNS_(Zimbra)|Split-DNS]] set-up, and I&amp;#039;d recommend a quick read through the [[Split_DNS_(Zimbra)#DNS Records|DNS requirements]] regardless.&lt;br /&gt;
 &lt;br /&gt;
== Pre-Requisites ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Working Ubuntu LTS Server installation&amp;#039;&amp;#039;&amp;#039; - see [[Installation_(Ubuntu)|Ubuntu Installation]] for further install info together with https://www.zimbra.com/downloads/zimbra-collaboration-open-source/ (will redirect you to a trail registration page that you need to complete 1st, have never been contacted by them)&lt;br /&gt;
** Base install with OpenSSH Server&lt;br /&gt;
** DNS Server - Only required if you need to use Split DNS and need to provide resolution of the internal IP address of the server (EG you don&amp;#039;t have an existing local DNS Server under your control that you can add your Zimbra server in to)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Internet/public IP address&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** Can be shared with other services so long as there&amp;#039;s no TCP port conflicts and you have a router that can perform the appropriate NAT&amp;#039;ing &lt;br /&gt;
*** See http://wiki.zimbra.com/wiki/Ports#External_Access for required TCP ports&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;MX (Mail Exchange) DNS record&amp;#039;&amp;#039;&amp;#039; pointing to public IP address&lt;br /&gt;
** Additionally an internal only MX record pointing to the server&amp;#039;s internal/private IP address - only if you need to use SplitDNS&lt;br /&gt;
&lt;br /&gt;
=== Server Specification&amp;lt;ref&amp;gt;Zimbra System Requirements for v8.5 - https://www.zimbra.com/open-source-email-overview/ (will redirect you to a trail registration page, no financial info or commitment required)&amp;lt;/ref&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;vwikitable&amp;quot;&lt;br /&gt;
! Specification !! CPU         !! Memory !! Free Disk !! Comments&lt;br /&gt;
|-&lt;br /&gt;
| Minimum       || 1 x 2.0 GHz || 4 GB   || 10 GB     || Below Zimbra minimum spec, but workable for a small number of accounts (eg &amp;lt;10 active mailboxes)&lt;br /&gt;
|-&lt;br /&gt;
| Recommended   || 2 x 2.0 GHz || 8 GB   || 10 GB     || Recommended minimum production spec advised by Zimbra&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note: Free Disk does &amp;#039;&amp;#039;not&amp;#039;&amp;#039; include allocation for mail storage&amp;#039;&amp;#039;&amp;#039; So you will need additional free space for users data.&lt;br /&gt;
&lt;br /&gt;
Memory seems to be the main choke point for Zimbra, and will run a bit faster if you can spare a bit more.  The less RAM the server has, less data can be cached into memory, and so the more disk IO that is required, and consequently the higher demand there will be on getting good IO throughput from the servers disks.&amp;lt;ref&amp;gt;Zimbra Performance Tuning - http://wiki.zimbra.com/wiki/Performance_Tuning_Guidelines_for_Large_Deployments&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
# Locate the appropriate download URL at https://www.zimbra.com/try/zimbra-collaboration-open-source/, aand copy the link to the download&lt;br /&gt;
# Download the target of the link to your server&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; wget http://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_4179.UBUNTU20_64.20211118033954.tgz &amp;lt;/code&amp;gt;&lt;br /&gt;
# Uncompress the package&lt;br /&gt;
#* &amp;lt;code&amp;gt; tar xzf zcs-8.8.15_GA_4179.UBUNTU20_64.20211118033954.tgz &amp;lt;/code&amp;gt;&lt;br /&gt;
# Change directory into the folder and start the install (needs to be run as root, using sudo works)&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; cd zcs-8.8.15_GA_4179.UBUNTU20_64.20211118033954 &amp;lt;/code&amp;gt;&lt;br /&gt;
#* &amp;lt;code&amp;gt; ./install.sh &amp;lt;/code&amp;gt;&lt;br /&gt;
#* Accept the EULA, update your &amp;lt;code&amp;gt;/etc/hosts&amp;lt;/code&amp;gt; file if required and restart&lt;br /&gt;
# When prompted accept using Zimbra&amp;#039;s package repository&lt;br /&gt;
# Accept the default packages except &amp;lt;code&amp;gt; zimbra-dnscache &amp;lt;/code&amp;gt; (unless you know of any others you specifically want to exclude as well)&lt;br /&gt;
# Answer &amp;lt;code&amp;gt;Y&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;The system will be modified.  Continue?&amp;lt;/code&amp;gt; query&lt;br /&gt;
#* The install will proceed, note that some steps take longer and the install script might appear to hang occasionally&lt;br /&gt;
# Once the packages are installed the installer may complain about your domain not having a DNS record - &amp;lt;code&amp;gt;DNS ERROR resolving MX for ...&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Change the domain to your publicly registered domain (without server hostname, so &amp;lt;code&amp;gt;sandfordit.com&amp;lt;/code&amp;gt; rather than &amp;lt;code&amp;gt;mail.sandfordit.com&amp;lt;/code&amp;gt;&lt;br /&gt;
#* If this fails to resolve the error, there is a problem with your network/DNS setup&lt;br /&gt;
#* If this is a new server that you don&amp;#039;t want to receive inbound email immediately create a low priority MX record temporarily&lt;br /&gt;
# At the end of the base install, address the unconfigured item (ie an admin password)&lt;br /&gt;
# Write the config to disk and allow the system to be configured&lt;br /&gt;
&lt;br /&gt;
Once the install is completed, login to administer the exchange server using a URL similar to https://your-mail-svr:7071&lt;br /&gt;
&lt;br /&gt;
== Post Install Config ==&lt;br /&gt;
=== Enforce HTTPS for Clients ===&lt;br /&gt;
To enforce user connections using Zimbra Desktop or the web client to [[Acronyms#H|HTTPS]] use the following command as the zimbra user (EG &amp;lt;code&amp;gt; su -zimbra &amp;lt;/code&amp;gt;)&lt;br /&gt;
 zmtlsctl https&lt;br /&gt;
&lt;br /&gt;
Requires a restart to take effect...&lt;br /&gt;
 zmcontrol restart&lt;br /&gt;
&lt;br /&gt;
For more info see http://wiki.zimbra.com/wiki/CLI_zmtlsctl_to_set_Web_Server_Mode&lt;br /&gt;
&lt;br /&gt;
=== High CPU Workaround ===&lt;br /&gt;
Zimbra seems to have some reoccurring issues with regular high CPU spikes, some as often as every minute, caused by background maintenance tasks.  With the increasing prevalence of virtualisation, this appears to be being noticed more frequently by users, and can a reoccurring thread in the forums.  The following can aid in reducing this, which look to limit and reduce the logging retention and failed process checking that occurs.  The config changes are relatively aggressive, so you may wish to alter less from the default.&lt;br /&gt;
{| class=&amp;quot;vwikitable&amp;quot;&lt;br /&gt;
! Command							!! Comments								!! Default&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; zmlocalconfig -e zmmtaconfig_interval=600 &amp;lt;/code&amp;gt;	|| Increase service failure watchdog interval to 600 secs (10 mins)	|| &amp;lt;code&amp;gt;60&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; zmprov mcf zimbraLogRawLifetime 7d &amp;lt;/code&amp;gt;		|| Reduce raw log retention to 7 days					|| &amp;lt;code&amp;gt;31d&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; zmprov mcf zimbraLogSummaryLifetime 30d &amp;lt;/code&amp;gt;	|| Reduce summary log retention to 30 days				|| &amp;lt;code&amp;gt;730d&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; zmprov ms &amp;lt;hostname&amp;gt; -zimbraServiceEnabled logger &amp;lt;/code&amp;gt; || Toggles/disables the logger service - I don&amp;#039;t do this myself, seems too drastic &amp;lt;br&amp;gt;&lt;br /&gt;
Replace &amp;lt;code&amp;gt;&amp;lt;hostname&amp;gt;&amp;lt;/code&amp;gt; with [[Acronyms#F|FQDN]] of your Zimbra server &amp;lt;br&amp;gt;&lt;br /&gt;
To check services enabled  &amp;lt;code&amp;gt; zmprov gs &amp;lt;hostname&amp;gt; &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; grep zimbraServiceEnabled &amp;lt;/code&amp;gt; &lt;br /&gt;
| Enabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Additionally its common to tune down the frequency of scheduled tasks (edit config file with &amp;lt;code&amp;gt; crontab -e &amp;lt;/code&amp;gt;, some lines in table below truncated with &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt;)&lt;br /&gt;
{| class=&amp;quot;vwikitable&amp;quot;&lt;br /&gt;
! Original							!! Change to							!! Comments&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;code&amp;gt; */2 * * * * /opt/zimbra/libexec/zmstatuslog &amp;lt;/code&amp;gt;	|| &amp;lt;code&amp;gt; */60 * * * * /opt/zimbra/libexec/zmstatuslog &amp;lt;/code&amp;gt;	|| Reduce status logging to hourly (from every 2 mins)&lt;br /&gt;
Will cause a bigger CPU spike on the hour.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt; 00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess ...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt; */15 * * * * /opt/zimbra/libexec/zmlogprocess ...&amp;lt;/code&amp;gt; || Reduce log processing to every 15 mins&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Reduce AV Memory Usage ===&lt;br /&gt;
Anti-virus spawns a number of threads so that it can concurrently process incoming and outgoing email.  If your server isn&amp;#039;t expected to under much load and/or you&amp;#039;re not too worried about mail queueing waiting to be scanned you can reduce the number of instances of amavisd that get spawned.&lt;br /&gt;
&lt;br /&gt;
The default is 10 processes.  Reducing the number of process may reduce the amount of RAM used by AV scanning may allow other components of the system to use more RAM, effectively improving the responsiveness of the server, at the expense of reducing the speed of email delivery.  However,you may find that each process is now using more RAM so overall usage hasn&amp;#039;t decreased.&lt;br /&gt;
&lt;br /&gt;
Log in to your server and as the zimbra user edit &amp;lt;code&amp;gt;/opt/zimbra/conf/amavisd.conf.in&amp;lt;/code&amp;gt; and change the &amp;lt;code&amp;gt;$max_servers&amp;lt;/code&amp;gt; config line.  No less than 2 is recommended, eg&lt;br /&gt;
* &amp;lt;code&amp;gt;$max_servers = 5; &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Zimbra]]&lt;/div&gt;</summary>
		<author><name>Sstrutt</name></author>
	</entry>
</feed>