Package: dkimproxy Version: 1.2-6 Severity: normal Tags: patch Hi,
I'm setting up dkimproxy on a fresh system, and it didn't have an fqdn set in /etc/hosts. The current init script for dkimproxy fails in that situation. Here's a small patch to fall back on 'localdomain' and print a warning. Thanks, Corey -- System Information: Debian Release: 5.0.8 APT prefers stable APT policy: (990, 'stable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35.4-x86_64-linode16 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dkimproxy depends on: ii adduser 3.110 add and remove users and groups ii liberror-perl 0.17-1 Perl module for error/exception ha ii libmail-dkim-perl 0.32-1 cryptographically identify the sen ii libnet-server-perl 0.97-1 An extensible, general perl server ii libtext-wrapper-perl 1.02-1 Simple word wrapping routine ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii openssl 0.9.8g-15+lenny11 Secure Socket Layer (SSL) binary a ii perl 5.10.1-17 Larry Wall's Practical Extraction ii ssl-cert 1.0.23 simple debconf wrapper for OpenSSL Versions of packages dkimproxy recommends: ii amavisd-new 1:2.6.4-3 Interface between MTA and virus sc dkimproxy suggests no packages. -- no debconf information
diff -Naur dkimproxy-1.2.orig//debian/init.d dkimproxy-1.2/debian/init.d --- dkimproxy-1.2.orig//debian/init.d 2011-01-30 06:47:37.000000000 +0000 +++ dkimproxy-1.2/debian/init.d 2011-01-30 06:54:20.102025142 +0000 @@ -69,6 +69,10 @@ if [ -z "${DKIM_HOSTNAME}" ] ; then DKIM_HOSTNAME=`hostname -d` fi +if [ -z "${DKIM_HOSTNAME}" ] ; then + echo 'Warning: no domain name from `hostname -d`, using "localdomain".' + DKIM_HOSTNAME=localdomain +fi # Get the host domains dynamically. You can change this to the location where # you have your virtual table here, or best: ehance this script to support more