Package: postfix Version: 2.9.6-2 Severity: wishlist Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hello, Using mailman and Postfix (but that would have been the same with any software locally sending mail to Postfix using ::1), I had tons of such warnings: Sep 21 09:37:49 dick postfix/smtpd[18250]: warning: ::1: address not listed for hostname localhost According to the thread [1], this is because the multiple address resolutions for /etc/hosts. This seems not to be the default of libc, but to be enabled in /etc/host.conf anyway in Debian installations. However, that file is not copied to the Postfix chroot… [1] http://postfix.1071664.n5.nabble.com/Issues-with-address-not-listed-for-hostname-td51442.html Here is a very simple patch that adds /etc/host.conf to the list of files that are copied to the chroot. Librement, - -- Tanguy Ortolo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJSPVa/AAoJEOryzVHFAGgZHeQP/1obuhF4zFJbidvrQSRfq1Ko UyCVU7jY2P1R8tBVWn9NfMV7njJcwe8RbojmEYVU+SF9XGkpROLBBsbRe196VqUn Xfw2/H6iu1zIiNwNltbjuXxFuL0PuB/7u+j2w9cDE5uLOrlY3Q8GAmSwpAzz7Zlv FPaA8/buxzQYlxs+xakhKxukAhvqYIZk5TKzOfjc9Whmg/LyjyLp4wM19+P9wCbM PejYjqI/QYKvRknimo3yfp+dvgTsLOJN6LAROhXZOqXx3cRYf83mEOLNoWiSCnTu Bw3Jl3h3KkRFnfWZ2pC7NhROr+bTrJz6IERA7raQ4fq7LFujYSqVfUmNIw6SEr0p OBoPJTk/sNc3CrzIajRLJGuRYU36kZ40De4K0iyRNP3pXPRNLI16P99VposWIXnD JfelzDmOqcj+JU7V0WQjk6xYAooYjmSr9EzfkNLPiFpegG1Fjh3uY2CDezGfVB1X kY+Ypt3rIlkgGLuYVc0MHtl0vrmjY6w19JFSzMAFukqYsy68ZdtrJMVbHNenUt77 /KXNtUPJlvFyAIjdShjNl5w8YjT1x0INHJ6oT8xWxQ8Xm57926T5ywrx7MkO2aMT q6To0A1LsfVHUYIyB7mUhRArEufjKPPqAokC9X6m7Lx6/eTV1CfXR1QIWDsRt5Lm 1zIi94AfDhlio3leajAX =cRIE -----END PGP SIGNATURE-----
>From a34aaab01588853e13087f734507278828c718ac Mon Sep 17 00:00:00 2001 From: Tanguy Ortolo <tan...@ortolo.eu> Date: Sat, 21 Sep 2013 10:03:46 +0200 Subject: [PATCH] Init script: also copy /etc/host.conf to the chroot MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------true" This is a multi-part message in MIME format. --------------true Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- debian/init.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------true Content-Type: text/x-patch; name="0001-Init-script-also-copy-etc-host.conf-to-the-chroot.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Init-script-also-copy-etc-host.conf-to-the-chroot.patch" diff --git a/debian/init.d b/debian/init.d index 04669db..837d7ac 100644 --- a/debian/init.d +++ b/debian/init.d @@ -94,7 +94,7 @@ case "$1" in fi FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \ - etc/nsswitch.conf etc/nss_mdns.config" + etc/nsswitch.conf etc/nss_mdns.config etc/host.conf" for file in $FILES; do [ -d ${file%/*} ] || mkdir -p ${file%/*} if [ -f /${file} ]; then rm -f ${file} && cp /${file} ${file}; fi --------------true--