| 1 |
<!DOCTYPE html> |
| 2 |
<html class="writer-html5" lang="en" data-content_root="../../"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 5 |
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 |
<title>Upgrading to 3.12 — Cyrus IMAP 3.12.3 documentation</title> |
| 8 |
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" /> |
| 9 |
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=86f27845" /> |
| 10 |
<link rel="stylesheet" type="text/css" href="../../_static/graphviz.css?v=eafc0fe6" /> |
| 11 |
<link rel="stylesheet" href="../../_static/cyrus.css" type="text/css" /> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script src="../../_static/jquery.js?v=8dae8fb0"></script> |
| 16 |
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
| 17 |
<script src="../../_static/documentation_options.js?v=2c828074"></script> |
| 18 |
<script src="../../_static/doctools.js?v=888ff710"></script> |
| 19 |
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> |
| 20 |
<script src="../../_static/js/theme.js"></script> |
| 21 |
<link rel="index" title="Index" href="../../genindex.html" /> |
| 22 |
<link rel="search" title="Search" href="../../search.html" /> |
| 23 |
<link rel="next" title="Configuration Guide" href="../concepts/deployment.html" /> |
| 24 |
<link rel="prev" title="Virus Scanner" href="installation/virus.html" /> |
| 25 |
</head> |
| 26 |
|
| 27 |
<body class="wy-body-for-nav"> |
| 28 |
<div class="wy-grid-for-nav"> |
| 29 |
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| 30 |
<div class="wy-side-scroll"> |
| 31 |
<div class="wy-side-nav-search" > |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
<a href="../../index.html" class="icon icon-home"> |
| 36 |
Cyrus IMAP |
| 37 |
</a> |
| 38 |
<div class="version"> |
| 39 |
3.12.3 |
| 40 |
</div> |
| 41 |
<div role="search"> |
| 42 |
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> |
| 43 |
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> |
| 44 |
<input type="hidden" name="check_keywords" value="yes" /> |
| 45 |
<input type="hidden" name="area" value="default" /> |
| 46 |
</form> |
| 47 |
</div> |
| 48 |
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> |
| 49 |
<p class="caption" role="heading"><span class="caption-text">Cyrus IMAP</span></p> |
| 50 |
<ul class="current"> |
| 51 |
<li class="toctree-l1"><a class="reference internal" href="../../download.html">Download</a></li> |
| 52 |
<li class="toctree-l1"><a class="reference internal" href="../../quickstart.html">Quickstart Guide</a></li> |
| 53 |
<li class="toctree-l1"><a class="reference internal" href="../../overview.html">Overview</a></li> |
| 54 |
<li class="toctree-l1 current"><a class="reference internal" href="../../setup.html">Setup</a><ul class="current"> |
| 55 |
<li class="toctree-l2"><a class="reference internal" href="../developer/compiling.html">Compiling</a></li> |
| 56 |
<li class="toctree-l2"><a class="reference internal" href="../installing.html">Installing Cyrus</a></li> |
| 57 |
<li class="toctree-l2 current"><a class="current reference internal" href="#">Upgrading to 3.12</a><ul> |
| 58 |
<li class="toctree-l3"><a class="reference internal" href="#preparation">1. Preparation</a><ul> |
| 59 |
<li class="toctree-l4"><a class="reference internal" href="#versions-to-upgrade-from">Versions to upgrade from</a></li> |
| 60 |
<li class="toctree-l4"><a class="reference internal" href="#installation-from-tarball">Installation from tarball</a></li> |
| 61 |
<li class="toctree-l4"><a class="reference internal" href="#jmap-caldav-changes">JMAP/CalDAV changes</a></li> |
| 62 |
<li class="toctree-l4"><a class="reference internal" href="#pcre2-support">PCRE2 support</a></li> |
| 63 |
<li class="toctree-l4"><a class="reference internal" href="#how-are-you-planning-on-upgrading">How are you planning on upgrading?</a></li> |
| 64 |
<li class="toctree-l4"><a class="reference internal" href="#do-what-as-who">Do What As Who?</a></li> |
| 65 |
</ul> |
| 66 |
</li> |
| 67 |
<li class="toctree-l3"><a class="reference internal" href="#install-new-3-12-cyrus">2. Install new 3.12 Cyrus</a></li> |
| 68 |
<li class="toctree-l3"><a class="reference internal" href="#shut-down-existing-cyrus">3. Shut down existing Cyrus</a></li> |
| 69 |
<li class="toctree-l3"><a class="reference internal" href="#backup-and-copy-existing-data">4. Backup and Copy existing data</a></li> |
| 70 |
<li class="toctree-l3"><a class="reference internal" href="#copy-config-files-and-update">5. Copy config files and update</a></li> |
| 71 |
<li class="toctree-l3"><a class="reference internal" href="#upgrade-specific-items">6. Upgrade specific items</a></li> |
| 72 |
<li class="toctree-l3"><a class="reference internal" href="#start-new-3-12-cyrus-and-verify">7. Start new 3.12 Cyrus and verify</a></li> |
| 73 |
<li class="toctree-l3"><a class="reference internal" href="#reconstruct-databases-and-cache">8. Reconstruct databases and cache</a></li> |
| 74 |
<li class="toctree-l3"><a class="reference internal" href="#do-you-want-any-new-features">9. Do you want any new features?</a></li> |
| 75 |
<li class="toctree-l3"><a class="reference internal" href="#upgrade-complete">10. Upgrade complete</a></li> |
| 76 |
<li class="toctree-l3"><a class="reference internal" href="#special-note-for-murder-configurations">Special note for Murder configurations</a></li> |
| 77 |
</ul> |
| 78 |
</li> |
| 79 |
<li class="toctree-l2"><a class="reference internal" href="../concepts/deployment.html">Configuration Guide</a></li> |
| 80 |
</ul> |
| 81 |
</li> |
| 82 |
<li class="toctree-l1"><a class="reference internal" href="../../operations.html">Operations</a></li> |
| 83 |
<li class="toctree-l1"><a class="reference internal" href="../../developers.html">Developers</a></li> |
| 84 |
<li class="toctree-l1"><a class="reference internal" href="../../support.html">Support/Community</a></li> |
| 85 |
</ul> |
| 86 |
<p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p> |
| 87 |
<ul> |
| 88 |
<li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li> |
| 89 |
</ul> |
| 90 |
|
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</nav> |
| 94 |
|
| 95 |
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| 96 |
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 97 |
<a href="../../index.html">Cyrus IMAP</a> |
| 98 |
</nav> |
| 99 |
|
| 100 |
<div class="wy-nav-content"> |
| 101 |
<div class="rst-content"> |
| 102 |
<div role="navigation" aria-label="Page navigation"> |
| 103 |
<ul class="wy-breadcrumbs"> |
| 104 |
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 105 |
<li class="breadcrumb-item"><a href="../../setup.html">Setup</a></li> |
| 106 |
<li class="breadcrumb-item active">Upgrading to 3.12</li> |
| 107 |
<li class="wy-breadcrumbs-aside"> |
| 108 |
<a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/download/upgrade.rst" class="fa fa-github"> Edit on GitHub</a> |
| 109 |
</li> |
| 110 |
</ul> |
| 111 |
<hr/> |
| 112 |
</div> |
| 113 |
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 114 |
<div itemprop="articleBody"> |
| 115 |
|
| 116 |
<section id="upgrading-to-3-12"> |
| 117 |
<span id="upgrade"></span><h1>Upgrading to 3.12<a class="headerlink" href="#upgrading-to-3-12" title="Link to this heading"></a></h1> |
| 118 |
<div class="admonition note"> |
| 119 |
<p class="admonition-title">Note</p> |
| 120 |
<p>This guide assumes that you are familiar and comfortable with administration |
| 121 |
of a Cyrus installation, and system administration in general.</p> |
| 122 |
<p>It assumes you are installing from source or tarball. If you want to install |
| 123 |
from package, use the upgrade instructions from the package provider.</p> |
| 124 |
</div> |
| 125 |
<nav class="contents local" id="upgrading-an-overview"> |
| 126 |
<p class="topic-title">Upgrading: an overview</p> |
| 127 |
<ul class="simple"> |
| 128 |
<li><p><a class="reference internal" href="#preparation" id="id1">1. Preparation</a></p> |
| 129 |
<ul> |
| 130 |
<li><p><a class="reference internal" href="#versions-to-upgrade-from" id="id2">Versions to upgrade from</a></p></li> |
| 131 |
<li><p><a class="reference internal" href="#installation-from-tarball" id="id3">Installation from tarball</a></p></li> |
| 132 |
<li><p><a class="reference internal" href="#jmap-caldav-changes" id="id4">JMAP/CalDAV changes</a></p> |
| 133 |
<ul> |
| 134 |
<li><p><a class="reference internal" href="#new-jmap-email-query-filter-conditions" id="id5">New JMAP Email/query filter conditions</a></p></li> |
| 135 |
</ul> |
| 136 |
</li> |
| 137 |
<li><p><a class="reference internal" href="#pcre2-support" id="id6">PCRE2 support</a></p></li> |
| 138 |
<li><p><a class="reference internal" href="#how-are-you-planning-on-upgrading" id="id7">How are you planning on upgrading?</a></p> |
| 139 |
<ul> |
| 140 |
<li><p><a class="reference internal" href="#upgrade-by-replicating" id="id8">Upgrade by replicating</a></p></li> |
| 141 |
<li><p><a class="reference internal" href="#upgrade-in-place" id="id9">Upgrade in place</a></p></li> |
| 142 |
</ul> |
| 143 |
</li> |
| 144 |
<li><p><a class="reference internal" href="#do-what-as-who" id="id10">Do What As Who?</a></p></li> |
| 145 |
</ul> |
| 146 |
</li> |
| 147 |
<li><p><a class="reference internal" href="#install-new-3-12-cyrus" id="id11">2. Install new 3.12 Cyrus</a></p></li> |
| 148 |
<li><p><a class="reference internal" href="#shut-down-existing-cyrus" id="id12">3. Shut down existing Cyrus</a></p></li> |
| 149 |
<li><p><a class="reference internal" href="#backup-and-copy-existing-data" id="id13">4. Backup and Copy existing data</a></p></li> |
| 150 |
<li><p><a class="reference internal" href="#copy-config-files-and-update" id="id14">5. Copy config files and update</a></p></li> |
| 151 |
<li><p><a class="reference internal" href="#upgrade-specific-items" id="id15">6. Upgrade specific items</a></p></li> |
| 152 |
<li><p><a class="reference internal" href="#start-new-3-12-cyrus-and-verify" id="id16">7. Start new 3.12 Cyrus and verify</a></p></li> |
| 153 |
<li><p><a class="reference internal" href="#reconstruct-databases-and-cache" id="id17">8. Reconstruct databases and cache</a></p></li> |
| 154 |
<li><p><a class="reference internal" href="#do-you-want-any-new-features" id="id18">9. Do you want any new features?</a></p></li> |
| 155 |
<li><p><a class="reference internal" href="#upgrade-complete" id="id19">10. Upgrade complete</a></p></li> |
| 156 |
<li><p><a class="reference internal" href="#special-note-for-murder-configurations" id="id20">Special note for Murder configurations</a></p></li> |
| 157 |
</ul> |
| 158 |
</nav> |
| 159 |
<section id="preparation"> |
| 160 |
<h2><a class="toc-backref" href="#id1" role="doc-backlink">1. Preparation</a><a class="headerlink" href="#preparation" title="Link to this heading"></a></h2> |
| 161 |
<p>Things to consider <strong>before</strong> you begin:</p> |
| 162 |
<section id="versions-to-upgrade-from"> |
| 163 |
<h3><a class="toc-backref" href="#id2" role="doc-backlink">Versions to upgrade from</a><a class="headerlink" href="#versions-to-upgrade-from" title="Link to this heading"></a></h3> |
| 164 |
<p>Before upgrading to 3.12, your deployment should be running |
| 165 |
<strong>3.10.1 (or later)</strong></p> |
| 166 |
<p>If your existing deployment is older than this, you should first upgrade |
| 167 |
to 3.10.1, let it run for a while, resolve any issues that come up, and only |
| 168 |
then upgrade to 3.12.</p> |
| 169 |
</section> |
| 170 |
<section id="installation-from-tarball"> |
| 171 |
<h3><a class="toc-backref" href="#id3" role="doc-backlink">Installation from tarball</a><a class="headerlink" href="#installation-from-tarball" title="Link to this heading"></a></h3> |
| 172 |
<p>You will need to install from our packaged tarball. We provide a full list of |
| 173 |
libraries that Debian requires, but we aren't able to test all platforms: you |
| 174 |
may find you need to install additional or different libraries to support 3.12.</p> |
| 175 |
</section> |
| 176 |
<section id="jmap-caldav-changes"> |
| 177 |
<h3><a class="toc-backref" href="#id4" role="doc-backlink">JMAP/CalDAV changes</a><a class="headerlink" href="#jmap-caldav-changes" title="Link to this heading"></a></h3> |
| 178 |
<section id="new-jmap-email-query-filter-conditions"> |
| 179 |
<span id="upgrade-email-query-reindex"></span><h4><a class="toc-backref" href="#id5" role="doc-backlink">New JMAP Email/query filter conditions</a><a class="headerlink" href="#new-jmap-email-query-filter-conditions" title="Link to this heading"></a></h4> |
| 180 |
<p>3.12 adds the JMAP Email/query filter conditions <code class="docutils literal notranslate"><span class="pre">messageId</span></code>, <code class="docutils literal notranslate"><span class="pre">references</span></code>, |
| 181 |
and <code class="docutils literal notranslate"><span class="pre">inReplyTo</span></code>.</p> |
| 182 |
<p>It is recommended to rebuild the Xapian index with <a class="reference internal" href="../reference/manpages/systemcommands/squatter.html#std-cyrusman-squatter-8">squatter(8)</a> to |
| 183 |
make use of these filter conditions. Otherwise, email queries having these |
| 184 |
filters fall back to reading the MIME headers from disk, resulting in slower |
| 185 |
search.</p> |
| 186 |
</section> |
| 187 |
</section> |
| 188 |
<section id="pcre2-support"> |
| 189 |
<span id="upgrade-pcre2-support"></span><h3><a class="toc-backref" href="#id6" role="doc-backlink">PCRE2 support</a><a class="headerlink" href="#pcre2-support" title="Link to this heading"></a></h3> |
| 190 |
<p>Cyrus 3.12 will prefer PCRE2 over PCRE if both are installed. If you have both |
| 191 |
installed and wish to use PCRE rather than PCRE2, run configure with |
| 192 |
<code class="docutils literal notranslate"><span class="pre">--disable-pcre2</span></code>.</p> |
| 193 |
<p>If you haven't specifically installed libpcre2-dev (or whatever your system's |
| 194 |
equivalent is), you might still have parts of pcre2 installed due to other |
| 195 |
packages on your system depending on it. This can confuse configure into |
| 196 |
thinking you have a usable PCRE2 when you don't. Either properly install |
| 197 |
libpcre2-dev so Cyrus can use it, or configure Cyrus with <code class="docutils literal notranslate"><span class="pre">--disable-pcre2</span></code> |
| 198 |
so that it ignores the partial installation.</p> |
| 199 |
<p>Please note that on Debian-based systems, PCRE (the old one, no longer |
| 200 |
maintained) is called "pcre3". Yes, this is confusing.</p> |
| 201 |
</section> |
| 202 |
<section id="how-are-you-planning-on-upgrading"> |
| 203 |
<h3><a class="toc-backref" href="#id7" role="doc-backlink">How are you planning on upgrading?</a><a class="headerlink" href="#how-are-you-planning-on-upgrading" title="Link to this heading"></a></h3> |
| 204 |
<p>Ideally, you will do a sandboxed test installation of 3.12 using a snapshot |
| 205 |
of your existing data before you switch off your existing installation.</p> |
| 206 |
<p>Other possibilities are upgrading by replication, or upgrading in place.</p> |
| 207 |
<p><strong>The rest of the instructions are written assuming a sandboxed 3.12 |
| 208 |
installation</strong>, but you should read and understand them regardless of how |
| 209 |
you intend to perform the upgrade.</p> |
| 210 |
<section id="upgrade-by-replicating"> |
| 211 |
<h4><a class="toc-backref" href="#id8" role="doc-backlink">Upgrade by replicating</a><a class="headerlink" href="#upgrade-by-replicating" title="Link to this heading"></a></h4> |
| 212 |
<p>If you're familiar with replication, and your current installation is 2.4 or |
| 213 |
newer, you can set up your existing installation to replicate data to a new |
| 214 |
3.12 installation and failover to the new installation when you're ready. The |
| 215 |
replication protocol has been kept mostly backwards compatible.</p> |
| 216 |
<p>If your old installation contains mailboxes or messages that are older than |
| 217 |
2.4, they may not have GUID fields in their indexes (index version too old), |
| 218 |
or they may have their GUID field set to zero. 3.12 will not accept message |
| 219 |
replications without valid matching GUIDs, so you need to fix this on your |
| 220 |
old installation first.</p> |
| 221 |
<p>You can check for affected mailboxes by examining the output from the |
| 222 |
<a class="reference internal" href="../reference/manpages/systemcommands/mbexamine.html#std-cyrusman-mbexamine-8">mbexamine(8)</a> tool:</p> |
| 223 |
<ul class="simple"> |
| 224 |
<li><p>mailboxes that report a 'Minor Version:' less than 10 will need to have |
| 225 |
their index upgraded using <a class="reference internal" href="../reference/manpages/systemcommands/reconstruct.html#std-cyrusman-reconstruct-8">reconstruct(8)</a> with the |
| 226 |
<cite>-V <version></cite> parameter to be at least 10.</p></li> |
| 227 |
<li><p>mailboxes containing messages that report 'GUID:0' will need to have |
| 228 |
their GUIDs recalculated using <a class="reference internal" href="../reference/manpages/systemcommands/reconstruct.html#std-cyrusman-reconstruct-8">reconstruct(8)</a> with the <cite>-G</cite> |
| 229 |
parameter.</p></li> |
| 230 |
</ul> |
| 231 |
<p>If you have a large amount of data, these reconstructs will take a long time, |
| 232 |
so it's better to identify the mailboxes needing attention and target them |
| 233 |
specifically. But if you have a small amount of data, it might be less work |
| 234 |
to just <cite>reconstruct -G -V max</cite> everything.</p> |
| 235 |
<p>If your old installation is on 3.0 or older and is using mailbox annotations, |
| 236 |
you will have problems replicating to newer versions due to missing MODSEQ |
| 237 |
(<a class="reference external" href="https://github.com/cyrusimap/cyrus-imapd/issues/4967">Issue #4967</a>). There is an experimental patch in the comments on this issue |
| 238 |
that might help for a one-off replication run into an empty replica, but it |
| 239 |
will not help for updating a replica that already has data.</p> |
| 240 |
</section> |
| 241 |
<section id="upgrade-in-place"> |
| 242 |
<h4><a class="toc-backref" href="#id9" role="doc-backlink">Upgrade in place</a><a class="headerlink" href="#upgrade-in-place" title="Link to this heading"></a></h4> |
| 243 |
<p>If you are upgrading in place, you will need to shut down Cyrus entirely while |
| 244 |
you install the new package. You should probably also block logins or filewall |
| 245 |
off internet access until you're completely finished so that you aren't |
| 246 |
surprised by users reconnecting before the upgraded server is ready for them.</p> |
| 247 |
</section> |
| 248 |
</section> |
| 249 |
<section id="do-what-as-who"> |
| 250 |
<h3><a class="toc-backref" href="#id10" role="doc-backlink">Do What As Who?</a><a class="headerlink" href="#do-what-as-who" title="Link to this heading"></a></h3> |
| 251 |
<p>Since the various files, databases, directories, etc. used by Cyrus |
| 252 |
must be readable and writable as the <code class="docutils literal notranslate"><span class="pre">cyrus</span></code> user, please make sure |
| 253 |
to <strong>always</strong> perform Cyrus commands <em>as</em> the <code class="docutils literal notranslate"><span class="pre">cyrus</span></code> user, and not |
| 254 |
as <code class="docutils literal notranslate"><span class="pre">root</span></code>. In our documentation, we will always reference Cyrus |
| 255 |
commands in this form -- <a class="reference internal" href="../reference/manpages/systemcommands/cyr_info.html#std-cyrusman-cyr_info-8">cyr_info(8)</a> -- before using |
| 256 |
examples of them, so you'll know that those commands <strong>must</strong> be run as |
| 257 |
the <code class="docutils literal notranslate"><span class="pre">cyrus</span></code> user.</p> |
| 258 |
<p>Doing so in most systems is as simple as using either the <code class="docutils literal notranslate"><span class="pre">su</span></code> or |
| 259 |
<code class="docutils literal notranslate"><span class="pre">sudo</span></code> commands, like so:</p> |
| 260 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>su cyrus -c "/usr/local/bin/cyr_info conf-lint -C /etc/imapd.conf -M /etc/cyrus.conf" |
| 261 |
sudo -u cyrus /usr/local/bin/cyr_info conf-lint -C /etc/imapd.conf -M /etc/cyrus.conf |
| 262 |
</pre></div> |
| 263 |
</div> |
| 264 |
<p>In this document, however, there are also several command examples which |
| 265 |
<em>should</em> or <strong>must</strong> be run as <code class="docutils literal notranslate"><span class="pre">root</span></code>. These are always standard *nix |
| 266 |
commands, such as <code class="docutils literal notranslate"><span class="pre">rsync</span></code> or <code class="docutils literal notranslate"><span class="pre">scp</span></code>.</p> |
| 267 |
<p>We strongly recommend that you read this entire document before upgrading.</p> |
| 268 |
</section> |
| 269 |
</section> |
| 270 |
<section id="install-new-3-12-cyrus"> |
| 271 |
<h2><a class="toc-backref" href="#id11" role="doc-backlink">2. Install new 3.12 Cyrus</a><a class="headerlink" href="#install-new-3-12-cyrus" title="Link to this heading"></a></h2> |
| 272 |
<p>Download the release <a class="reference internal" href="getcyrus.html#getcyrus"><span class="std std-ref">3.12 package tarball</span></a>.</p> |
| 273 |
<p>Fetch the libraries for your platform. The full list (including all optional |
| 274 |
packages) for Debian is:</p> |
| 275 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>sudo apt-get install -y autoconf automake autotools-dev bash-completion \ |
| 276 |
bison build-essential comerr-dev debhelper flex g++ git gperf groff \ |
| 277 |
heimdal-dev libbsd-resource-perl libclone-perl libconfig-inifiles-perl \ |
| 278 |
libcunit1-dev libdatetime-perl libdigest-sha-perl libencode-imaputf7-perl \ |
| 279 |
libfile-chdir-perl libglib2.0-dev libical-dev libio-socket-inet6-perl \ |
| 280 |
libio-stringy-perl libjansson-dev libldap2-dev libmysqlclient-dev \ |
| 281 |
libnet-server-perl libnews-nntpclient-perl libpam0g-dev libpcre2-dev \ |
| 282 |
libsasl2-dev libsqlite3-dev libssl-dev libtest-unit-perl libtool \ |
| 283 |
libunix-syslog-perl liburi-perl libxapian-dev libxml-generator-perl \ |
| 284 |
libxml-xpath-perl libxml2-dev libwrap0-dev libzephyr-dev lsb-base \ |
| 285 |
net-tools perl php-cli php-curl pkg-config po-debconf tcl-dev transfig \ |
| 286 |
uuid-dev vim wamerican wget xutils-dev zlib1g-dev sasl2-bin rsyslog sudo \ |
| 287 |
acl telnet |
| 288 |
</pre></div> |
| 289 |
</div> |
| 290 |
<p>If you're on another platform and can provide the list of dependencies, please |
| 291 |
let us know via a |
| 292 |
<a class="reference external" href="https://github.com/cyrusimap/cyrus-imapd/issues">GitHub issue</a> |
| 293 |
or documentation pull request, or send mail to the |
| 294 |
<a class="reference internal" href="../support/feedback-mailing-lists.html#feedback-mailing-lists"><span class="std std-ref">developer list</span></a>.</p> |
| 295 |
<p>Follow the <a class="reference internal" href="../installing.html#installing"><span class="std std-ref">general install instructions</span></a>.</p> |
| 296 |
<div class="admonition note"> |
| 297 |
<p class="admonition-title">Note</p> |
| 298 |
<p>It's best to ensure your new Cyrus <em>will not</em> start up automatically |
| 299 |
if your server restarts in the middle of the upgrade.</p> |
| 300 |
<p>How this is best achieved will depend upon your OS and distro, but may |
| 301 |
involve something like <code class="docutils literal notranslate"><span class="pre">systemctl</span> <span class="pre">disable</span> <span class="pre">cyrus-imapd</span></code> or |
| 302 |
<code class="docutils literal notranslate"><span class="pre">update-rc.d</span> <span class="pre">cyrus-imapd</span> <span class="pre">disable</span></code></p> |
| 303 |
</div> |
| 304 |
</section> |
| 305 |
<section id="shut-down-existing-cyrus"> |
| 306 |
<h2><a class="toc-backref" href="#id12" role="doc-backlink">3. Shut down existing Cyrus</a><a class="headerlink" href="#shut-down-existing-cyrus" title="Link to this heading"></a></h2> |
| 307 |
<p>Shut down your existing Cyrus installation with its init script or |
| 308 |
whatever method you normally use.</p> |
| 309 |
<p>This is necessary to guarantee a clean data snapshot.</p> |
| 310 |
</section> |
| 311 |
<section id="backup-and-copy-existing-data"> |
| 312 |
<h2><a class="toc-backref" href="#id13" role="doc-backlink">4. Backup and Copy existing data</a><a class="headerlink" href="#backup-and-copy-existing-data" title="Link to this heading"></a></h2> |
| 313 |
<p>We recommend backing up all your data before continuing.</p> |
| 314 |
<ul class="simple"> |
| 315 |
<li><p>Sieve scripts</p></li> |
| 316 |
<li><p>Config files</p></li> |
| 317 |
<li><p>Mail spool</p></li> |
| 318 |
<li><p><a class="reference internal" href="../concepts/deployment/databases.html#databases"><span class="std std-ref">Cyrus Databases</span></a></p></li> |
| 319 |
</ul> |
| 320 |
<p>Copy all of this to the new instance, using <code class="docutils literal notranslate"><span class="pre">rsync</span></code> or similar tools.</p> |
| 321 |
<div class="admonition note"> |
| 322 |
<p class="admonition-title">Note</p> |
| 323 |
<p>Cyrus keeps its data and databases in various locations, some of |
| 324 |
which may be tailored by your configuration. Please consult |
| 325 |
<a class="reference internal" href="../reference/admin/locations.html#imap-admin-locations"><span class="std std-ref">File & Directory Locations</span></a> for guidance on where data lives in your |
| 326 |
current installation.</p> |
| 327 |
</div> |
| 328 |
<p>For example, to copy from an existing Debian or Ubuntu installation |
| 329 |
using their standard locations, you might execute this series of |
| 330 |
commands on the <em>new</em> server (where "oldimap" is the name of the old |
| 331 |
server):</p> |
| 332 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>rsync -aHv oldimap:/var/lib/cyrus/. /var/lib/cyrus/. |
| 333 |
rsync -aHv oldimap:/var/spool/cyrus/. /var/spool/cyrus/. |
| 334 |
</pre></div> |
| 335 |
</div> |
| 336 |
<p>You don't need to copy the following databases as Cyrus 3.12 will |
| 337 |
recreate these for you automatically:</p> |
| 338 |
<ul class="simple"> |
| 339 |
<li><p>duplicate delivery (deliver.db),</p></li> |
| 340 |
<li><p>TLS cache (tls_sessions.db),</p></li> |
| 341 |
<li><p>PTS cache (ptscache.db),</p></li> |
| 342 |
<li><p>STATUS cache (statuscache.db).</p></li> |
| 343 |
</ul> |
| 344 |
<div class="admonition note"> |
| 345 |
<p class="admonition-title">Note</p> |
| 346 |
<p>You may wish to consider relocating these four databases to ephemeral |
| 347 |
storage, such as <code class="docutils literal notranslate"><span class="pre">/run/cyrus</span></code> (Debian/Ubuntu) or <code class="docutils literal notranslate"><span class="pre">/var/run/cyrus</span></code> |
| 348 |
or whatever suitable tmpfs is provided on your distro. It will place |
| 349 |
less IO load on your disks and run faster.</p> |
| 350 |
</div> |
| 351 |
</section> |
| 352 |
<section id="copy-config-files-and-update"> |
| 353 |
<h2><a class="toc-backref" href="#id14" role="doc-backlink">5. Copy config files and update</a><a class="headerlink" href="#copy-config-files-and-update" title="Link to this heading"></a></h2> |
| 354 |
<p>Again, check the locations on your specific installation. For example, |
| 355 |
on FreeBSD systems, the configuration files <a class="reference internal" href="../reference/manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a> |
| 356 |
and <a class="reference internal" href="../reference/manpages/configs/cyrus.conf.html#std-cyrusman-cyrus.conf-5">cyrus.conf(5)</a> are in <code class="docutils literal notranslate"><span class="pre">/usr/local/etc</span></code>, rather than |
| 357 |
<code class="docutils literal notranslate"><span class="pre">/etc/</span></code>. Run this command on the <em>old</em> server:</p> |
| 358 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>scp /etc/cyrus.conf /etc/imapd.conf newimap:/etc/ |
| 359 |
</pre></div> |
| 360 |
</div> |
| 361 |
<p>Using the <a class="reference internal" href="../reference/manpages/systemcommands/cyr_info.html#std-cyrusman-cyr_info-8">cyr_info(8)</a> command, check to see if your |
| 362 |
imapd.conf file contains any deprecated options. Run this command on |
| 363 |
the new server:</p> |
| 364 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cyr_info conf-lint -C <path to imapd.conf> -M <path to cyrus.conf> |
| 365 |
</pre></div> |
| 366 |
</div> |
| 367 |
<p>You need to provide both imapd.conf and cyrus.conf so that conf-lint knows |
| 368 |
the names of all your services and can check service-specific overrides.</p> |
| 369 |
<p>To check your entire system's configuration you can use the conf-all |
| 370 |
action. This command takes all the system defaults, along with anything |
| 371 |
you have provided overrides for in your config files:</p> |
| 372 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cyr_info conf-all -C <path to imapd.conf> -M <path to cyrus.conf> |
| 373 |
</pre></div> |
| 374 |
</div> |
| 375 |
</section> |
| 376 |
<section id="upgrade-specific-items"> |
| 377 |
<h2><a class="toc-backref" href="#id15" role="doc-backlink">6. Upgrade specific items</a><a class="headerlink" href="#upgrade-specific-items" title="Link to this heading"></a></h2> |
| 378 |
<p>Nothing special required when upgrading from 3.10.</p> |
| 379 |
</section> |
| 380 |
<section id="start-new-3-12-cyrus-and-verify"> |
| 381 |
<h2><a class="toc-backref" href="#id16" role="doc-backlink">7. Start new 3.12 Cyrus and verify</a><a class="headerlink" href="#start-new-3-12-cyrus-and-verify" title="Link to this heading"></a></h2> |
| 382 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>sudo ./master/master -d |
| 383 |
</pre></div> |
| 384 |
</div> |
| 385 |
<p>Check <code class="docutils literal notranslate"><span class="pre">/var/log/syslog</span></code> for errors so you can quickly understand potential |
| 386 |
problems.</p> |
| 387 |
<p>When you're satisfied version 3.12 is running and can see all its data |
| 388 |
correctly, start the new Cyrus up with your regular init script.</p> |
| 389 |
<p>If something has gone wrong, contact us on the |
| 390 |
<a class="reference internal" href="../support/feedback-mailing-lists.html#feedback-mailing-lists"><span class="std std-ref">mailing list</span></a>. |
| 391 |
You can revert to backups and keep processing mail using your old version |
| 392 |
until you're able to finish your 3.12 installation.</p> |
| 393 |
<div class="admonition note"> |
| 394 |
<p class="admonition-title">Note</p> |
| 395 |
<p>If you've disabled your system startup scripts, as recommended in |
| 396 |
step 2, remember to re-enable them. Use something like <code class="docutils literal notranslate"><span class="pre">systemctl</span> |
| 397 |
<span class="pre">enable</span> <span class="pre">cyrus-imapd</span></code> or <code class="docutils literal notranslate"><span class="pre">update-rc.d</span> <span class="pre">cyrus-imapd</span> <span class="pre">enable</span></code></p> |
| 398 |
</div> |
| 399 |
</section> |
| 400 |
<section id="reconstruct-databases-and-cache"> |
| 401 |
<h2><a class="toc-backref" href="#id17" role="doc-backlink">8. Reconstruct databases and cache</a><a class="headerlink" href="#reconstruct-databases-and-cache" title="Link to this heading"></a></h2> |
| 402 |
<p>The following steps can each take a long time, so we recommend |
| 403 |
running them one at a time (to reduce locking contention and high I/O load).</p> |
| 404 |
<p>To upgrade all the mailboxes to the latest version. This will take hours, |
| 405 |
possibly days.</p> |
| 406 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>reconstruct -V max |
| 407 |
</pre></div> |
| 408 |
</div> |
| 409 |
<p>To check (and correct) quota usage:</p> |
| 410 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>quota -f |
| 411 |
</pre></div> |
| 412 |
</div> |
| 413 |
<p>If you've been using CalDAV/CardDAV/all of the DAV from earlier releases, then |
| 414 |
the user.dav databases need to be reconstructed due to format changes.:</p> |
| 415 |
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>dav_reconstruct -a |
| 416 |
</pre></div> |
| 417 |
</div> |
| 418 |
<p>If have the <cite>reverseacls</cite> feature enabled in <a class="reference internal" href="../reference/manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>, you may |
| 419 |
need to regenerate the data it uses (which is stored in <cite>mailboxes.db</cite>). This |
| 420 |
is automatically regenerated at startup by <code class="docutils literal notranslate"><span class="pre">ctl_cyrusdb</span> <span class="pre">-r</span></code> if the |
| 421 |
<cite>reverseacls</cite> setting has changed. So, to force a regeneration:</p> |
| 422 |
<blockquote> |
| 423 |
<div><ol class="arabic simple"> |
| 424 |
<li><p>Shut down Cyrus</p></li> |
| 425 |
<li><p>Change <cite>reverseacls</cite> to <cite>0</cite> in <a class="reference internal" href="../reference/manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a></p></li> |
| 426 |
<li><p>Run <a class="reference internal" href="../reference/manpages/systemcommands/ctl_cyrusdb.html#std-cyrusman-ctl_cyrusdb-8">ctl_cyrusdb(8)</a> with the <cite>-r</cite> switch (or just start |
| 427 |
Cyrus, assuming your <a class="reference internal" href="../reference/manpages/configs/cyrus.conf.html#std-cyrusman-cyrus.conf-5">cyrus.conf(5)</a> contains a |
| 428 |
<cite>ctl_cyrusdb -r</cite> entry in the START section). The old RACL entries |
| 429 |
will be removed</p></li> |
| 430 |
<li><p>(If you started Cyrus, shut it down again)</p></li> |
| 431 |
<li><p>Change <cite>reverseacls</cite> back to <cite>1</cite></p></li> |
| 432 |
<li><p>Start up Cyrus (or run <cite>ctl_cyrusdb -r</cite>). The RACL entries will |
| 433 |
be rebuilt</p></li> |
| 434 |
</ol> |
| 435 |
</div></blockquote> |
| 436 |
<p>There are fixes and improvements to caching and search indexing in 3.12. |
| 437 |
You should consider running <a class="reference internal" href="../reference/manpages/systemcommands/reconstruct.html#std-cyrusman-reconstruct-8">reconstruct(8)</a> across all mailboxes to |
| 438 |
rebuild caches, and <a class="reference internal" href="../reference/manpages/systemcommands/squatter.html#std-cyrusman-squatter-8">squatter(8)</a> to rebuild search indexes. This |
| 439 |
will probably take a long time, so you may wish to only do it per-mailbox as |
| 440 |
inconsistencies are discovered.</p> |
| 441 |
</section> |
| 442 |
<section id="do-you-want-any-new-features"> |
| 443 |
<h2><a class="toc-backref" href="#id18" role="doc-backlink">9. Do you want any new features?</a><a class="headerlink" href="#do-you-want-any-new-features" title="Link to this heading"></a></h2> |
| 444 |
<p>3.12 comes with many lovely new features. Consider which ones you want to |
| 445 |
enable. Check the <a class="reference internal" href="release-notes/3.12/index.html#imap-release-notes-3-12"><span class="std std-ref">3.12 release notes</span></a> for the |
| 446 |
full list.</p> |
| 447 |
</section> |
| 448 |
<section id="upgrade-complete"> |
| 449 |
<h2><a class="toc-backref" href="#id19" role="doc-backlink">10. Upgrade complete</a><a class="headerlink" href="#upgrade-complete" title="Link to this heading"></a></h2> |
| 450 |
<p>Your upgrade is complete, congratulations!</p> |
| 451 |
</section> |
| 452 |
<section id="special-note-for-murder-configurations"> |
| 453 |
<h2><a class="toc-backref" href="#id20" role="doc-backlink">Special note for Murder configurations</a><a class="headerlink" href="#special-note-for-murder-configurations" title="Link to this heading"></a></h2> |
| 454 |
<p>If you upgrade murder frontends before you upgrade all the backends, |
| 455 |
they may advertise features to clients which the backends don't support, |
| 456 |
which will cause the commands to fail when they are proxied to the backend.</p> |
| 457 |
<p>Generally accepted wisdom when upgrading a Murder configuration is to |
| 458 |
upgrade all your back end servers first. This can be done one at a time.</p> |
| 459 |
<p>Upgrade your mupdate master and front ends last.</p> |
| 460 |
<p>Please note that you will be unable to set ANNOTATION-STORAGE or MAILBOX |
| 461 |
quotas (formerly known as X-ANNOTATION-STORAGE and X-NUM_FOLDERS) in a |
| 462 |
mixed-version murder environment until your frontends are upgraded to 3.10 |
| 463 |
(or later). Upgraded frontends know how to negotiate with older backends, but |
| 464 |
older frontends do not know how to negotiate with newer backends.</p> |
| 465 |
<p>If you wish to use XFER to transfer mailboxes from an existing backend to your |
| 466 |
new 3.12 backend, you should first upgrade your existing backends to 3.10, 3.8, |
| 467 |
3.6.1, 3.4.5, 3.2.11, or 3.0.18. These releases contain a patch such that XFER |
| 468 |
will correctly recognise 3.8 and later destinations. Without this patch, XFER |
| 469 |
will not recognise 3.12, and will downgrade mailboxes to the oldest supported |
| 470 |
format (losing metadata) in transit.</p> |
| 471 |
</section> |
| 472 |
</section> |
| 473 |
|
| 474 |
|
| 475 |
</div> |
| 476 |
</div> |
| 477 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| 478 |
<a href="installation/virus.html" class="btn btn-neutral float-left" title="Virus Scanner" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| 479 |
<a href="../concepts/deployment.html" class="btn btn-neutral float-right" title="Configuration Guide" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| 480 |
</div> |
| 481 |
|
| 482 |
<hr/> |
| 483 |
|
| 484 |
<div role="contentinfo"> |
| 485 |
<p>© Copyright 1993–2026, The Cyrus Team.</p> |
| 486 |
</div> |
| 487 |
|
| 488 |
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a |
| 489 |
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> |
| 490 |
provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| 491 |
|
| 492 |
|
| 493 |
</footer> |
| 494 |
</div> |
| 495 |
</div> |
| 496 |
</section> |
| 497 |
</div> |
| 498 |
<script> |
| 499 |
jQuery(function () { |
| 500 |
SphinxRtdTheme.Navigation.enable(true); |
| 501 |
}); |
| 502 |
</script> |
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
|
| 507 |
</body> |
| 508 |
</html> |