source: server/mail/dovecot.xml@ 6c1d0776

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 6c1d0776 was 6c1d0776, checked in by DJ Lucas <dj@…>, 7 years ago

Fix build issue for Dovecot.

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

  • Property mode set to 100644
File size: 12.1 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 "2f93f07912a4ea91611b071dc9be4cd1">
11 <!ENTITY dovecot-size "5.7 MB">
12 <!ENTITY dovecot-buildsize "328 MB (add 66 MB for tests)">
13 <!ENTITY dovecot-time "2.0 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 &lfs81_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>CFLAGS+="-I/usr/include/tirpc" \
124LDFLAGS+="-ltirpc" \
125./configure --prefix=/usr \
126 --sysconfdir=/etc \
127 --localstatedir=/var \
128 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
129 --disable-static &amp;&amp;
130make</userinput></screen>
131
132<screen revision="systemd"><userinput>CFLAGS+="-I/usr/include/tirpc" \
133LDFLAGS+="-ltirpc" \
134./configure --prefix=/usr \
135 --sysconfdir=/etc \
136 --localstatedir=/var \
137 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
138 --disable-static \
139 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
140make</userinput></screen>
141
142 <para>
143 To test the results, issue <command>make -k check</command>.
144<!-- no errors with 2.2.30.2
145 Tests using
146 openssl fail when valgrind is present, because openssl increases entropy
147 by reading uninitialized variables. see <ulink
148 url="https://www.openssl.org/docs/faq.html#PROG14">openssl's FAQ</ulink>.
149--> </para>
150
151 <para>
152 Now, as the <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>make install</userinput></screen>
156
157 </sect2>
158
159 <sect2 role="commands">
160 <title>Command Explanations</title>
161
162 <para><command>CFLAGS+=...LDFLAGS+=...</command>: build with libtirpc
163 instead of the recently removed RPC code provided by GlibC.</para>
164
165 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
166 href="../../xincludes/static-libraries.xml"/>
167
168 <para revision="systemd">
169 <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
170 This switch is used to set the correct installation directory for
171 systemd units.
172 </para>
173
174 <para>
175 <option>--with-ldap</option>: This switch enables
176 <application>OpenLDAP</application> authentication support.
177 </para>
178
179 <para>
180 <option>--with-pgsql</option>: This switch enables
181 <application>PostgreSQL</application> authentication support.
182 </para>
183
184 <para>
185 <option>--with-mysql</option>: This switch enables
186 <application>MySQL</application> authentication support.
187 </para>
188
189 <para>
190 <option>--with-sqlite</option>: This switch enables
191 <application>SQLite</application> authentication support.
192 </para>
193
194 <para>
195 <option>--with-lucene</option>: This switch enables
196 <application>CLucene</application> full text search support.
197 </para>
198
199 <para>
200 <option>--with-krb5</option>: This switch enables
201 GSSAPI authentication support.
202 </para>
203
204 </sect2>
205
206 <sect2 role="configuration">
207 <title>Configuring Dovecot</title>
208
209 <sect3 id="dovecot-config">
210 <title>Config Files</title>
211
212 <para>
213 <filename>/etc/dovecot/dovecot.conf</filename>,
214 <filename>/etc/dovecot/conf.d/*</filename>, and
215 <filename>/etc/dovecot/local.conf</filename>
216 </para>
217
218 <indexterm zone="dovecot dovecot-config">
219 <primary sortas="e-etc-dovecot-dovecot.conf">/etc/dovecot/dovecot.conf</primary>
220 </indexterm>
221 <indexterm zone="dovecot dovecot-config">
222 <primary sortas="e-etc-dovecot-conf.d">/etc/dovecot/conf.d/*</primary>
223 </indexterm>
224 <indexterm zone="dovecot dovecot-config">
225 <primary sortas="e-etc-dovecot-local.conf">/etc/dovecot/local.conf</primary>
226 </indexterm>
227
228 </sect3>
229
230 <sect3>
231 <title>Configuration Information</title>
232
233 <para>
234 Copy an example configuration, which you can use as a starting point:
235 </para>
236
237<screen role="root"><userinput>cp -rv /usr/share/doc/dovecot-&dovecot-version;/example-config/* /etc/dovecot</userinput></screen>
238
239 <para>
240 The following configuration is a simple proof of concept with IMAP
241 service using local users for authentication and mailbox location.
242 Reading files from the <filename class="directory">conf.d</filename>
243 directory is commented out since the included example configuration
244 requires <application>OpenSSL</application> and
245 <application>Linux PAM</application>.
246 </para>
247
248<screen role="root"><userinput>sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf &amp;&amp;
249chmod -v 1777 /var/mail &amp;&amp;
250cat &gt; /etc/dovecot/local.conf &lt;&lt; "EOF"
251<literal>protocols = imap
252ssl = no
253# The next line is only needed if you have no IPv6 network interfaces
254listen = *
255mail_location = mbox:~/Mail:INBOX=/var/mail/%u
256userdb {
257 driver = passwd
258}
259passdb {
260 driver = shadow
261}</literal>
262EOF</userinput></screen>
263
264 <para>
265 You will definitely want to read the official documentation at <ulink
266 url="http://wiki2.dovecot.org/"/> if you plan to use
267 <application>Dovecot</application> in production environment.
268 </para>
269
270 </sect3>
271
272 <sect3 id="dovecot-init">
273 <title><phrase revision="sysv">Boot Script</phrase>
274 <phrase revision="systemd">Systemd Unit</phrase></title>
275
276 <para revision="sysv">If you want the <application>Dovecot</application>
277 server to start automatically when the system is booted, install the
278 <filename>/etc/rc.d/init.d/dovecot</filename> init script included in the
279 <xref linkend="bootscripts"/> package.</para>
280
281 <para revision="systemd">To start the <command>dovecot</command>
282 daemon at boot, enable the previously installed systemd unit with the
283 following command:</para>
284
285 <indexterm zone="dovecot dovecot-init">
286 <primary sortas="f-dovecot">dovecot</primary>
287 </indexterm>
288
289<screen role="root" revision="sysv"><userinput>make install-dovecot</userinput></screen>
290
291<screen role="root" revision="systemd"><userinput>systemctl enable dovecot</userinput></screen>
292
293 </sect3>
294
295 </sect2>
296
297 <sect2 role="content">
298 <title>Contents</title>
299
300 <segmentedlist>
301 <segtitle>Installed Programs</segtitle>
302 <segtitle>Installed Libraries</segtitle>
303 <segtitle>Installed Directories</segtitle>
304
305 <seglistitem>
306 <seg>
307 doveadm, doveconf, dovecot, and dsync (symbolic link)
308 </seg>
309 <seg>
310 various internal plugins in <filename
311 class="directory">/usr/lib/dovecot</filename>
312 </seg>
313 <seg>
314 /etc/dovecot,
315 /usr/{include,lib,libexec,share}/dovecot and
316 /usr/share/doc/dovecot-&dovecot-version;
317 </seg>
318 </seglistitem>
319 </segmentedlist>
320
321 <variablelist>
322 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
323 <?dbfo list-presentation="list"?>
324 <?dbhtml list-presentation="table"?>
325
326 <varlistentry id="doveadm">
327 <term><command>doveadm</command></term>
328 <listitem>
329 <para>
330 is the <application>Dovecot</application> administration tool.
331 </para>
332 <indexterm zone="dovecot doveadm">
333 <primary sortas="b-doveadm">doveadm</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="doveconf">
339 <term><command>doveconf</command></term>
340 <listitem>
341 <para>
342 is <application>Dovecot</application>'s configuration dumping
343 utility.
344 </para>
345 <indexterm zone="dovecot doveconf">
346 <primary sortas="b-doveconf">doveconf</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="dovecot-prog">
352 <term><command>dovecot</command></term>
353 <listitem>
354 <para>
355 is the IMAP and POP server.
356 </para>
357 <indexterm zone="dovecot dovecot-prog">
358 <primary sortas="b-dovecot">dovecot</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="dsync">
364 <term><command>dsync</command></term>
365 <listitem>
366 <para>
367 is <application>Dovecot</application>'s mailbox synchronization
368 utility.
369 </para>
370 <indexterm zone="dovecot dsync">
371 <primary sortas="b-dsync">dsync</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376
377 </variablelist>
378
379 </sect2>
380
381</sect1>
Note: See TracBrowser for help on using the repository browser.