source: server/mail/dovecot.xml@ 1258125

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 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 nosym 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 1258125 was 1258125, checked in by DJ Lucas <dj@…>, 8 years ago

[Systemd merge] - Section V

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

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