%general-entities; ]> $LastChangedBy$ $Date$ Dovecot-&dovecot-version; Dovecot Introduction to Dovecot Dovecot is an Internet Message Access Protocol (IMAP) and Post Office Protocol (POP) server, written primarily with security in mind. Dovecot aims to be lightweight, fast and easy to set up as well as highly configurable and easily extensible with plugins. &lfs82_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &dovecot-md5sum; Download size: &dovecot-size; Estimated disk space required: &dovecot-buildsize; Estimated build time: &dovecot-time; Dovecot Dependencies Required Optional , , , , , or MySQL, (for GSSAPI support), , , , , Cassandra, lz4, and stemmer User Notes: Installation of Dovecot There should be dedicated users and groups for unprivileged Dovecot processes and for processing users' logins. Issue the following commands as the root user: groupadd -g 42 dovecot && useradd -c "Dovecot unprivileged user" -d /dev/null -u 42 \ -g dovecot -s /bin/false dovecot && groupadd -g 43 dovenull && useradd -c "Dovecot login user" -d /dev/null -u 43 \ -g dovenull -s /bin/false dovenull Install Dovecot by running the following commands: CFLAGS+="-I/usr/include/tirpc" \ LDFLAGS+="-ltirpc" \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/share/doc/dovecot-&dovecot-version; \ --disable-static && make CFLAGS+="-I/usr/include/tirpc" \ LDFLAGS+="-ltirpc" \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/share/doc/dovecot-&dovecot-version; \ --disable-static \ --with-systemdsystemunitdir=/lib/systemd/system && make To test the results, issue make -k check. An error may be reported if is present when running the test. Now, as the root user: make install Command Explanations CFLAGS+=...LDFLAGS+=...: build with libtirpc instead of the recently removed RPC code provided by GlibC. --with-systemdsystemunitdir=/lib/systemd/system: This switch is used to set the correct installation directory for systemd units. : This switch enables OpenLDAP authentication support. : This switch enables PostgreSQL authentication support. : This switch enables MySQL authentication support. : This switch enables SQLite authentication support. : This switch enables CLucene full text search support. : This switch enables GSSAPI authentication support. Configuring Dovecot Config Files /etc/dovecot/dovecot.conf, /etc/dovecot/conf.d/*, and /etc/dovecot/local.conf /etc/dovecot/dovecot.conf /etc/dovecot/conf.d/* /etc/dovecot/local.conf Configuration Information Copy an example configuration, which you can use as a starting point: cp -rv /usr/share/doc/dovecot-&dovecot-version;/example-config/* /etc/dovecot The following configuration is a simple proof of concept with IMAP service using local users for authentication and mailbox location. Reading files from the conf.d directory is commented out since the included example configuration requires OpenSSL and Linux PAM. sed -i '/^\!include / s/^/#/' /etc/dovecot/dovecot.conf && chmod -v 1777 /var/mail && cat > /etc/dovecot/local.conf << "EOF" protocols = imap ssl = no # The next line is only needed if you have no IPv6 network interfaces listen = * mail_location = mbox:~/Mail:INBOX=/var/mail/%u userdb { driver = passwd } passdb { driver = shadow } EOF You will definitely want to read the official documentation at if you plan to use Dovecot in production environment. <phrase revision="sysv">Boot Script</phrase> <phrase revision="systemd">Systemd Unit</phrase> If you want the Dovecot server to start automatically when the system is booted, install the /etc/rc.d/init.d/dovecot init script included in the package. To start the dovecot daemon at boot, enable the previously installed systemd unit with the following command: dovecot make install-dovecot systemctl enable dovecot Contents Installed Programs Installed Libraries Installed Directories doveadm, doveconf, dovecot, and dsync (symbolic link) various internal plugins in /usr/lib/dovecot /etc/dovecot, /usr/{include,lib,libexec,share}/dovecot and /usr/share/doc/dovecot-&dovecot-version; Short Descriptions doveadm is the Dovecot administration tool. doveadm doveconf is Dovecot's configuration dumping utility. doveconf dovecot is the IMAP and POP server. dovecot dsync is Dovecot's mailbox synchronization utility. dsync