Upgrading Dovecot 1.2 to 2.1 on Debian Squeeze
Although Dovecot 1.2.15 is the latest Dovecot version in Debian Squeeze stable repository, you can upgrade it safely to 2.1 through backports.
Following the next steps you’ll be able to upgrade Dovecot to 2.1 in 2 minutes:
-Add the backports repository in /etc/apt/sources.list and comment the other repositories:
|
1 2 |
$ echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list $ apt-get update |
-Upgrade Dovecot through apt-get install (all the packages depending on it will be also upgraded) keeping the existing dovecot.conf file
|
1 |
$ apt-get install dovecot-common |
You’ll see some warnings because of the old 1.2 dovecot.conf
-Convert dovecot.conf file to dovecot 2.1 format:
|
1 2 |
$ doveconf -n -c /etc/dovecot/dovecot.conf > /etc/dovecot/dovecot-new.conf $ mv /etc/dovecot/dovecot-new.conf /etc/dovecot/dovecot.conf |
-Restart dovecot
|
1 |
$ /etc/init.d/dovecot restart |
Finally, check if everything is ok in dovecot.log and dovecot-info.log (it should be :))
http://www.debian.org/
http://www.freebsd.org
http://www.xkcd.com
https://www.cdmon.com

