I have Dovecot 2.0.13 running on Ubuntu Server 11.10.

While installing I configured it for my work requirements. Now I want to reconfigure it again but I don't know how to do that.

I want to restore the default config first then reconfigure it again without re-installing. Is that possible? If so, how?

1 Answer 1


If you didn't make a backup, and you don't want to re-install the dovecot packages, then there isn't an easy way to simply revert your configuration.

You aren't entirely clear about your no reinstall requirement. Do you mean you don't want to reinstall the system or anything at all. You could purge and reinstall the dovecot packages without reinstalling the entire system.

The version of dovecot I am using also leaves a clean copy of the default config files in /usr/share/dovecot/. You could try restoring those files.

Past that, you could just download the .deb files, if they are not in your apt cache (/var/cache/apt/archives/), extract the archive(s) and manually restore the default configuration files, or anything else you changed.

mkdir /tmp/blah ; cd /tmp/blah
ar vx /var/cache/apt/archives/dovecot-common_1%3a1.2.15-7_amd64.deb
tar -xzvf data.tar.gz
# see all the nice default config files from the common package
find etc/
  • i found a copy in usr/share/dovecot/ thanks.
    – eyadof
    Mar 26, 2012 at 22:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .