如何恢复dovecot的默认configuration

我有在Ubuntu服务器11.10上运行的Dovecot 2.0.13。

安装时,我configuration了我的工作要求。 现在我想重新configuration它,但我不知道该怎么做。

我想先恢复默认的configuration,然后再次重新configuration,而无需重新安装。 那可能吗? 如果是这样,怎么样?

如果您没有备份,并且您不想重新安装dovecot软件包,那么简单地恢复您的configuration并不是一个简单的方法。

你不完全清楚你的没有重新安装的要求。 你的意思是你不想重装系统或任何东西。 您可以清除并重新安装dovecot包,而无需重新安装整个系统。

我正在使用的dovecot版本还在/usr/share/dovecot/了默认configuration文件的副本。 你可以尝试恢复这些文件。

过去,只要下载.deb文件,如果它们不在你的apt cache中(/var/cache/apt/archives/) ,解压缩文件并手动恢复默认configuration文件,或者其他任何你改变。

 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/