| 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>Mail Spool Partitions — 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="Mailbox Metadata Partitions" href="mailbox-metadata-partitions.html" /> |
| 24 |
<link rel="prev" title="CardDAV Support" href="carddav.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 current"><a class="reference internal" href="../../../overview.html">Overview</a><ul class="current"> |
| 54 |
<li class="toctree-l2 current"><a class="reference internal" href="../features.html">Features</a><ul class="current"> |
| 55 |
<li class="toctree-l3"><a class="reference internal" href="../features.html#security-and-authentication">Security and Authentication</a></li> |
| 56 |
<li class="toctree-l3"><a class="reference internal" href="../features.html#mailbox-management">Mailbox Management</a></li> |
| 57 |
<li class="toctree-l3"><a class="reference internal" href="../features.html#message-management">Message Management</a></li> |
| 58 |
<li class="toctree-l3"><a class="reference internal" href="../features.html#calendar-and-contact-dav-collection-management">Calendar and Contact (DAV) Collection Management</a></li> |
| 59 |
<li class="toctree-l3 current"><a class="reference internal" href="../features.html#storage">Storage</a><ul class="current"> |
| 60 |
<li class="toctree-l4 current"><a class="current reference internal" href="#">Mail Spool Partitions</a></li> |
| 61 |
<li class="toctree-l4"><a class="reference internal" href="mailbox-metadata-partitions.html">Mailbox Metadata Partitions</a></li> |
| 62 |
<li class="toctree-l4"><a class="reference internal" href="archiving.html">Archiving</a></li> |
| 63 |
<li class="toctree-l4"><a class="reference internal" href="quota.html">Quota</a></li> |
| 64 |
<li class="toctree-l4"><a class="reference internal" href="single-instance-store.html">Single-Instance Store</a></li> |
| 65 |
</ul> |
| 66 |
</li> |
| 67 |
<li class="toctree-l3"><a class="reference internal" href="../features.html#load-management">Load Management</a></li> |
| 68 |
</ul> |
| 69 |
</li> |
| 70 |
<li class="toctree-l2"><a class="reference internal" href="../overview_and_concepts.html">Concepts</a></li> |
| 71 |
</ul> |
| 72 |
</li> |
| 73 |
<li class="toctree-l1"><a class="reference internal" href="../../../setup.html">Setup</a></li> |
| 74 |
<li class="toctree-l1"><a class="reference internal" href="../../../operations.html">Operations</a></li> |
| 75 |
<li class="toctree-l1"><a class="reference internal" href="../../../developers.html">Developers</a></li> |
| 76 |
<li class="toctree-l1"><a class="reference internal" href="../../../support.html">Support/Community</a></li> |
| 77 |
</ul> |
| 78 |
<p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p> |
| 79 |
<ul> |
| 80 |
<li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li> |
| 81 |
</ul> |
| 82 |
|
| 83 |
</div> |
| 84 |
</div> |
| 85 |
</nav> |
| 86 |
|
| 87 |
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > |
| 88 |
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 89 |
<a href="../../../index.html">Cyrus IMAP</a> |
| 90 |
</nav> |
| 91 |
|
| 92 |
<div class="wy-nav-content"> |
| 93 |
<div class="rst-content"> |
| 94 |
<div role="navigation" aria-label="Page navigation"> |
| 95 |
<ul class="wy-breadcrumbs"> |
| 96 |
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li> |
| 97 |
<li class="breadcrumb-item"><a href="../../../overview.html">Overview</a></li> |
| 98 |
<li class="breadcrumb-item"><a href="../features.html">Features</a></li> |
| 99 |
<li class="breadcrumb-item active">Mail Spool Partitions</li> |
| 100 |
<li class="wy-breadcrumbs-aside"> |
| 101 |
<a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/concepts/features/mail-spool-partitions.rst" class="fa fa-github"> Edit on GitHub</a> |
| 102 |
</li> |
| 103 |
</ul> |
| 104 |
<hr/> |
| 105 |
</div> |
| 106 |
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 107 |
<div itemprop="articleBody"> |
| 108 |
|
| 109 |
<section id="mail-spool-partitions"> |
| 110 |
<span id="imap-features-mail-spool-partitions"></span><h1>Mail Spool Partitions<a class="headerlink" href="#mail-spool-partitions" title="Link to this heading"></a></h1> |
| 111 |
<p>A mail spool is divided in partitions. Partitions can give you the |
| 112 |
opportunity to tier your storage, and/or use multiple filesystems to |
| 113 |
apply restrictions to information (contained within mailboxes), such as |
| 114 |
the absolute maximum quantity of storage used.</p> |
| 115 |
<div class="admonition seealso"> |
| 116 |
<p class="admonition-title">See also</p> |
| 117 |
<ul class="simple"> |
| 118 |
<li><p><a class="reference internal" href="../deployment/storage.html#imap-deployment-storage"><span class="std std-ref">Storage Considerations</span></a></p></li> |
| 119 |
<li><p><a class="reference internal" href="mailbox-distribution.html#imap-features-mailbox-distribution"><span class="std std-ref">Mailbox Distribution</span></a></p></li> |
| 120 |
</ul> |
| 121 |
</div> |
| 122 |
<section id="storage-tiering-with-partitions"> |
| 123 |
<h2>Storage Tiering with Partitions<a class="headerlink" href="#storage-tiering-with-partitions" title="Link to this heading"></a></h2> |
| 124 |
<p>As an example, one could imagine a set of disks configured as follows:</p> |
| 125 |
<ul class="simple"> |
| 126 |
<li><p>Some small but fast (expensive) disks for the main storage array,</p></li> |
| 127 |
<li><p>Some large but slow (cheap) disks for archives.</p></li> |
| 128 |
</ul> |
| 129 |
<div class="admonition note"> |
| 130 |
<p class="admonition-title">Note</p> |
| 131 |
<p>This particular example is more efficaciously achieved via the new |
| 132 |
(post 3.0) <a class="reference internal" href="archiving.html#imap-features-archiving"><span class="std std-ref">Archiving</span></a> feature.</p> |
| 133 |
</div> |
| 134 |
<p>Mounting a filesystem on the fast disks under |
| 135 |
<code class="file docutils literal notranslate"><span class="pre">/var/spool/cyrus/fast/</span></code>, and mounting a filesystem on the slow |
| 136 |
disks under <code class="file docutils literal notranslate"><span class="pre">/var/spool/cyrus/slow/</span></code>, you could configure the |
| 137 |
following in <a class="reference internal" href="../../reference/manpages/configs/imapd.conf.html#std-cyrusman-imapd.conf-5">imapd.conf(5)</a>:</p> |
| 138 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">defaultpartition</span><span class="p">:</span> <span class="n">fast</span> |
| 139 |
<span class="n">partition</span><span class="o">-</span><span class="n">fast</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">/</span><span class="n">fast</span><span class="o">/</span> |
| 140 |
<span class="n">partition</span><span class="o">-</span><span class="n">slow</span><span class="p">:</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">spool</span><span class="o">/</span><span class="n">cyrus</span><span class="o">/</span><span class="n">slow</span><span class="o">/</span> |
| 141 |
</pre></div> |
| 142 |
</div> |
| 143 |
<p>Next, you could set the quota on <code class="docutils literal notranslate"><span class="pre">user/john@example.org</span></code> to a measly |
| 144 |
1 gigabyte:</p> |
| 145 |
<pre class="literal-block">$ <strong class="command">cyradm -u localhost</strong> |
| 146 |
verify error:num=18:self signed certificate |
| 147 |
IMAP Password: |
| 148 |
localhost> <strong class="command">sq user/john@example.org 1048576</strong></pre> |
| 149 |
<p>You could then also give <em>John</em> a mailbox <code class="docutils literal notranslate"><span class="pre">Archive</span></code> for him to clean |
| 150 |
up his <a class="reference internal" href="namespaces.html#imap-features-namespaces-personal"><span class="std std-ref">Personal Namespace</span></a> without loosing access |
| 151 |
to his existing mail:</p> |
| 152 |
<pre class="literal-block">$ <strong class="command">cyradm -u localhost</strong> |
| 153 |
verify error:num=18:self signed certificate |
| 154 |
IMAP Password: |
| 155 |
localhost> <strong class="command">cm user/john/Archive@example.org slow</strong> |
| 156 |
localhost> <strong class="command">sq user/john/Archive@example.org none</strong></pre> |
| 157 |
<p><em>John</em> now has unlimited storage in his <code class="docutils literal notranslate"><span class="pre">Archive</span></code> folder on the cheap |
| 158 |
slow disks, while his day-to-day email is on the expensive fast disks.</p> |
| 159 |
</section> |
| 160 |
<section id="restricting-storage-used-with-partitions"> |
| 161 |
<h2>Restricting Storage Used with Partitions<a class="headerlink" href="#restricting-storage-used-with-partitions" title="Link to this heading"></a></h2> |
| 162 |
<div class="admonition important"> |
| 163 |
<p class="admonition-title">Important</p> |
| 164 |
<p>It is not recommended to use partitions for the purposes of |
| 165 |
restricting the amount of storage used by (sets of) mailboxes, |
| 166 |
unless you can also grow the filesystem (preferably online) and you |
| 167 |
have (automated) means to determine what is to end up on each |
| 168 |
partition.</p> |
| 169 |
</div> |
| 170 |
<p>If a customer <code class="docutils literal notranslate"><span class="pre">example.org</span></code> purchases 5 GB of storage, and |
| 171 |
<code class="docutils literal notranslate"><span class="pre">example.com</span></code> purchases 500 GB of storage, then two partitions sized |
| 172 |
5 GB and 500 GB respectively could be used to restrict the users of each |
| 173 |
customers without individually restricting each user (to a percentage of |
| 174 |
the total storage).</p> |
| 175 |
<div class="admonition warning"> |
| 176 |
<p class="admonition-title">Warning</p> |
| 177 |
<p>Monitoring the storage used is critical, because actually running |
| 178 |
out of disk space is very costly -- and not a problem the customer |
| 179 |
themselves could recover from.</p> |
| 180 |
</div> |
| 181 |
<p>Back to <a class="reference internal" href="../features.html#imap-features"><span class="std std-ref">Features</span></a></p> |
| 182 |
</section> |
| 183 |
</section> |
| 184 |
|
| 185 |
|
| 186 |
</div> |
| 187 |
</div> |
| 188 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> |
| 189 |
<a href="carddav.html" class="btn btn-neutral float-left" title="CardDAV Support" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> |
| 190 |
<a href="mailbox-metadata-partitions.html" class="btn btn-neutral float-right" title="Mailbox Metadata Partitions" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> |
| 191 |
</div> |
| 192 |
|
| 193 |
<hr/> |
| 194 |
|
| 195 |
<div role="contentinfo"> |
| 196 |
<p>© Copyright 1993–2026, The Cyrus Team.</p> |
| 197 |
</div> |
| 198 |
|
| 199 |
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a |
| 200 |
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> |
| 201 |
provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| 202 |
|
| 203 |
|
| 204 |
</footer> |
| 205 |
</div> |
| 206 |
</div> |
| 207 |
</section> |
| 208 |
</div> |
| 209 |
<script> |
| 210 |
jQuery(function () { |
| 211 |
SphinxRtdTheme.Navigation.enable(true); |
| 212 |
}); |
| 213 |
</script> |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
</body> |
| 219 |
</html> |