Debian Codegraph @

doc/html/imap/reference/admin/murder/murder-mail-delivery.html

raw
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>Cyrus Murder Mail Delivery &mdash; 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="Tweaking Cyrus IMAP" href="../tweaking.html" />
24 <link rel="prev" title="Cyrus Murder Failure Modes" href="murder-failure-modes.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"><a class="reference internal" href="../../../../setup.html">Setup</a></li>
55 <li class="toctree-l1 current"><a class="reference internal" href="../../../../operations.html">Operations</a><ul class="current">
56 <li class="toctree-l2"><a class="reference internal" href="../../manpages/index.html">Man pages</a></li>
57 <li class="toctree-l2 current"><a class="reference internal" href="../../admin.html">Administrator Guide</a><ul class="current">
58 <li class="toctree-l3"><a class="reference internal" href="../../admin.html#architecture">Architecture</a></li>
59 <li class="toctree-l3 current"><a class="reference internal" href="../../admin.html#management">Management</a><ul class="current">
60 <li class="toctree-l4"><a class="reference internal" href="../locations.html">File &amp; Directory Locations</a></li>
61 <li class="toctree-l4"><a class="reference internal" href="../ports-sockets.html">Ports and Sockets</a></li>
62 <li class="toctree-l4"><a class="reference internal" href="../access-control.html">Access Control</a></li>
63 <li class="toctree-l4"><a class="reference internal" href="../quotas.html">Quotas</a></li>
64 <li class="toctree-l4"><a class="reference internal" href="../sieve.html">Cyrus Sieve</a></li>
65 <li class="toctree-l4"><a class="reference internal" href="../nntp.html">Cyrus NNTP</a></li>
66 <li class="toctree-l4"><a class="reference internal" href="../protlayer.html">Cyrus Prot Layer</a></li>
67 <li class="toctree-l4"><a class="reference internal" href="../sop.html">Standard Operating Procedures</a></li>
68 <li class="toctree-l4"><a class="reference internal" href="../eventsource.html">Cyrus Event Source</a></li>
69 <li class="toctree-l4"><a class="reference internal" href="../monitoring.html">Monitoring</a></li>
70 <li class="toctree-l4"><a class="reference internal" href="../config-mailboxdistribution.html">Mailbox Distribution</a></li>
71 <li class="toctree-l4 current"><a class="reference internal" href="murder.html">Cyrus Murder</a></li>
72 <li class="toctree-l4"><a class="reference internal" href="../tweaking.html">Tweaking Cyrus IMAP</a></li>
73 </ul>
74 </li>
75 </ul>
76 </li>
77 <li class="toctree-l2"><a class="reference internal" href="../../faq.html">Frequently Asked Questions</a></li>
78 </ul>
79 </li>
80 <li class="toctree-l1"><a class="reference internal" href="../../../../developers.html">Developers</a></li>
81 <li class="toctree-l1"><a class="reference internal" href="../../../../support.html">Support/Community</a></li>
82 </ul>
83 <p class="caption" role="heading"><span class="caption-text">Cyrus SASL</span></p>
84 <ul>
85 <li class="toctree-l1"><a class="reference external" href="http://www.cyrusimap.org/sasl">Cyrus SASL</a></li>
86 </ul>
87
88 </div>
89 </div>
90 </nav>
91
92 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
93 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
94 <a href="../../../../index.html">Cyrus IMAP</a>
95 </nav>
96
97 <div class="wy-nav-content">
98 <div class="rst-content">
99 <div role="navigation" aria-label="Page navigation">
100 <ul class="wy-breadcrumbs">
101 <li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
102 <li class="breadcrumb-item"><a href="../../../../operations.html">Operations</a></li>
103 <li class="breadcrumb-item"><a href="../../admin.html">Administrator Guide</a></li>
104 <li class="breadcrumb-item"><a href="murder.html">Cyrus Murder</a></li>
105 <li class="breadcrumb-item active">Cyrus Murder Mail Delivery</li>
106 <li class="wy-breadcrumbs-aside">
107 <a href="https://github.com/cyrusimap/cyrus-imapd/blob/master/docsrc/imap/reference/admin/murder/murder-mail-delivery.rst" class="fa fa-github"> Edit on GitHub</a>
108 </li>
109 </ul>
110 <hr/>
111 </div>
112 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
113 <div itemprop="articleBody">
114
115 <section id="cyrus-murder-mail-delivery">
116 <span id="murder-mail-delivery"></span><h1>Cyrus Murder Mail Delivery<a class="headerlink" href="#cyrus-murder-mail-delivery" title="Link to this heading"></a></h1>
117 <p>There are several alternate ways to handle mail delivery in a Cyrus murder, which may improve performance depending on your set up and mail volume.</p>
118 <section id="standard-way">
119 <h2>Standard Way<a class="headerlink" href="#standard-way" title="Link to this heading"></a></h2>
120 <p>In a standard set up (as suggested by the documentation) each time a message arrives at a frontend, lmtpproxyd will contact the master server to determine which backend the mailbox is on.</p>
121 <p>Pros:</p>
122 <ul class="simple">
123 <li><p>Most people do it this way</p></li>
124 <li><p>Easy to set up</p></li>
125 </ul>
126 <p>Cons:</p>
127 <ul class="simple">
128 <li><p>Murder master can become overloaded if you have large amount of incoming mail</p></li>
129 <li><p>Mail delivery hangs if murder master is unavailable.</p></li>
130 </ul>
131 </section>
132 <section id="query-local-mailboxes-db">
133 <h2>Query local mailboxes.db<a class="headerlink" href="#query-local-mailboxes-db" title="Link to this heading"></a></h2>
134 <p>Each frontend will generally have its own copy of the mailboxes.db file and lmtpproxyd can be set to query the localhost for the backend of a specific mailbox.</p>
135 <p>Pros:</p>
136 <ul class="simple">
137 <li><p>Resolve mailbox location faster</p></li>
138 <li><p>An increase in messages does not increase load on murder master</p></li>
139 <li><p>Mail can be delivered if murder master is unavailable</p></li>
140 </ul>
141 <p>Cons:</p>
142 <ul class="simple">
143 <li><p>More complicated setup</p></li>
144 <li><p>There are currently two ways to setup lmtpproxyd to query the localhost: normal and alternate.</p></li>
145 </ul>
146 <p>If using the alternate method, then mupdate needs to be reconfigured to keep mail delivery going during a murder master outage. Add <code class="docutils literal notranslate"><span class="pre">-m</span></code> to the mupdate arguments in <a class="reference internal" href="../../manpages/configs/cyrus.conf.html#std-cyrusman-cyrus.conf-5">cyrus.conf(5)</a>, restart, and mupdate will no longer contact the murder master. Mail delivery will work. Once the murder master has been fixed, remove <code class="docutils literal notranslate"><span class="pre">-m</span></code> so the local mupdate will start receiving updates again. Since this involves restarting Cyrus, we ran lmtpproxyd on its own machines (without imap/pop users)</p>
147 </section>
148 <section id="contact-local-mupdate-server">
149 <h2>Contact local mupdate server<a class="headerlink" href="#contact-local-mupdate-server" title="Link to this heading"></a></h2>
150 <p>Mupdate is running on each frontend to receive updates from the murder master. Lmtpproxyd can be configured to query the local mupdate process instead of the one on the master server.</p>
151 <p>The steps are briefly outlined below</p>
152 <ol class="arabic simple">
153 <li><p>Create a config file for lmtpproxyd. Copy your current imapd.conf file and set <code class="docutils literal notranslate"><span class="pre">mupdate_server:</span> <span class="pre">localhost</span></code>. Edit cyrus.conf and tell lmtpproxyd about the new config file. <code class="docutils literal notranslate"><span class="pre">cmd=&quot;lmtpproxyd</span> <span class="pre">-C</span> <span class="pre">/etc/lmtp.conf&quot;</span></code></p></li>
154 <li><p>Make sure you can login to mupdate locally. Test with mupdatetest. Example: <code class="docutils literal notranslate"><span class="pre">mupdatetest</span> <span class="pre">-u</span> <span class="pre">frontend</span> <span class="pre">-a</span> <span class="pre">frontend</span> <span class="pre">-m</span> <span class="pre">PLAIN</span> <span class="pre">localhost</span></code></p></li>
155 <li><p>Depending on how restrictive your setup is, you may have to create a config file for mupdate.</p></li>
156 </ol>
157 </section>
158 </section>
159
160
161 </div>
162 </div>
163 <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
164 <a href="murder-failure-modes.html" class="btn btn-neutral float-left" title="Cyrus Murder Failure Modes" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
165 <a href="../tweaking.html" class="btn btn-neutral float-right" title="Tweaking Cyrus IMAP" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
166 </div>
167
168 <hr/>
169
170 <div role="contentinfo">
171 <p>&#169; Copyright 1993–2026, The Cyrus Team.</p>
172 </div>
173
174 Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
175 <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
176 provided by <a href="https://readthedocs.org">Read the Docs</a>.
177
178
179 </footer>
180 </div>
181 </div>
182 </section>
183 </div>
184 <script>
185 jQuery(function () {
186 SphinxRtdTheme.Navigation.enable(true);
187 });
188 </script>
189
190
191
192
193 </body>
194 </html>