This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 103 and 105 (spanning 2 versions)
Revision 103 as of 2012-09-09 11:55:09
Size: 13252
Editor: stgt-5f73ccd4
Comment: update versions as available in ubuntu server
Revision 105 as of 2012-11-23 10:37:46
Size: 13328
Editor: mail
Comment: Link is outdated
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
apt-get install dovecot-imapd dovecot-pop3 apt-get install dovecot-imapd dovecot-pop3d
Line 64: Line 64:
For the latest Dovecot for latest Ubuntu LTS see [[|Xiaoka APT Repository]]. For the latest Dovecot for latest Ubuntu LTS see [[|Xiaoka APT Repository]]. (Outdated. Could someone provide a ppa for latest stable Dovecot, please?)

Installing Prebuilt Binaries

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


apt-get install dovecot-imapd dovecot-pop3d

Beginning with squeeze Debian uses a modular approach to distribute dovecot (similar to the way postfix is distributed). Seperate packages are available for GSSAPI authentication (dovecot-gssapi), LDAP support (dovecot-ldap), LMTP server (dovecot-lmtpd), ManageSieve server (dovecot-managesieved), MySQL support (dovecot-mysql), PostgreSQL support (dovecot-pgsql), sieve filters support (dovecot-sieve), solr full text search support (dovecot-solr) and SQLite support (dovecot-sqlite). The basic functionalities are in dovecot-common (with 2.1 dovecot-core). The IMAP or POP3 server are packaged as dovecot-imapd and dovecot-pop3, respectively. With dovecot-dev are the header files available and dovecot-dbg contains debug symbols.

For stable you can get newer versions from (currently 2.1.7-2~bpo60+1 in squeeze-backports instead of 1.2.15-7 in squeeze). Follow the instructions from and then run the above apt-get install command.

Automatically Built Packages

For those of you who like to live on the edge, there are Debian repositories available with hourly updates from recent Dovecot v2.0/v2.1/v2.2 changes in the Mercurial repositories. The builder scripts automatically release a new set of Debian packages when they notice any changes in any of the v2.0,v2.1 or v2.2 repositories. The packages have Pigeonhole Sieve and ManageSieve included. Currently, only binaries for the i386 and amd64 architectures are provided for the Debian oldstable, stable and testing releases. Source packages are available to build the packages for other architectures and (possibly) for other Debian releases. These packages are directly based on the latest official Debian packages for Dovecot, but some of the small Debian-specific patches that are part of the official packages are currently not included. Usage should be similar to the repository (see explanation above), but the lines added to /etc/apt/sources.list are different and the keyring package has a different name (see below).

Needless to say: do NOT use these repositories for systems that need to be STABLE.

For Dovecot v2.1 and Debian testing (Wheezy) the following line needs to be added to your /etc/apt/sources.list:

deb testing-auto/dovecot-2.1 main

And if you would like to get the source packages, you should add:

deb-src testing-auto/dovecot-2.1 main

Substitute testing with stable or oldstable in the lines above if you are running Debian stable (Squeeze) or Debian oldstable (Lenny) respectively. Substitute 2.1 with 2.0 or 2.1 if you want to use the Dovecot v2.0 or Dovecot v2.2 packages respectively.

If you want apt to verify the downloaded packages, you can import the automatic archive’s key into apt:

apt-get install debian-dovecot-auto-keyring


wget -O - | apt-key add -

For questions, comments and requests, you can send an e-mail to Stephan Bosch (stephan at rename-it dot nl).


apt-get install dovecot-imapd dovecot-pop3d

Ubuntu version and name

Package name

Dovecot version

OS release date

Supported until

5.10 Breezy Badger





6.06 LTS Dapper Drake


1.0 beta 3



7.10 Gutsy Gibbon





8.04 LTS Hardy Heron





8.10 Intrepix Ibex





9.04 Jaunty Jackalope





9.10 Karmic Koala





10.04 LTS Lucid Lynx





10.10 Maverick Meerkat





11.04 Natty Narwhal





11.10 Oneiric Ocelot





12.04 LTS Precise Pangolin





These packages including the Dovecot Sieve Plugin and all other nice features.

For the latest Dovecot for latest Ubuntu LTS see Xiaoka APT Repository. (Outdated. Could someone provide a ppa for latest stable Dovecot, please?)

For Ubuntu builds of the automatically built Debian packages (explained above), you can use repositories from the OpenSUSE build service: v1.2/v2.0/v2.1. These repositories are updated on a daily basis. Keep in mind: do NOT use these repositories for systems that need to be STABLE.

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

Fedora includes dovecot since its first release, RHEL since RHEL4. The versions included in the still supported releases are







Fedora Testing (Rawhide)


Fedora 14 Laughlin


Fedora 13 Goddard


Fedora 12 Constantine


Fedora 11 Leonidas


