Control: user [email protected]
Control: usertags -1 bsp-2017-04-ca-montreal
Here is a patch to manage the upgrade of postfix maps from postinst.
I know modifying a user config file is controversial, but here we only do
it for postfix libraries in standard Debian installation path, so I
consider it ok from my point of view. The worst case scenario would be a
sysadmin who'd put its own private library in /usr/lib/postfix/dict_XXX.so
which would have been wrong in the first place since (s)he should have put
it under /usr/local/ instead.
--- postfix.postinst.orig 2017-01-20 23:32:04.000000000 -0500
+++ postfix.postinst 2017-04-14 15:36:29.074921466 -0400
@@ -293,6 +293,10 @@
fi
done < /usr/share/postfix/dynamicmaps.cf > dynamicmaps.cf
chmod 644 dynamicmaps.cf
+# Remove from postfix postinst after stretch
+elif grep -q "/usr/lib/postfix/dict_" dynamicmaps.cf; then
+ echo "Updating /etc/postfix/dynamicmaps.cf from jessie to stretch
pathnames"
+ sed -i "s|/usr/lib/postfix/dict_|postfix-|" dynamicmaps.cf
fi
# Remove from postfix postinst after stretch and uncomment in
postfix-sqlite.postinst