This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

Installing Prebuilt Binaries

In binary packages the configuration file is typically in /etc/dovecot.conf.

TableOfContents

Debian

apt-get install dovecot-imapd dovecot-pop3d 

For sarge you can get newer versions from [http://www.backports.org backports.org].

Fedora Core and RHEL (and CentOS/Scientific Linux/...)

Fedora Core includes dovecot since the first release, RHEL since RHEL4. Up to FC5 and RHEL4 the versions included are

RHEL4

dovecot-0.99.11-2.EL4.1

Fedora Core 6

dovecot-1.0-0.beta8.2 (1.0.beta8)

Fedora Core 5

dovecot-1.0-0.beta8.2.fc5 (1.0.beta8)

Fedora Core 4

dovecot-0.99.14-8.fc4

Fedora Core 3

dovecot-0.99.14-2.FC3

Fedora Core 2

dovecot-0.99.13-4.FC2

Fedora Core 1

dovecot-0.99.10.5-0.FC1

Doing a fresh install of Fedora Core 2 and later, Dovecot will be installed as the default IMAP server. If you're upgrading from Fedora Core 1, see /FedoraUpgrade.

If you don't have Dovecot already installed, use:

yum install dovecot 

(replace yum with smart/apt/up2date if that's your depsolver)

To start the dovecot daemon and ensure it starts with each system boot run

service dovecot start
chkconfig dovecot on 

=== RPMs of 1.0 rc versions ==

You can get 1.0rc versions from [http://ATrpms.net/ ATrpms.net] under http://ATrpms.net/name/dovecot/ (packages are in the bleeding section), and

Building your own rpms

If you want to rebuild the rpms using ATrpms' src.rpm, use this command (example for RHEL4/CentOS4):

# rpmbuild --rebuild --define 'atrelease() %1.el4.at' dovecot-1.0-0_10.99.beta7.el4.at.src.rpm

SUSE

Dovecot ships with SUSE for quite some time. Upto 10.0 SUSE shipped with 0.99.xx. SUSE 10.1 will have 1.0-beta3, including [:LDA:LDA support].

yast -i dovecot
chkconfig dovecot on
rcdovecot start 

By default ssl disabled. so you need to create an SSL certificitate and than enable it in the dovecot config. For your private server you can do:

cd /usr/share/doc/packages/dovecot/
sh mkcert.sh
sed -i -e 's|ssl_disable = .*|ssl_disable = no|' /etc/dovecot/dovecot.conf
rcdovecot restart 

FreeBSD

cd /usr/ports/mail/dovecot; make install 

OpenBSD

cd /usr/ports/mail/dovecot; make install 

NetBSD and DragonFly

cd /usr/pkgsrc/mail/dovecot; make install 

Mac OS X Darwinports

port install dovecot