source: server/mail/dovecot.xml@ 411857f9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 411857f9 was 94b42903, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Archive openssl-1.1.x. Moved to LFS.
Update to v4l-utils-1.14.2.
Update to vlc-3.0.0.

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

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