Package: postfix
Version: 2.1.5-9
Severity: normal
Tags: patch

I run postfix as chroot (which is the default setting).
I recently installed mDNS, also known als "Bonjour", or zeroconfig. (It's not 
available as a Debian packages yet).
The later includes a config file /etc/nss_mdns.config which is used by the name 
server switch (nss): e.g. by gethostbyaddr() and gethostbyname().

Since the chrooted postfix can't access this file, I get the following error:

Oct 17 14:17:23 mickey postfix/smtp[11557]: mdns: Couldn't open nss_mdns 
configuration file /etc/nss_mdns.conf, using default.

I simply fixed it by patching the /etc/init.d/postfix startup script to copy 
this file.
The startup script correctly only copies the file if it exists, and does leave 
it alone if it does not.
Below is the patch.

--- /etc/init.d/postfix 2006-10-17 14:51:13.000000000 +0200
+++ /etc/init.d/postfix-nss     2006-10-17 14:50:29.000000000 +0200
@@ -41,7 +41,7 @@
            fi
 
            FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \
-               etc/nsswitch.conf"
+               etc/nsswitch.conf etc/nss_mdns.conf"
            for file in $FILES; do 
                [ -d ${file%/*} ] || mkdir -p ${file%/*}
                if [ -f /${file} ]; then rm -f ${file} && cp /${file} ${file}; 
fi


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (50, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.13
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)

Versions of packages postfix depends on:
ii  adduser               3.63               Add and remove users and groups
ii  debconf [debconf-2.0] 1.4.30.13          Debian configuration management sy
ii  dpkg                  1.10.28            Package maintenance system for Deb
ii  libc6                 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an
ii  libdb4.2              4.2.52-18          Berkeley v4.2 Database Libraries [
ii  libgdbm3              1.8.3-2            GNU dbm database routines (runtime
ii  netbase               4.21               Basic TCP/IP networking system

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to