source: server/mail/dovecot.xml@ 58d5000

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 58d5000 was 58d5000, checked in by Pierre Labastie <pieere@…>, 7 years ago

Dovecot-2.2.30.2
Unbound-1.6.3
curl-7.54.1
cairo-1.14.10

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18847 af4574ff-66df-0310-9fd7-8a98e5e911e0

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