Your message dated Mon, 22 May 2017 15:14:42 -0400
with message-id <1560664.oax6vRCmgl@kitterma-e6430>
and subject line Re: postfix: dynamicmaps.cf is NOT converted from Postfix 2.9 
format
has caused the Debian Bug report #854860,
regarding postfix: dynamicmaps.cf is NOT converted from Postfix 2.9 format
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
854860: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854860
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postfix
Version: 3.1.3-3
Severity: important

The postfix.postinst script in postfix-3.1.3-3 and later
does NOT convert an old dynamicmaps.cf file because
the commit 629c47c61d22fd9a9825159ff403d2a9043ce676
drops the conversion script.

Please see the following patch. Thank you.

From 98e3e0130ab093cb4340aadf8c7f36fe55fb28a7 Mon Sep 17 00:00:00 2001
From: SATOH Fumiyasu <[email protected]>
Date: Sat, 11 Feb 2017 19:16:17 +0900
Subject: [PATCH] Convert intalled dynamicmaps.cf

Fix a regression in the commit 629c47c61d22fd9a9825159ff403d2a9043ce676
---
 debian/postfix.postinst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/postfix.postinst b/debian/postfix.postinst
index b413a50e..004a26ae 100644
--- a/debian/postfix.postinst
+++ b/debian/postfix.postinst
@@ -293,6 +293,12 @@ if [ ! -f dynamicmaps.cf ]; then
        fi
     done < /usr/share/postfix/dynamicmaps.cf > dynamicmaps.cf
     chmod 644 dynamicmaps.cf
+else
+    if [ -f /var/spool/postfix/dynamicmaps_3.0_transition ]; then
+       echo "Updating dynamicmaps.cf"
+       sed -i '/^tcp[[:space:]]/d; 
s/\/usr\/lib\/postfix\/dict_\([a-z]*\).so/postfix-\1.so.1.0.1/' dynamicmaps.cf
+       rm -f /var/spool/postfix/dynamicmaps_3.0_transition
+    fi
 fi
 
 # Remove from postfix postinst after stretch and uncomment in 
postfix-sqlite.postinst
-- 
2.11.0

-- 
-- Name: SATOH Fumiyasu @ OSS Technology Corp. (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
-- GitHub Home: https://GitHub.com/fumiyas/
-- PGP Fingerprint: BBE1 A1C9 525A 292E 6729  CDEC ADC2 9DCA 5E1C CBCA

--- End Message ---
--- Begin Message ---
On Sat, 11 Feb 2017 19:25:39 +0900 SATOH Fumiyasu <[email protected]> 
wrote:
> Package: postfix
> Version: 3.1.3-3
> Severity: important
> 
> The postfix.postinst script in postfix-3.1.3-3 and later
> does NOT convert an old dynamicmaps.cf file because
> the commit 629c47c61d22fd9a9825159ff403d2a9043ce676
> drops the conversion script.
> 
> Please see the following patch. Thank you.
> 
> From 98e3e0130ab093cb4340aadf8c7f36fe55fb28a7 Mon Sep 17 00:00:00 2001
> From: SATOH Fumiyasu <[email protected]>
> Date: Sat, 11 Feb 2017 19:16:17 +0900
> Subject: [PATCH] Convert intalled dynamicmaps.cf
> 
> Fix a regression in the commit 629c47c61d22fd9a9825159ff403d2a9043ce676
> ---
>  debian/postfix.postinst | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/debian/postfix.postinst b/debian/postfix.postinst
> index b413a50e..004a26ae 100644
> --- a/debian/postfix.postinst
> +++ b/debian/postfix.postinst
> @@ -293,6 +293,12 @@ if [ ! -f dynamicmaps.cf ]; then
>       fi
>      done < /usr/share/postfix/dynamicmaps.cf > dynamicmaps.cf
>      chmod 644 dynamicmaps.cf
> +else
> +    if [ -f /var/spool/postfix/dynamicmaps_3.0_transition ]; then
> +     echo "Updating dynamicmaps.cf"
> +     sed -i '/^tcp[[:space:]]/d; s/\/usr\/lib\/postfix\/dict_\([a-
z]*\).so/postfix-\1.so.1.0.1/' dynamicmaps.cf
> +     rm -f /var/spool/postfix/dynamicmaps_3.0_transition
> +    fi
>  fi
>  
>  # Remove from postfix postinst after stretch and uncomment in postfix-
sqlite.postinst

This is fixed in 3.1.4-5 using a different method (using delmap and addmap 
functions in prerm/postinst).

Scott K

--- End Message ---

Reply via email to