Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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/
share|improve this answer
    
i found a copy in usr/share/dovecot/ thanks. –  eyadof Mar 26 '12 at 22:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.