source: server/mail/dovecot.xml@ b74c79f

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since b74c79f was b74c79f, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Package Updates and a security patch

Update to samba-4.16.1
Update to dovecot-2.3.19
Patch Seamonkey against CVE-2022-1802

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