Fedora 10 Cambridge


Fedora 9 Sulphur


Fedora 8 Werewolf


For historical reference these were the versions found in older Fedora releases until they reached their EOL:

Fedora 7


Fedora Core 6

dovecot-1.0.1-4.fc6 (1.0.1)

Fedora Core 5

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

Fedora Core 4


Fedora Core 3


Fedora Core 2


Fedora Core 1


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 newer Dovecot and Sieve packages

You can get the latest stable dovecot package and the package for the sieve plugin from under and The RHEL packages will also work with CentOS/Scientific Linux and any other RHEL clone.

Building your own rpms

There are situations where the supplied packages don't suit your needs, for example when there is a patch you want to add, or perhaps the packages have not yet updated to the latest versions as fast as you need them.

Note that the following only discusses plain rebuilds of a src.rpm. The true work is in modifying the src.rpm which is out of the scope of this wiki. Use standard rpm procedures to extract the contents of the src.rpm, edit the specfile, add patches, update sources etc. The following will assume you have crafted a src.rpm similar to the one at ATrpms'.

If you want to rebuild the rpms using ATrpms' src.rpm or a derivative, use this command:

# rpmbuild --rebuild dovecot-*.src.rpm

This works on Fedora Core w/o any further modifications.

If you are on a platform with an rpm version older that 4.4 (for example RHEL4 and RHEL3) then create the following file (or add the contents to /etc/rpm/macros or ~/.rpmmacros)

  • /etc/rpm/macros.bcond

# /etc/rpm/macros.bcond
# macros used in rpm 4.4, not available in previous versions
%bcond_with()           %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%bcond_without()        %{expand:%%{!?_without_%{1}:%%global without_%{1} 1}}
%with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%without()      %{expand:%%{?without_%{1}:0}%%{!?without_%{1}:1}}

There are also special switches for older platforms:

--without inotify   Don't try to use inotify
--with forcequota2  For the use of quota version 2 (if otherwise wrongly detected)

For example on RHEL4 you need

# rpmbuild --rebuild --without inotify --with forcequota2 dovecot-*.src.rpm

For RHEL3 you only need (on RHEL3 quota headers are not broken)

# rpmbuild --rebuild --without inotify dovecot-*.src.rpm


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 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/
sed -i -e 's|ssl_disable = .*|ssl_disable = no|' /etc/dovecot/dovecot.conf
rcdovecot restart

There are also up-to-date Dovecot 1.2 and 2.0 binary packages for various versions available in the Server:Mail repository. These are not officially supported, but maintained by the same folks.


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


Use the OpenBSD Package system. For background information see thePackages and Ports FAQ.

Set your PKG_PATH by running the followind command, (or you can add it to your .profile to have this permanently after you re-login.

# export PKG_PATH=ftp://your.ftp.mirror/pub/OpenBSD/`uname -r`/packages/`uname -m`/

Install the package using pkg_add, as root, with the -i option to allow you to choose which version of the package you want. Here's a case where I chose the later of the two postgresql ports that were available on my repository, and this caused the packages system to prompt me for a choice on the postgresql client dependency.

# pkg_add -i dovecot

To have dovecot run automatically upon restart, add it to the pkg_scripts variable in /etc/rc.conf.local. See rc.d(8) for more details.

pkg_scripts="[...] dovecot [...]"

Follow the advice about adding the lines to /etc/rc.local. Sieve mail filtering can be added by installing dovecot-pigeonhole, also available in the OpenBSD packages and ports.

NetBSD and DragonFly

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

Mac OS X MacPorts

sudo port install dovecot

Mandriva 2007.0 and 2007.1

Install with rpm or urpmi.

urpmi dovecot

The Mandriva default locations where executables, doc etc. are installed, are sometimes different from other platforms. The default rpm (created from the source rpm as described in the 'Compiling Dovecot from sources' chapter) uses the following locations:

/usr/lib/dovecot/ to store executable files (imap-login, imap, etc.)
/usr/sbin/ for dovecot and dovecotpw
/usr/share/dovecot/ for .la and .lo files
/usr/share/dovecot/pop3/ hold symlinks to the files one level up
/usr/share/doc/dovecot-1.0.rc14/ to store template .conf, .cnf, .pl, README, etc. files
/etc to store the live dovecot.conf
/etc/ssl/dovecot/[certs,private]/ to store the OpenSSL certificate and key

Arch Linux

pacman -Sy extra/dovecot

Also see


For Solaris 8 - 10: Install pkg-get from, adjust /opt/csw/etc/pkg-get.conf with a mirror nearby, and run

pkg-get -U
pkg-get -i dovecot

The CMU Sieve plugin is also available

pkg-get -i dovecot_sieve

None: PrebuiltBinaries (last edited 2019-04-12 11:09:27 by JinnKo)