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