Bug#478066: /etc/init.d/exim4: update-exim4.conf complains incorrectly

Anand Kumria wildfire at progsoc.org
Sat Apr 26 18:27:03 UTC 2008


Package: exim4-base
Version: 4.69-3
Severity: normal
File: /etc/init.d/exim4

Hi,

eve:[~]% sudo /etc/init.d/exim4 stop
Stopping MTA: exim4_listener.
eve:[~]% sudo /etc/init.d/exim4 start
Starting MTA:hostname --fqdn did not return a fully qualified name, dc_minimaldns will not 
work. Please fix your /etc/hosts setup.
 exim4.
eve:[~]% hostname --fqdn
eve.kumria.com

Obviously, the coding performing the checking is not quite right.

Here is /usr/sbin/update-exim4.conf run using /bin/sh -x

++ hostname --fqdn
++ lowerpipe
++ tr A-Z a-z
++ check_ascii_pipe
+++ cat
++ grep '\.'
++ IN=eve.kumria.com
+++ echo eve.kumria.com
+++ sed 's/[^-0-9a-zA-Z\/\.!*@_~:;< \[\]]/_/g'
++ OUT=eve.kumria.com
++ '[' eve.kumria.com '!=' eve.kumria.com ']'
++ echo eve.kumria.com
+ guessed_name=eve.kumria.com
+ seed_macro MAIN_HARDCODE_PRIMARY_HOSTNAME eve.kumria.com
++ preprocess_macro MAIN_HARDCODE_PRIMARY_HOSTNAME eve.kumria.com
++ macroname=MAIN_HARDCODE_PRIMARY_HOSTNAME
++ shift
+++ lowercase eve.kumria.com
+++ echo eve.kumria.com
+++ lowerpipe
+++ tr A-Z a-z
+++ check_ascii_pipe
++++ cat
+++ IN=eve.kumria.com
++++ echo eve.kumria.com
++++ sed 's/[^-0-9a-zA-Z\/\.!*@_~:;< \[\]]/_/g'
+++ OUT=eve.kumria.com
+++ '[' eve.kumria.com '!=' eve.kumria.com ']'
+++ echo eve.kumria.com
++ contents=eve.kumria.com
++ printf %s '.ifndef
MAIN_HARDCODE_PRIMARY_HOSTNAME\nMAIN_HARDCODE_PRIMARY_HOSTNAME=eve.kumria.com\n.endif\n'
+ UPEX4C_macros='##############################################\n# the
following macro definitions were created\n# dynamically by
/usr/sbin/update-exim4.conf
\n.ifndef
MAIN_LOCAL_INTERFACES\nMAIN_LOCAL_INTERFACES=127.0.0.1\n.endif\n.ifndef
DC_minimaldns\nDC_minimaldns=1\n.endif\n.ifndef
MAIN_HARDCODE_PRIMARY_HOSTNAME\nMAIN_HARDCODE_PRIMARY_HOSTNAME=eve.kumria.com\n.endif\n'
+ echo eve.kumria.com
+ grep -q '\.'
+ errormessage 'hostname --fqdn did not return a fully qualified name,
dc_minimaldns will not work. Please fix your /etc/hosts setup.'
+ echo 'hostname --fqdn did not return a fully qualified name,
dc_minimaldns will not work. Please fix your /etc/hosts setup.'
+ fold -s -w 80

The code has:

if echo $guessed_name | grep -q '\.'; then
  errormessage "hostname --fqdn did not return a fully qualified name, dc_minimaldns will not work. Please fix your /etc/hosts setup."
fi

perhaps it should be;

if echo $guessed_name | grep -v -q '\.'; then

instead?

Thanks,
Anand


-- Package-specific info:
Exim version 4.69 #1 built 26-Apr-2008 00:21:35
Copyright (c) University of Cambridge 2006
Berkeley DB: Berkeley DB 4.6.21: (September 27, 2007)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages exim4-base depends on:
ii  adduser                       3.107      add and remove users and groups
ii  cron                          3.0pl1-104 management of regular background p
ii  debconf [debconf-2.0]         1.5.21     Debian configuration management sy
ii  exim4-config [exim4-config-2] 4.69-3     configuration for the Exim MTA (v4
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-7   Berkeley v4.6 Database Libraries [
ii  lsb-base                      3.2-10     Linux Standard Base 3.2 init scrip
ii  netbase                       4.32       Basic TCP/IP networking system

Versions of packages exim4-base recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20071201cvs-2 A simple mail user agent
ii  mailx              1:20071201-2          Transitional package for mailx ren
ii  psmisc             22.6-1                Utilities that use the proc filesy

-- debconf-show failed





More information about the Pkg-exim4-maintainers mailing list