source: server/mail/dovecot.xml@ 3c7bd00

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

Temporary render fix for bootscripts with REV=systemd.

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

  • Property mode set to 100644
File size: 10.5 KB
RevLine 
[8a8b05e]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 " ">
[ab89095]10 <!ENTITY dovecot-md5sum "91576b3411b436234ca5f63e1bbab60d">
11 <!ENTITY dovecot-size "5.1 MB">
[224c3b2]12 <!ENTITY dovecot-buildsize "286 MB (with tests)">
13 <!ENTITY dovecot-time "2.1 SBU (with tests)">
[8a8b05e]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
[3897cc7]41 &lfs79_checked;
[8a8b05e]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>
[2c5dfc2d]76
[8a8b05e]77 <bridgehead renderas="sect3">Dovecot Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
[3acd0b1]81 <xref linkend="clucene"/>,
[f9f13ae]82 <xref linkend="icu"/>,
[56605b9]83 <xref linkend="libcap-pam"/>,
[8a8b05e]84 <xref linkend="linux-pam"/>,
[3acd0b1]85 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
86 <xref linkend="mitkrb"/> (for GSSAPI support),
[8a8b05e]87 <xref linkend="openldap"/>,
[3acd0b1]88 <xref linkend="openssl"/>,
[8a8b05e]89 <xref linkend="postgresql"/>,
[f9f13ae]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>
[8a8b05e]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
[f9f13ae]123<screen><userinput>./configure --prefix=/usr \
[8a8b05e]124 --sysconfdir=/etc \
125 --localstatedir=/var \
126 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
127 --disable-static &amp;&amp;
128make</userinput></screen>
129
[3acd0b1]130 <para>To test the results, issue <command>make -k check</command>. One test
131 fails for unknown reason</para>
[8a8b05e]132
133 <para>
134 Now, as the <systemitem class="username">root</systemitem> user:
135 </para>
136
137<screen role="root"><userinput>make install</userinput></screen>
138
139 </sect2>
140
141 <sect2 role="commands">
142 <title>Command Explanations</title>
143
144 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
145 href="../../xincludes/static-libraries.xml"/>
146
147 <para>
148 <option>--with-ldap</option>: This switch enables
149 <application>OpenLDAP</application> authentication support.
150 </para>
[2d9f558]151
[8a8b05e]152 <para>
153 <option>--with-pgsql</option>: This switch enables
154 <application>PostgreSQL</application> authentication support.
155 </para>
[2d9f558]156
[8a8b05e]157 <para>
158 <option>--with-mysql</option>: This switch enables
159 <application>MySQL</application> authentication support.
160 </para>
[2d9f558]161
[8a8b05e]162 <para>
163 <option>--with-sqlite</option>: This switch enables
164 <application>SQLite</application> authentication support.
165 </para>
[2d9f558]166
[8a8b05e]167 <para>
168 <option>--with-lucene</option>: This switch enables
169 <application>CLucene</application> full text search support.
170 </para>
[2d9f558]171
172 <para>
173 <option>--with-krb5</option>: This switch enables
174 GSSAPI authentication support.
175 </para>
176
[8a8b05e]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
[2d9f558]226# The next line is only needed if you have no IPv6 network interfaces
227listen = *
[8a8b05e]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>Boot Script</title>
247
248 <para>If you want the <application>Dovecot</application> server to
249 start automatically when the system is booted, install the
250 <filename>/etc/rc.d/init.d/dovecot</filename> init script included
[3c7bd00]251 in the <xref linkend="bootscripts" revision="sysv"/>
252 <xref linkend="systemd-units" revision="systemd"/> package.</para>
[8a8b05e]253
254 <indexterm zone="dovecot dovecot-init">
255 <primary sortas="f-dovecot">dovecot</primary>
256 </indexterm>
257
258<screen role="root"><userinput>make install-dovecot</userinput></screen>
259
260 </sect3>
261
262 </sect2>
263
264 <sect2 role="content">
265 <title>Contents</title>
266
267 <segmentedlist>
268 <segtitle>Installed Programs</segtitle>
269 <segtitle>Installed Libraries</segtitle>
270 <segtitle>Installed Directories</segtitle>
271
272 <seglistitem>
273 <seg>
[676a68ec]274 doveadm, doveconf, dovecot, dsync (symbolic link), and various
275 internal programs
[8a8b05e]276 </seg>
277 <seg>
278 various internal plugins
279 </seg>
280 <seg>
281 /etc/dovecot,
[f9f13ae]282 /usr/{include,lib,libexec,share}/dovecot and
[8a8b05e]283 /usr/share/doc/dovecot-&dovecot-version;
284 </seg>
285 </seglistitem>
286 </segmentedlist>
287
288 <variablelist>
289 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
290 <?dbfo list-presentation="list"?>
291 <?dbhtml list-presentation="table"?>
292
293 <varlistentry id="doveadm">
294 <term><command>doveadm</command></term>
295 <listitem>
296 <para>
297 is the <application>Dovecot</application> administration tool.
298 </para>
299 <indexterm zone="dovecot doveadm">
300 <primary sortas="b-doveadm">doveadm</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="doveconf">
306 <term><command>doveconf</command></term>
307 <listitem>
308 <para>
309 is <application>Dovecot</application>'s configuration dumping
310 utility.
311 </para>
312 <indexterm zone="dovecot doveconf">
313 <primary sortas="b-doveconf">doveconf</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="dovecot-prog">
319 <term><command>dovecot</command></term>
320 <listitem>
321 <para>
322 is the IMAP and POP server.
323 </para>
324 <indexterm zone="dovecot dovecot-prog">
325 <primary sortas="b-dovecot">dovecot</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="dsync">
331 <term><command>dsync</command></term>
332 <listitem>
333 <para>
334 is <application>Dovecot</application>'s mailbox synchronization
335 utility.
336 </para>
337 <indexterm zone="dovecot dsync">
338 <primary sortas="b-dsync">dsync</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343
344 </variablelist>
345
346 </sect2>
347
348</sect1>
Note: See TracBrowser for help on using the repository browser.