source: server/mail/dovecot.xml@ d8aa38f0

systemd-13485
Last change on this file since d8aa38f0 was d8aa38f0, checked in by DJ Lucas <dj@…>, 8 years ago

Missing tags, fix KDE4 filenames

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17145 af4574ff-66df-0310-9fd7-8a98e5e911e0

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