[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 " ">
|
---|
[f9f13ae] | 10 | <!ENTITY dovecot-md5sum "1e42eb3b69544c447ad882d7858f3630">
|
---|
| 11 | <!ENTITY dovecot-size "4.9 MB">
|
---|
| 12 | <!ENTITY dovecot-buildsize "257 MB (additional 14 MB for the tests)">
|
---|
| 13 | <!ENTITY dovecot-time "1.3 SBU (additional 0.4 SBU for the 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 |
|
---|
[f9f13ae] | 41 | &lfs77_built; &gcc5_built;
|
---|
[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>
|
---|
[f9f13ae] | 76 | <!--
|
---|
[2c5dfc2d] | 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>
|
---|
[f9f13ae] | 84 | </itemizedlist>-->
|
---|
[2c5dfc2d] | 85 |
|
---|
[8a8b05e] | 86 | <bridgehead renderas="sect3">Dovecot Dependencies</bridgehead>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 89 | <para role="optional">
|
---|
[3acd0b1] | 90 | <xref linkend="clucene"/>,
|
---|
[f9f13ae] | 91 | <xref linkend="icu"/>,
|
---|
[56605b9] | 92 | <xref linkend="libcap-pam"/>,
|
---|
[8a8b05e] | 93 | <xref linkend="linux-pam"/>,
|
---|
[3acd0b1] | 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"/>,
|
---|
[3acd0b1] | 97 | <xref linkend="openssl"/>,
|
---|
[8a8b05e] | 98 | <xref linkend="postgresql"/>,
|
---|
[f9f13ae] | 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 |
|
---|
[f9f13ae] | 132 | <screen><userinput>./configure --prefix=/usr \
|
---|
[8a8b05e] | 133 | --sysconfdir=/etc \
|
---|
| 134 | --localstatedir=/var \
|
---|
| 135 | --docdir=/usr/share/doc/dovecot-&dovecot-version; \
|
---|
| 136 | --disable-static &&
|
---|
| 137 | make</userinput></screen>
|
---|
| 138 |
|
---|
[3acd0b1] | 139 | <para>To test the results, issue <command>make -k check</command>. One test
|
---|
| 140 | fails for unknown reason</para>
|
---|
[8a8b05e] | 141 |
|
---|
| 142 | <para>
|
---|
| 143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
| 153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 154 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <option>--with-ldap</option>: This switch enables
|
---|
| 158 | <application>OpenLDAP</application> authentication support.
|
---|
| 159 | </para>
|
---|
[2d9f558] | 160 |
|
---|
[8a8b05e] | 161 | <para>
|
---|
| 162 | <option>--with-pgsql</option>: This switch enables
|
---|
| 163 | <application>PostgreSQL</application> authentication support.
|
---|
| 164 | </para>
|
---|
[2d9f558] | 165 |
|
---|
[8a8b05e] | 166 | <para>
|
---|
| 167 | <option>--with-mysql</option>: This switch enables
|
---|
| 168 | <application>MySQL</application> authentication support.
|
---|
| 169 | </para>
|
---|
[2d9f558] | 170 |
|
---|
[8a8b05e] | 171 | <para>
|
---|
| 172 | <option>--with-sqlite</option>: This switch enables
|
---|
| 173 | <application>SQLite</application> authentication support.
|
---|
| 174 | </para>
|
---|
[2d9f558] | 175 |
|
---|
[8a8b05e] | 176 | <para>
|
---|
| 177 | <option>--with-lucene</option>: This switch enables
|
---|
| 178 | <application>CLucene</application> full text search support.
|
---|
| 179 | </para>
|
---|
[2d9f558] | 180 |
|
---|
| 181 | <para>
|
---|
| 182 | <option>--with-krb5</option>: This switch enables
|
---|
| 183 | GSSAPI authentication support.
|
---|
| 184 | </para>
|
---|
| 185 |
|
---|
[8a8b05e] | 186 | </sect2>
|
---|
| 187 |
|
---|
| 188 | <sect2 role="configuration">
|
---|
| 189 | <title>Configuring Dovecot</title>
|
---|
| 190 |
|
---|
| 191 | <sect3 id="dovecot-config">
|
---|
| 192 | <title>Config Files</title>
|
---|
| 193 |
|
---|
| 194 | <para>
|
---|
| 195 | <filename>/etc/dovecot/dovecot.conf</filename>,
|
---|
| 196 | <filename>/etc/dovecot/conf.d/*</filename>, and
|
---|
| 197 | <filename>/etc/dovecot/local.conf</filename>
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
| 200 | <indexterm zone="dovecot dovecot-config">
|
---|
| 201 | <primary sortas="e-etc-dovecot-dovecot.conf">/etc/dovecot/dovecot.conf</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | <indexterm zone="dovecot dovecot-config">
|
---|
| 204 | <primary sortas="e-etc-dovecot-conf.d">/etc/dovecot/conf.d/*</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | <indexterm zone="dovecot dovecot-config">
|
---|
| 207 | <primary sortas="e-etc-dovecot-local.conf">/etc/dovecot/local.conf</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 |
|
---|
| 210 | </sect3>
|
---|
| 211 |
|
---|
| 212 | <sect3>
|
---|
| 213 | <title>Configuration Information</title>
|
---|
| 214 |
|
---|
| 215 | <para>
|
---|
| 216 | Copy an example configuration, which you can use as a starting point:
|
---|
| 217 | </para>
|
---|
| 218 |
|
---|
| 219 | <screen role="root"><userinput>cp -rv /usr/share/doc/dovecot-&dovecot-version;/example-config/* /etc/dovecot</userinput></screen>
|
---|
| 220 |
|
---|
| 221 | <para>
|
---|
| 222 | The following configuration is a simple proof of concept with IMAP
|
---|
| 223 | service using local users for authentication and mailbox location.
|
---|
| 224 | Reading files from the <filename class="directory">conf.d</filename>
|
---|
| 225 | directory is commented out since the included example configuration
|
---|
| 226 | requires <application>OpenSSL</application> and
|
---|
| 227 | <application>Linux PAM</application>.
|
---|
| 228 | </para>
|
---|
| 229 |
|
---|
| 230 | <screen role="root"><userinput>sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf &&
|
---|
| 231 | chmod -v 1777 /var/mail &&
|
---|
| 232 | cat > /etc/dovecot/local.conf << "EOF"
|
---|
| 233 | <literal>protocols = imap
|
---|
| 234 | ssl = no
|
---|
[2d9f558] | 235 | # The next line is only needed if you have no IPv6 network interfaces
|
---|
| 236 | listen = *
|
---|
[8a8b05e] | 237 | mail_location = mbox:~/Mail:INBOX=/var/mail/%u
|
---|
| 238 | userdb {
|
---|
| 239 | driver = passwd
|
---|
| 240 | }
|
---|
| 241 | passdb {
|
---|
| 242 | driver = shadow
|
---|
| 243 | }</literal>
|
---|
| 244 | EOF</userinput></screen>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
| 247 | You will definitely want to read the official documentation at <ulink
|
---|
| 248 | url="http://wiki2.dovecot.org/"/> if you plan to use
|
---|
| 249 | <application>Dovecot</application> in production environment.
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
| 252 | </sect3>
|
---|
| 253 |
|
---|
| 254 | <sect3 id="dovecot-init">
|
---|
| 255 | <title>Boot Script</title>
|
---|
| 256 |
|
---|
| 257 | <para>If you want the <application>Dovecot</application> server to
|
---|
| 258 | start automatically when the system is booted, install the
|
---|
| 259 | <filename>/etc/rc.d/init.d/dovecot</filename> init script included
|
---|
| 260 | in the <xref linkend="bootscripts"/> package.</para>
|
---|
| 261 |
|
---|
| 262 | <indexterm zone="dovecot dovecot-init">
|
---|
| 263 | <primary sortas="f-dovecot">dovecot</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 |
|
---|
| 266 | <screen role="root"><userinput>make install-dovecot</userinput></screen>
|
---|
| 267 |
|
---|
| 268 | </sect3>
|
---|
| 269 |
|
---|
| 270 | </sect2>
|
---|
| 271 |
|
---|
| 272 | <sect2 role="content">
|
---|
| 273 | <title>Contents</title>
|
---|
| 274 |
|
---|
| 275 | <segmentedlist>
|
---|
| 276 | <segtitle>Installed Programs</segtitle>
|
---|
| 277 | <segtitle>Installed Libraries</segtitle>
|
---|
| 278 | <segtitle>Installed Directories</segtitle>
|
---|
| 279 |
|
---|
| 280 | <seglistitem>
|
---|
| 281 | <seg>
|
---|
| 282 | doveadm, doveconf, dovecot, dsync, and various internal programs
|
---|
| 283 | </seg>
|
---|
| 284 | <seg>
|
---|
| 285 | various internal plugins
|
---|
| 286 | </seg>
|
---|
| 287 | <seg>
|
---|
| 288 | /etc/dovecot,
|
---|
[f9f13ae] | 289 | /usr/{include,lib,libexec,share}/dovecot and
|
---|
[8a8b05e] | 290 | /usr/share/doc/dovecot-&dovecot-version;
|
---|
| 291 | </seg>
|
---|
| 292 | </seglistitem>
|
---|
| 293 | </segmentedlist>
|
---|
| 294 |
|
---|
| 295 | <variablelist>
|
---|
| 296 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 297 | <?dbfo list-presentation="list"?>
|
---|
| 298 | <?dbhtml list-presentation="table"?>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="doveadm">
|
---|
| 301 | <term><command>doveadm</command></term>
|
---|
| 302 | <listitem>
|
---|
| 303 | <para>
|
---|
| 304 | is the <application>Dovecot</application> administration tool.
|
---|
| 305 | </para>
|
---|
| 306 | <indexterm zone="dovecot doveadm">
|
---|
| 307 | <primary sortas="b-doveadm">doveadm</primary>
|
---|
| 308 | </indexterm>
|
---|
| 309 | </listitem>
|
---|
| 310 | </varlistentry>
|
---|
| 311 |
|
---|
| 312 | <varlistentry id="doveconf">
|
---|
| 313 | <term><command>doveconf</command></term>
|
---|
| 314 | <listitem>
|
---|
| 315 | <para>
|
---|
| 316 | is <application>Dovecot</application>'s configuration dumping
|
---|
| 317 | utility.
|
---|
| 318 | </para>
|
---|
| 319 | <indexterm zone="dovecot doveconf">
|
---|
| 320 | <primary sortas="b-doveconf">doveconf</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
| 324 |
|
---|
| 325 | <varlistentry id="dovecot-prog">
|
---|
| 326 | <term><command>dovecot</command></term>
|
---|
| 327 | <listitem>
|
---|
| 328 | <para>
|
---|
| 329 | is the IMAP and POP server.
|
---|
| 330 | </para>
|
---|
| 331 | <indexterm zone="dovecot dovecot-prog">
|
---|
| 332 | <primary sortas="b-dovecot">dovecot</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
| 337 | <varlistentry id="dsync">
|
---|
| 338 | <term><command>dsync</command></term>
|
---|
| 339 | <listitem>
|
---|
| 340 | <para>
|
---|
| 341 | is <application>Dovecot</application>'s mailbox synchronization
|
---|
| 342 | utility.
|
---|
| 343 | </para>
|
---|
| 344 | <indexterm zone="dovecot dsync">
|
---|
| 345 | <primary sortas="b-dsync">dsync</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 | </listitem>
|
---|
| 348 | </varlistentry>
|
---|
| 349 |
|
---|
| 350 |
|
---|
| 351 | </variablelist>
|
---|
| 352 |
|
---|
| 353 | </sect2>
|
---|
| 354 |
|
---|
| 355 | </sect1>
|
---|