source: server/mail/dovecot.xml@ 51d044f

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

Remainder of -systemd.xml cleanup.

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

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