Bug#310703: 'dpkg-reconfigure exim4-config' restarts MTA, but with old config

Joris Mooij Joris Mooij <j.mooij@science.ru.nl>, 310703@bugs.debian.org
Wed, 25 May 2005 12:36:07 +0200


Package: exim4-config
Version: 4.50-4
Severity: normal

The command 'dpkg-reconfigure exim4-config' restarts exim4 after asking me for my new 
configuration (it displays "Restarting MTA: exim4"). Looking in the logs and with ps aux, 
I see that a new exim4 process is running. However, it uses the old config from _before_ I 
ran dpkg-reconfigure exim4-config. So effectively, there is a time-delay of exactly one 
configuration, i.e. the configuration that is used by the running exim4 is not the most 
recent but one version older. However, the file /var/lib/exim4/config.autogenerated does
contain the new config. So this is quite confusing if you try to debug your configuration.
Doing an additional invoke-rc.d exim4 restart loads the new config; however since the
'dpkg-reconfigure exim4-config' already does that one would not expect that this is 
necessary.

If I use the other method of configuring (editing /etc/exim4/update-exim4.conf.conf by
hand, then running update-exim4.conf, then issuing invoke-rc.d exim4 restart) the new
config is applied immediately.

I do not know whether this is a bug in exim4 or in exim4-config, but I suspect it is in 
exim4-config.

-- Package-specific info:
Exim version 4.50 #1 built 02-Mar-2005 07:41:23
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
Support for: iconv() IPv6 GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz 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
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='jorismooij.nl'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.planet.nl'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
mailname:jorismooij.nl

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages exim4-config 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  passwd                  1:4.0.3-31sarge5 change and administer password and

-- debconf information:
  exim4/dc_noalias_regenerate: false
* exim4/dc_smarthost: mail.planet.nl
* exim4/dc_relay_domains:
* exim4/dc_relay_nets:
* exim4/mailname: jorismooij.nl
* exim4/dc_local_interfaces:
* exim4/dc_minimaldns: false
  exim4/exim3_upgrade: true
* exim4/dc_other_hostnames: jorismooij.nl
* exim4/dc_eximconfig_configtype: mail sent by smarthost; received via SMTP or fetchmail
* exim4/no_config: true
* exim4/hide_mailname: false
* exim4/dc_postmaster: jorism
  exim4/dc_readhost:
* exim4/use_split_config: false
  exim4/exim4-config-title: