source: server/mail/dovecot.xml@ 1f3af86

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1f3af86 was 1f3af86, checked in by Igor Živković <igor@…>, 10 years ago

update to dovecot-2.2.10

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

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