source: server/mail/dovecot.xml@ a7cd6c6

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a7cd6c6 was a7cd6c6, checked in by Tim Tassonis <stuff@…>, 3 years ago

Update to dovecot-2.3.15.

  • Property mode set to 100644
File size: 13.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY dovecot-download-http
8 "https://www.dovecot.org/releases/&dovecot-major;.&dovecot-minor;/dovecot-&dovecot-version;.tar.gz">
9 <!ENTITY dovecot-download-ftp " ">
10 <!ENTITY dovecot-md5sum "82ad748dcff95c22235261953d3390fa">
11 <!ENTITY dovecot-size "7.3 MB">
12 <!ENTITY dovecot-buildsize "202 MB">
13 <!ENTITY dovecot-time "4.8 SBU">
14]>
15
16<sect1 id="dovecot" xreflabel="Dovecot-&dovecot-version;">
17 <?dbhtml filename="dovecot.html"?>
18
19 <sect1info>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Dovecot-&dovecot-version;</title>
24
25 <indexterm zone="dovecot">
26 <primary sortas="a-Dovecot">Dovecot</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Dovecot</title>
31
32 <para>
33 <application>Dovecot</application> is an Internet Message Access Protocol
34 (IMAP) and Post Office Protocol (POP) server, written primarily with
35 security in mind. <application>Dovecot</application> aims to be
36 lightweight, fast and easy to set up as well as highly configurable and
37 easily extensible with plugins.
38 </para>
39
40 &lfs101_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&dovecot-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&dovecot-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &dovecot-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &dovecot-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &dovecot-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &dovecot-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/dovecot-&dovecot-version;-lua_fixes-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86
87 <bridgehead renderas="sect3">Dovecot Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Required</bridgehead>
90 <para role="required">
91 <xref linkend="libtirpc"/>
92 </para>
93
94 <bridgehead renderas="sect4">Optional</bridgehead>
95 <para role="optional">
96 <xref linkend="clucene"/>,
97 <xref linkend="icu"/>,
98 <xref linkend="libcap-pam"/>,
99 <xref linkend="linux-pam"/>,
100 <xref linkend="lua"/>,
101 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
102 <xref linkend="openldap"/>,
103 <xref linkend="postgresql"/>,
104 <xref linkend="sqlite"/>,
105 <xref linkend="valgrind"/>,
106 <xref linkend="xfsprogs"/>,
107 <ulink url="https://cassandra.apache.org/">Cassandra</ulink>,
108 <ulink url="https://github.com/Cyan4973/lz4">lz4</ulink>,
109 <ulink url="https://github.com/shibukawa/snowball_py">stemmer</ulink> and
110 <ulink url="https://libsodium.gitbook.io/doc/">libsodium</ulink>
111 </para>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/dovecot"/>
115 </para>
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of Dovecot</title>
120
121 <para>
122 There should be dedicated users and groups for unprivileged Dovecot
123 processes and for processing users' logins. Issue the following commands
124 as the <systemitem class="username">root</systemitem> user:
125 </para>
126
127<screen role="root"><userinput>groupadd -g 42 dovecot &amp;&amp;
128useradd -c "Dovecot unprivileged user" -d /dev/null -u 42 \
129 -g dovecot -s /bin/false dovecot &amp;&amp;
130groupadd -g 43 dovenull &amp;&amp;
131useradd -c "Dovecot login user" -d /dev/null -u 43 \
132 -g dovenull -s /bin/false dovenull</userinput></screen>
133
134 <para>
135 First, apply a patch to fix compilation wit Lua-5.4:
136 </para>
137
138<screen><userinput remap="pre">patch -Np1 -i ../dovecot-&dovecot-version;-lua_fixes-1.patch</userinput></screen>
139
140
141 <para>
142 Install <application>Dovecot</application> by running the following
143 commands:
144 </para>
145
146<screen revision="sysv"><userinput>CPPFLAGS="-I/usr/include/tirpc" \
147LDFLAGS+=" -ltirpc" \
148./configure --prefix=/usr \
149 --sysconfdir=/etc \
150 --localstatedir=/var \
151 --rundir=/run \
152 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
153 --disable-static &amp;&amp;
154make</userinput></screen>
155
156<screen revision="systemd"><userinput>CPPFLAGS="-I/usr/include/tirpc" \
157LDFLAGS+=" -ltirpc" \
158./configure --prefix=/usr \
159 --sysconfdir=/etc \
160 --localstatedir=/var \
161 --rundir=/run \
162 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
163 --disable-static \
164 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
165make</userinput></screen>
166
167 <para>
168 To test the results, issue <command>make -k check</command>. <!-- An error
169 may be reported if <xref linkend="valgrind"/> is present when running
170 the test.-->
171 </para>
172
173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>make install</userinput></screen>
178
179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
184 <para>
185 <command>CPPFLAGS=... LDFLAGS+=...</command>: build with libtirpc
186 instead of the recently removed RPC code provided by GlibC.
187 </para>
188
189 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
190 href="../../xincludes/static-libraries.xml"/>
191
192 <para revision="systemd">
193 <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
194 This switch is used to set the correct installation directory for
195 systemd units.
196 </para>
197
198 <para>
199 <option>--with-ldap</option>: This switch enables
200 <application>OpenLDAP</application> authentication support.
201 </para>
202
203 <para>
204 <option>--with-pgsql</option>: This switch enables
205 <application>PostgreSQL</application> database support.
206 </para>
207
208 <para>
209 <option>--with-mysql</option>: This switch enables
210 <application>MySQL</application> database support.
211 </para>
212
213 <para>
214 <option>--with-sqlite</option>: This switch enables
215 <application>SQLite</application> database support.
216 </para>
217
218 <para>
219 <option>--with-lucene</option>: This switch enables
220 <application>CLucene</application> full text search support.
221 </para>
222
223 <para>
224 <option>--with-lua</option>: This switch enables
225 <application>Lua</application> plugin support. This includes
226 a mail and push notification plugin.
227 </para>
228
229<!--
230 <para>
231 <option>- -with-krb5</option>: This switch enables
232 GSSAPI authentication support.
233 </para>
234-->
235 </sect2>
236
237 <sect2 role="configuration">
238 <title>Configuring Dovecot</title>
239
240 <sect3 id="dovecot-config">
241 <title>Config Files</title>
242
243 <para>
244 <filename>/etc/dovecot/dovecot.conf</filename>,
245 <filename>/etc/dovecot/conf.d/*</filename>, and
246 <filename>/etc/dovecot/local.conf</filename>
247 </para>
248
249 <indexterm zone="dovecot dovecot-config">
250 <primary sortas="e-etc-dovecot-dovecot.conf">/etc/dovecot/dovecot.conf</primary>
251 </indexterm>
252 <indexterm zone="dovecot dovecot-config">
253 <primary sortas="e-etc-dovecot-conf.d">/etc/dovecot/conf.d/*</primary>
254 </indexterm>
255 <indexterm zone="dovecot dovecot-config">
256 <primary sortas="e-etc-dovecot-local.conf">/etc/dovecot/local.conf</primary>
257 </indexterm>
258
259 </sect3>
260
261 <sect3>
262 <title>Configuration Information</title>
263
264 <para>
265 Copy an example configuration, which you can use as a starting point:
266 </para>
267
268<screen role="root"><userinput>cp -rv /usr/share/doc/dovecot-&dovecot-version;/example-config/* /etc/dovecot</userinput></screen>
269
270 <para>
271 The following configuration is a simple proof of concept with IMAP
272 service using local users for authentication and mailbox location.
273 Reading files from the <filename class="directory">conf.d</filename>
274 directory is commented out since the included example configuration
275 requires <application>OpenSSL</application> and
276 <application>Linux PAM</application>.
277 </para>
278
279<screen role="root"><userinput>sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf &amp;&amp;
280chmod -v 1777 /var/mail &amp;&amp;
281cat &gt; /etc/dovecot/local.conf &lt;&lt; "EOF"
282<literal>protocols = imap
283ssl = no
284# The next line is only needed if you have no IPv6 network interfaces
285listen = *
286mail_location = mbox:~/Mail:INBOX=/var/mail/%u
287userdb {
288 driver = passwd
289}
290passdb {
291 driver = shadow
292}</literal>
293EOF</userinput></screen>
294
295 <para>
296 You will definitely want to read the official documentation at <ulink
297 url="http://wiki2.dovecot.org/"/> if you plan to use
298 <application>Dovecot</application> in a production environment.
299 </para>
300
301 </sect3>
302
303 <sect3 id="dovecot-init">
304 <title><phrase revision="sysv">Boot Script</phrase>
305 <phrase revision="systemd">Systemd Unit</phrase></title>
306
307 <para revision="sysv">
308 If you want the <application>Dovecot</application>
309 server to start automatically when the system is booted, install the
310 <filename>/etc/rc.d/init.d/dovecot</filename> init script included in
311 the <xref linkend="bootscripts"/> package.
312 </para>
313
314 <para revision="systemd">
315 To start the <command>dovecot</command>
316 daemon at boot, enable the previously installed systemd unit with the
317 following command:
318 </para>
319
320 <indexterm zone="dovecot dovecot-init">
321 <primary sortas="f-dovecot">dovecot</primary>
322 </indexterm>
323
324<screen role="root" revision="sysv"><userinput>make install-dovecot</userinput></screen>
325
326<screen role="root" revision="systemd"><userinput>systemctl enable dovecot</userinput></screen>
327
328 </sect3>
329
330 </sect2>
331
332 <sect2 role="content">
333 <title>Contents</title>
334
335 <segmentedlist>
336 <segtitle>Installed Programs</segtitle>
337 <segtitle>Installed Libraries</segtitle>
338 <segtitle>Installed Directories</segtitle>
339
340 <seglistitem>
341 <seg>
342 doveadm, doveconf, dovecot, dovecot-sysreport, and dsync (symbolic link)
343 </seg>
344 <seg>
345 various internal plugins in
346 <filename class="directory">/usr/lib/dovecot</filename>
347 </seg>
348 <seg>
349 /etc/dovecot,
350 /usr/{include,lib,libexec,share}/dovecot and
351 /usr/share/doc/dovecot-&dovecot-version;
352 </seg>
353 </seglistitem>
354 </segmentedlist>
355
356 <variablelist>
357 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
358 <?dbfo list-presentation="list"?>
359 <?dbhtml list-presentation="table"?>
360
361 <varlistentry id="doveadm">
362 <term><command>doveadm</command></term>
363 <listitem>
364 <para>
365 is the <application>Dovecot</application> administration tool
366 </para>
367 <indexterm zone="dovecot doveadm">
368 <primary sortas="b-doveadm">doveadm</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="doveconf">
374 <term><command>doveconf</command></term>
375 <listitem>
376 <para>
377 is <application>Dovecot</application>'s configuration dumping
378 utility
379 </para>
380 <indexterm zone="dovecot doveconf">
381 <primary sortas="b-doveconf">doveconf</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="dovecot-prog">
387 <term><command>dovecot</command></term>
388 <listitem>
389 <para>
390 is the IMAP and POP server
391 </para>
392 <indexterm zone="dovecot dovecot-prog">
393 <primary sortas="b-dovecot">dovecot</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="dovecot-sysreport">
399 <term><command>dovecot-sysreport</command></term>
400 <listitem>
401 <para>
402 prints system information that is useful to the Dovecot developers
403 when submitting bug reports upstream
404 </para>
405 <indexterm zone="dovecot dovecot-sysreport">
406 <primary sortas="b-dovecot-sysreport">dovecot-sysreport</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="dsync">
412 <term><command>dsync</command></term>
413 <listitem>
414 <para>
415 is <application>Dovecot</application>'s mailbox synchronization
416 utility
417 </para>
418 <indexterm zone="dovecot dsync">
419 <primary sortas="b-dsync">dsync</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424
425 </variablelist>
426
427 </sect2>
428
429</sect1>
Note: See TracBrowser for help on using the repository browser.