Package: dovecot-core
Version: 1:2.1.7-6
Followup-For: Bug #696817
Control: tags -1 + patch
The breakage is even worse.
1. The code that causes the problem is intended to set the *new*
path to the certificates. Why the f*** does it print $OLD_SSL_CERT ??
2. NEVER EVER touch user confiuration! It even breaks *own* paths set.
3. Why?
4. Why??
5. Why???
Here is a patch that leaves site-local confiuration as it is if it does
not reference the default files and only touches it when it referenced
the old default path before. It even uses the *new* path, sih ... did the
maintainer even test this *once*?
--- dovecot-core.postinst.old 2012-12-28 14:44:40.000000000 +0100
+++ dovecot-core.postinst 2012-12-28 15:17:43.000000000 +0100
@@ -135,11 +135,11 @@ if [ "$1" = "configure" ]; then
echo "in /etc/dovecot/conf.d/10-ssl.conf accordingly."
echo "See /usr/share/doc/dovecot-core/NEWS.Debian.gz for details."
perl -i -nE "
- if (/^\w*?ssl_cert/) {
- say 'ssl_cert = <$OLD_SSL_CERT'
+ if (m|^\w*?ssl_cert\s*=\s*<$OLD_SSL_CERT|) {
+ say 'ssl_cert = <$SSL_CERT'
}
- elsif (/^\w*?ssl_key/) {
- say 'ssl_key = <$OLD_SSL_KEY'
+ elsif (m|^\w*?ssl_key\s*=\s*<$OLD_SSL_KEY|) {
+ say 'ssl_key = <$SSL_KEY'
} else {
print;
}" /etc/dovecot/conf.d/10-ssl.conf
However, the only valid way to handle this is NOT handle it. Or do the
modification
in the ucf template *before* runnin ucf so it is merged into the confi file if
and
*only* if the user chooses to apply the chanes.
-nik
-- Package-specific info:
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh
Versions of packages dovecot-core depends on:
ii adduser 3.113+nmu3
ii libbz2-1.0 1.0.6-4
ii libc6 2.13-37
ii libpam-runtime 1.1.3-7.1
ii libpam0g 1.1.3-7.1
ii libssl1.0.0 1.0.1c-4
ii openssl 1.0.1c-4
ii ucf 3.0025+nmu3
ii zlib1g 1:1.2.7.dfsg-13
dovecot-core recommends no packages.
Versions of packages dovecot-core suggests:
ii dovecot-gssapi 1:2.1.7-6
ii dovecot-imapd 1:2.1.7-6
ii dovecot-ldap 1:2.1.7-6
pn dovecot-lmtpd <none>
ii dovecot-managesieved 1:2.1.7-6
ii dovecot-mysql 1:2.1.7-6
ii dovecot-pgsql 1:2.1.7-6
pn dovecot-pop3d <none>
ii dovecot-sieve 1:2.1.7-6
pn dovecot-solr <none>
ii dovecot-sqlite 1:2.1.7-6
ii ntp 1:4.2.6.p5+dfsg-2
Versions of packages dovecot-core is related to:
ii dovecot-common 1:2.1.7-6
ii dovecot-core [dovecot-common] 1:2.1.7-6
pn dovecot-dbg <none>
pn dovecot-dev <none>
ii dovecot-gssapi 1:2.1.7-6
ii dovecot-imapd 1:2.1.7-6
ii dovecot-ldap 1:2.1.7-6
pn dovecot-lmtpd <none>
ii dovecot-managesieved 1:2.1.7-6
ii dovecot-mysql 1:2.1.7-6
ii dovecot-pgsql 1:2.1.7-6
pn dovecot-pop3d <none>
ii dovecot-sieve 1:2.1.7-6
ii dovecot-sqlite 1:2.1.7-6
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]