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

version graph

Package: exim4-base; Maintainer for exim4-base is Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>; Source for exim4-base is src:exim4 (PTS, buildd, popcon).

Reported by: Anand Kumria <wildfire@progsoc.org>

Date: Sat, 26 Apr 2008 18:30:01 UTC

Severity: normal

Found in version exim4/4.69-3

Fixed in version exim4/4.69-4

Done: Marc Haber <mh+debian-packages@zugschlus.de>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>:
Bug#478066; Package exim4-base. (full text, mbox, link).


Acknowledgement sent to Anand Kumria <wildfire@progsoc.org>:
New Bug report received and forwarded. Copy sent to Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Anand Kumria <wildfire@progsoc.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /etc/init.d/exim4: update-exim4.conf complains incorrectly
Date: Sat, 26 Apr 2008 19:27:03 +0100
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




Reply sent to Marc Haber <mh+debian-packages@zugschlus.de>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Anand Kumria <wildfire@progsoc.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 478066-close@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: 478066-close@bugs.debian.org
Subject: Bug#478066: fixed in exim4 4.69-4
Date: Sun, 27 Apr 2008 09:02:11 +0000
Source: exim4
Source-Version: 4.69-4

We believe that the bug you reported is fixed in the latest version of
exim4, which is due to be installed in the Debian FTP archive:

exim4-base_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-base_4.69-4_i386.deb
exim4-config_4.69-4_all.deb
  to pool/main/e/exim4/exim4-config_4.69-4_all.deb
exim4-daemon-heavy-dbg_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-daemon-heavy-dbg_4.69-4_i386.deb
exim4-daemon-heavy_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-daemon-heavy_4.69-4_i386.deb
exim4-daemon-light-dbg_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-daemon-light-dbg_4.69-4_i386.deb
exim4-daemon-light_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-daemon-light_4.69-4_i386.deb
exim4-dbg_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-dbg_4.69-4_i386.deb
exim4-dev_4.69-4_i386.deb
  to pool/main/e/exim4/exim4-dev_4.69-4_i386.deb
exim4_4.69-4.diff.gz
  to pool/main/e/exim4/exim4_4.69-4.diff.gz
exim4_4.69-4.dsc
  to pool/main/e/exim4/exim4_4.69-4.dsc
exim4_4.69-4_all.deb
  to pool/main/e/exim4/exim4_4.69-4_all.deb
