source: server/mail/dovecot.xml@ 419a60e

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 419a60e was 419a60e, checked in by Igor Živković <igor@…>, 10 years ago

added mariadb

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

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