Your message dated Thu, 20 Oct 2016 06:08:07 +0000
with message-id <[email protected]>
and subject line Bug#838251: fixed in postfix 3.1.3-1
has caused the Debian Bug report #838251,
regarding postfix: resolv.conf not updated in chroot by resolvconf
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.)
--
838251: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838251
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postfix
Version: 3.1.0-5+b1
Severity: normal
Tags: patch
Dear Maintainer,
In recent versions of postfix changes to /etc/resolv.conf by resolvconf
are not propagated to the copy in the chroot. This can result in
failed DNS lookups and consequent errors.
The cause appears to be that resolvconf runs its hook scripts with
PATH=/sbin:/bin and the postfix hook script exits after failing to run
service (which is in /usr/sbin) to check the postfix service status.
The attached patch fixes the issue by using the full path to service for
each call. I would suggest also removing 2>&1 from the service calls,
but did not make that change in the attached patch.
Thanks,
Kevin
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.4+kevinoid1 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages postfix depends on:
ii adduser 3.115
ii cpio 2.11+dfsg-5
ii debconf [debconf-2.0] 1.5.59
ii dpkg 1.18.10
ii init-system-helpers 1.44
ii libc6 2.23-5
ii libdb5.3 5.3.28-12
ii libicu57 57.1-4
ii libsasl2-2 2.1.26.dfsg1-15
ii libsqlite3-0 3.14.1-1
ii libssl1.0.2 1.0.2h-1
ii lsb-base 9.20160629
ii netbase 5.3
ii ssl-cert 1.0.38
Versions of packages postfix recommends:
ii python3 3.5.1-4
Versions of packages postfix suggests:
ii bsd-mailx [mail-reader] 8.1.2-0.20160123cvs-3
pn dovecot-common <none>
ii icedove [mail-reader] 1:45.2.0-4+b1
ii libsasl2-modules 2.1.26.dfsg1-15
ii mutt [mail-reader] 1.7.0-1
pn postfix-cdb <none>
pn postfix-doc <none>
pn postfix-ldap <none>
pn postfix-mysql <none>
pn postfix-pcre <none>
pn postfix-pgsql <none>
ii procmail 3.22-25
ii resolvconf 1.79
pn sasl2-bin <none>
pn ufw <none>
-- Configuration Files:
/etc/resolvconf/update-libc.d/postfix changed [not included]
-- debconf information excluded
>From 847cb89c0b40ddde7b50bfc33b1f1422343dbdd0 Mon Sep 17 00:00:00 2001
Message-Id: <847cb89c0b40ddde7b50bfc33b1f1422343dbdd0.1474256222.git.ke...@kevinlocke.name>
From: Kevin Locke <[email protected]>
Date: Sun, 18 Sep 2016 21:34:30 -0600
Subject: [PATCH] Use full path to service in update-libc.d
resolvconf runs its hook scripts with PATH=/sbin:/bin. This causes the
service invocation to fail with "command not found" (with the error
message sent to /dev/null) and the script to unconditionally exit early.
Fix it by using the full path to /usr/sbin/service.
Signed-off-by: Kevin Locke <[email protected]>
---
debian/update-libc.d | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/update-libc.d b/debian/update-libc.d
index 44faba0..80b8f1f 100644
--- a/debian/update-libc.d
+++ b/debian/update-libc.d
@@ -2,12 +2,12 @@
# we only need to copy this in if the service is already running.
# if it's not running, it'll get picked up by the init script on start.
-service postfix status >/dev/null 2>&1 || exit 0
+/usr/sbin/service postfix status >/dev/null 2>&1 || exit 0
QUEUEDIR="$(/usr/sbin/postconf -h queue_directory 2>/dev/null || true)"
if [ -n "$QUEUEDIR" ]; then
cp /etc/resolv.conf ${QUEUEDIR}/etc/resolv.conf
- service postfix reload >/dev/null 2>&1 || exit 0
+ /usr/sbin/service postfix reload >/dev/null 2>&1 || exit 0
fi
exit 0
--
2.9.3
--- End Message ---
--- Begin Message ---
Source: postfix
Source-Version: 3.1.3-1
We believe that the bug you reported is fixed in the latest version of
postfix, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
LaMont Jones <[email protected]> (supplier of updated postfix package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 18 Oct 2016 08:59:42 -0600
Source: postfix
Binary: postfix postfix-ldap postfix-cdb postfix-pcre postfix-mysql
postfix-pgsql postfix-dev postfix-doc
Architecture: source
Version: 3.1.3-1
Distribution: unstable
Urgency: medium
Maintainer: LaMont Jones <[email protected]>
Changed-By: LaMont Jones <[email protected]>
Description:
postfix - High-performance mail transport agent
postfix-cdb - CDB map support for Postfix
postfix-dev - Loadable modules development environment for Postfix
postfix-doc - Documentation for Postfix
postfix-ldap - LDAP map support for Postfix
postfix-mysql - MySQL map support for Postfix
postfix-pcre - PCRE map support for Postfix
postfix-pgsql - PostgreSQL map support for Postfix
Closes: 833103 838251 838528
Changes:
postfix (3.1.3-1) unstable; urgency=medium
.
[Scott Kitterman]
.
* Provide main/master.cf.proto for multi-inst. Closes: #838528
* Only run post 3.0 master.cf fixup if upgrading from version before the
fix. Closes: #833103
* Use full path for call to /usr/sbin/service in update-libc.d so it works
from within the chroot. Closes: #838251
* Treat '-' as an empty instance name to avoid treating single instance
systemd based setups as multi-instance. LP: #1627117
* Refresh patches
* Extend debian/patches/03_ldap3_by_default.diff to also update man 5
ldap_table to document the default LDAP protocol version in Debian (3).
* Build-depend on default-libmysqlclient-dev instead of libmysqlclient-dev
* Make new instance check more like the old one
.
[Wietse Venema]
.
* New upstream.
Checksums-Sha1:
f8b9364e5a0688d11bdd11f9df681e31380bfb69 2551 postfix_3.1.3-1.dsc
0c1d57a929c66fe57e6cd9d25bb7d05fc72363d0 4338730 postfix_3.1.3.orig.tar.gz
9cd2f123288db595f57df75379e6ccbd0eb406a4 181892 postfix_3.1.3-1.debian.tar.xz
Checksums-Sha256:
9d30c210fb362a8356957294f112f707b52562f396b1898c7f6abfec76e102af 2551
postfix_3.1.3-1.dsc
52f8127e6797e2617a36d0afb9473c55e95c3a777b6280df3f106168fd814979 4338730
postfix_3.1.3.orig.tar.gz
bf82b3eb913c61412d30804e6bcc1ea0789a7b95cae73e389f8cafd2f19aeff4 181892
postfix_3.1.3-1.debian.tar.xz
Files:
b40736f6c66bb6f9c6945b158366d02b 2551 mail extra postfix_3.1.3-1.dsc
28a1dedbbbedfcf5fc09fd88bac116b6 4338730 mail extra postfix_3.1.3.orig.tar.gz
dece312bb13bbb6c9623941304fbd22a 181892 mail extra
postfix_3.1.3-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIVAwUBWAacWtVHlGMnADo/AQgwCA//bLe/M8lP7dk8EpNFLzb6bTgkxX8S/v1F
ATdNdM6MK/G7/kEjwRujWNCydmJtvY/okmmIi0JJBxWIXwRjl4JJPh+aE8irbp50
5xYLMPerhMUXucpzLXmBHUIBf5VBg2rt74qwj2bDpPN29fkSRTGZa63kPY44G80k
HH8gqLAwP6cGKX3xnPlSMG2Dee70tYjoPonJ8RfYclqqEanearaL7eKtTJDru1a8
efiqCDQuCeuofL3ykqRBSIY4hX46Xa7T/QWKOffURZ6Q+Mh+uzd8eC07VaFx/ky2
2hPG+7W8gE7u708CS8RWz64WWmfeFBVB+3ltGkuTq2SGUGp8eHDSCjc4k/cEq5lM
KL+BOXzKWy7bCYLui6I3Uva1mav7wwjuEOAlcWONG9wwT2aA7UQvRQr4xZLEEdHg
IZAzZchBxaX1EnrscC4x3mS4dJcpP+IdceTJFAGAacWG1jox1IJzR5Yj9wij7TZy
mSbskpMVu2BqPVedstUXLVf337tDAP6W2l0+JYLyOt25fQFFMipWB+1gAKb3G2gK
5uwFNHSOaEKALVOXX199njTdwR3pBvs1nXA8JKOsFSxhIuGUZIPMfZUtPomAOKeV
akR2IlYvkv5Depe2/dcSZJnra/8PaEZ1+TVm+/09EgNbv6ViEl9qXyPmWGbZjNhI
NUxqFxXsu6g=
=b6NJ
-----END PGP SIGNATURE-----
--- End Message ---