source: server/mail/dovecot.xml@ 85ec85ef

gnome
Last change on this file since 85ec85ef was d555a31, checked in by Christopher Gregory <cjg@…>, 10 years ago

Converted svnserver mariadb postgresql dovecot exim postfix apache bind proftpd vsftpd openldap unbound and xinetd pages to systemd

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/gnome@13415 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 "a3eb1c0b1822c4f2b0fe9247776baa71">
11 <!ENTITY dovecot-size "4.4 MB">
12 <!ENTITY dovecot-buildsize "203 MB">
13 <!ENTITY dovecot-time "1.6 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 &lfs75_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-pam"/>,
82 <xref linkend="openssl"/>,
83 <xref linkend="mitkrb"/> (for GSSAPI support),
84 <xref linkend="linux-pam"/>,
85 <xref linkend="openldap"/>,
86 <xref linkend="postgresql"/>,
87 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
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 --docdir=/usr/share/doc/dovecot-&dovecot-version; \
122 --with-systemdsystemunitdir=/lib/systemd/system \
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-systemdsystemunitdir=/lib/systemd/system</option>: This switch enables
154 enables systemd support and specifies the correct location for the
155 systemd unit file.
156 </para>
157
158 <para>
159 <option>--with-mysql</option>: This switch enables
160 <application>MySQL</application> authentication support.
161 </para>
162
163 <para>
164 <option>--with-sqlite</option>: This switch enables
165 <application>SQLite</application> authentication support.
166 </para>
167
168 <para>
169 <option>--with-lucene</option>: This switch enables
170 <application>CLucene</application> full text search support.
171 </para>
172
173 <para>
174 <option>--with-krb5</option>: This switch enables
175 GSSAPI authentication support.
176 </para>
177
178 </sect2>
179
180 <sect2 role="configuration">
181 <title>Configuring Dovecot</title>
182
183 <sect3 id="dovecot-config">
184 <title>Config Files</title>
185
186 <para>
187 <filename>/etc/dovecot/dovecot.conf</filename>,
188 <filename>/etc/dovecot/conf.d/*</filename>, and
189 <filename>/etc/dovecot/local.conf</filename>
190 </para>
191
192 <indexterm zone="dovecot dovecot-config">
193 <primary sortas="e-etc-dovecot-dovecot.conf">/etc/dovecot/dovecot.conf</primary>
194 </indexterm>
195 <indexterm zone="dovecot dovecot-config">
196 <primary sortas="e-etc-dovecot-conf.d">/etc/dovecot/conf.d/*</primary>
197 </indexterm>
198 <indexterm zone="dovecot dovecot-config">
199 <primary sortas="e-etc-dovecot-local.conf">/etc/dovecot/local.conf</primary>
200 </indexterm>
201
202 </sect3>
203
204 <sect3>
205 <title>Configuration Information</title>
206
207 <para>
208 Copy an example configuration, which you can use as a starting point:
209 </para>
210
211<screen role="root"><userinput>cp -rv /usr/share/doc/dovecot-&dovecot-version;/example-config/* /etc/dovecot</userinput></screen>
212
213 <para>
214 The following configuration is a simple proof of concept with IMAP
215 service using local users for authentication and mailbox location.
216 Reading files from the <filename class="directory">conf.d</filename>
217 directory is commented out since the included example configuration
218 requires <application>OpenSSL</application> and
219 <application>Linux PAM</application>.
220 </para>
221
222<screen role="root"><userinput>sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf &amp;&amp;
223chmod -v 1777 /var/mail &amp;&amp;
224cat &gt; /etc/dovecot/local.conf &lt;&lt; "EOF"
225<literal>protocols = imap
226ssl = no
227# The next line is only needed if you have no IPv6 network interfaces
228listen = *
229mail_location = mbox:~/Mail:INBOX=/var/mail/%u
230userdb {
231 driver = passwd
232}
233passdb {
234 driver = shadow
235}</literal>
236EOF</userinput></screen>
237
238 <para>
239 You will definitely want to read the official documentation at <ulink
240 url="http://wiki2.dovecot.org/"/> if you plan to use
241 <application>Dovecot</application> in production environment.
242 </para>
243
244 </sect3>
245
246 <sect3 id="dovecot-init-systemd">
247 <title>Systemd Unit File</title>
248
249 <para>This package provides a systemd unit file in the source tarball.
250 To enable the systemd unit file run the following
251 command as the <systemitem class="username">root</systemitem>user:
252 </para>
253
254 <indexterm zone="dovecot dovecot-init-systemd">
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>
274 doveadm, doveconf, dovecot, dsync, and various internal programs
275 </seg>
276 <seg>
277 various internal plugins
278 </seg>
279 <seg>
280 /etc/dovecot,
281 /usr/include/dovecot,
282 /usr/lib/dovecot,
283 /usr/libexec/dovecot, and
284 /usr/share/doc/dovecot-&dovecot-version;
285 </seg>
286 </seglistitem>
287 </segmentedlist>
288
289 <variablelist>
290 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
291 <?dbfo list-presentation="list"?>
292 <?dbhtml list-presentation="table"?>
293
294 <varlistentry id="doveadm">
295 <term><command>doveadm</command></term>
296 <listitem>
297 <para>
298 is the <application>Dovecot</application> administration tool.
299 </para>
300 <indexterm zone="dovecot doveadm">
301 <primary sortas="b-doveadm">doveadm</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="doveconf">
307 <term><command>doveconf</command></term>
308 <listitem>
309 <para>
310 is <application>Dovecot</application>'s configuration dumping
311 utility.
312 </para>
313 <indexterm zone="dovecot doveconf">
314 <primary sortas="b-doveconf">doveconf</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="dovecot-prog">
320 <term><command>dovecot</command></term>
321 <listitem>
322 <para>
323 is the IMAP and POP server.
324 </para>
325 <indexterm zone="dovecot dovecot-prog">
326 <primary sortas="b-dovecot">dovecot</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="dsync">
332 <term><command>dsync</command></term>
333 <listitem>
334 <para>
335 is <application>Dovecot</application>'s mailbox synchronization
336 utility.
337 </para>
338 <indexterm zone="dovecot dsync">
339 <primary sortas="b-dsync">dsync</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344
345 </variablelist>
346
347 </sect2>
348
349</sect1>
Note: See TracBrowser for help on using the repository browser.