eximon4_4.69-4_i386.deb
  to pool/main/e/exim4/eximon4_4.69-4_i386.deb



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 478066@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marc Haber <mh+debian-packages@zugschlus.de> (supplier of updated exim4 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 27 Apr 2008 10:06:39 +0200
Source: exim4
Binary: exim4-base exim4-config exim4-daemon-light exim4 exim4-daemon-heavy exim4-daemon-custom eximon4 exim4-dbg exim4-daemon-light-dbg exim4-daemon-heavy-dbg exim4-daemon-custom-dbg exim4-dev
Architecture: source i386 all
Version: 4.69-4
Distribution: unstable
Urgency: low
Maintainer: Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>
Changed-By: Marc Haber <mh+debian-packages@zugschlus.de>
Description: 
 exim4      - meta-package to ease Exim MTA (v4) installation
 exim4-base - support files for all Exim MTA (v4) packages
 exim4-config - configuration for the Exim MTA (v4)
 exim4-daemon-custom - custom Exim MTA (v4) daemon with locally set features
 exim4-daemon-custom-dbg - debugging symbols for the Exim MTA (v4) packages
 exim4-daemon-heavy - Exim MTA (v4) daemon with extended features, including exiscan-ac
 exim4-daemon-heavy-dbg - debugging symbols for the Exim MTA (v4) packages
 exim4-daemon-light - lightweight Exim MTA (v4) daemon
 exim4-daemon-light-dbg - debugging symbols for the Exim MTA (v4) packages
 exim4-dbg  - debugging symbols for the Exim MTA (v4) packages
 exim4-dev  - header files for the Exim MTA (v4) packages
 eximon4    - monitor application for the Exim MTA (v4) (X11 interface)
Closes: 478066
Changes: 
 exim4 (4.69-4) unstable; urgency=low
 .
   * update-exim4.conf: Fix impossible code path in guessed_name check. Ouch.
     Thanks to Anand Kumria. Closes: #478066
   * Regenerating the 2048 bits DH parameters takes too long for slow
     systems, disable (both in the monthly cron job and postinst) and
     document that paranoid people will want to regenerate them manually.
Checksums-Sha1: 
 03566aae6c871ea3c1cd0adc7eeb7f217058f39b 1570 exim4_4.69-4.dsc
 dd087a6d91840708069912567746fb0aebaea432 544959 exim4_4.69-4.diff.gz
 3d3c0e12ffdb59c8a612305ae36ddd869d0fc137 989818 exim4-base_4.69-4_i386.deb
 5bfd46531d6e04478ca67518c2577db777b75f8a 95700 eximon4_4.69-4_i386.deb
 6544be110afca2b56218fb14cd81bf77bf13ade4 411598 exim4-daemon-light_4.69-4_i386.deb
 92f1ef42c9dd39328c3d2de3c3138bfef09cf7c6 462258 exim4-daemon-heavy_4.69-4_i386.deb
 5b354852f949726bbe5029887e66361ea8cdcd38 664918 exim4-daemon-light-dbg_4.69-4_i386.deb
 3de501ab9c83ed46b431bb274337fa4aad93c9b7 748222 exim4-daemon-heavy-dbg_4.69-4_i386.deb
 48e0db2033a82bd487d153fcceaffc1edce48fdd 260522 exim4-dbg_4.69-4_i386.deb
 681902c98a2a46fe5ccfe15f7133085148fddb64 68642 exim4-dev_4.69-4_i386.deb
 3f750d02ed2bff35d3077209ef64177bb1e6ade9 310694 exim4-config_4.69-4_all.deb
 b9d46eaa75f419c154e40ef3f32c8394e65cb99d 6300 exim4_4.69-4_all.deb
Checksums-Sha256: 
 ee2275e17ec80b064fc623f46762b7303b79ae95e08682c252912ab8b8daf9d4 1570 exim4_4.69-4.dsc
 4af70b572cea5daf7caa5b4956b5853ac7d06f75bd2f406799587faf6610b56b 544959 exim4_4.69-4.diff.gz
 ce7b81d241faa66c696fa11d6974b8e43f3befc5ff829eed333213d921e90614 989818 exim4-base_4.69-4_i386.deb
 db0c3df138fb49e413bad0977f6d2dd6f529dd6ad8d6a9957b6dbdb443bea35d 95700 eximon4_4.69-4_i386.deb
 153eb436a8dbbf0f4d130d095fc60b866d8674592a0eedd24a281b9a5307f1f3 411598 exim4-daemon-light_4.69-4_i386.deb
 e03384e4394d0bb47720a70dcbc183873f60aa96ed255c7b66ebd66f36b7dba2 462258 exim4-daemon-heavy_4.69-4_i386.deb
 bdafb50f332ce90c1963bf25ae9817aa770c1ebe3f5aca2158cfe58703c70d00 664918 exim4-daemon-light-dbg_4.69-4_i386.deb
 749ed750887116fa7bd3685bf72f345921f7d476d590e7ecfc8604f63779b3a8 748222 exim4-daemon-heavy-dbg_4.69-4_i386.deb
 7d0cfdc8006b15efca09351774f65a387f48fed01bd5ab9301fa0e5ec1a9e53e 260522 exim4-dbg_4.69-4_i386.deb
 a04d115865167a57557a00c30c3fe727a6f9c67f5038ef7347d249428fe75f8e 68642 exim4-dev_4.69-4_i386.deb
 f897435d4f803db46b375f3efd2e5c4adb29347ba767276d5b8f7bf6e8718fb3 310694 exim4-config_4.69-4_all.deb
 8ffa4ff4fb7c14080face27717c860a098bd541fddaa7e4e56efb5cae11b8a45 6300 exim4_4.69-4_all.deb
Files: 
 b986f26d865805c67ce692491b4a2257 1570 mail standard exim4_4.69-4.dsc
 01417538ddab4c8db264434a8fae9df6 544959 mail standard exim4_4.69-4.diff.gz
 781d3f99c5459a8cc871803f0c9b9f34 989818 mail standard exim4-base_4.69-4_i386.deb
 6d8201febb1cba857efb4c3d91e20eba 95700 mail optional eximon4_4.69-4_i386.deb
 5b0cc87e22a6c3a71694001153872980 411598 mail standard exim4-daemon-light_4.69-4_i386.deb
 0eba1c930f4a195558c3210f3a6afb03 462258 mail optional exim4-daemon-heavy_4.69-4_i386.deb
 364ba62c66c5e7804df18cd0fda29f81 664918 mail extra exim4-daemon-light-dbg_4.69-4_i386.deb
 2a7682b33e5d54806a7977f5537092ba 748222 mail extra exim4-daemon-heavy-dbg_4.69-4_i386.deb
 7c393ccbebbbe29efa2550af0d9b3614 260522 mail extra exim4-dbg_4.69-4_i386.deb
 7b0c6ca79819ab8b6de344b930e36d36 68642 mail extra exim4-dev_4.69-4_i386.deb
 4890dcfe2a9c08c4a0042b1a8bc3c0c6 310694 mail standard exim4-config_4.69-4_all.deb
 25ebef3f060533cd07550de535ef7fe4 6300 mail standard exim4_4.69-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIFDl3gZalRGu6PIQRAlOBAJ9RTULxf6xHCHEz9NrUg5aoIXnNegCfUt8a
PwhH5GpcJMOH3LWOu3be9e4=
=NH5d
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 27 May 2008 07:33:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Oct 26 13:26:36 2025; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.