Bug#481597: dpkg-reconfigure exim4-config does not recognize changed hostname

Andrew Vaughan ajv-lists at netspace.net.au
Sat May 17 09:34:22 UTC 2008


Package: exim4-config
Version: 4.63-17
Severity: important

Hi

I changed the hostname on my home server.  I changed /etc/hostname and /etc/mailname, 
rebooted and ran dpkg-reconfigure exim4-config thinking that that should be enough to 
get exim configured for the new hostname.  

3 days later I realised that local mail from cron wasn't getting delivered.  (I later 
discovered that warning messages from exim about delayed mail were also stuck).  Exim 
was trying to send mail addressed to the new hostname via my isps smarthost.  (I have 
verified that the mail from cron and exim was addressed to root at p2.)

A snippet from /var/log/exim4/mainlog (note p2 is the new hostname) (manually wrapped).

2008-05-17 17:19:23 1JxFvd-0000xS-Th <= root at p2 U=root P=local S=2647
2008-05-17 17:19:24 1JxFvd-0000xS-Th == root at p2 R=smarthost T=remote_smtp_smarthost defer 
(-44): SMTP error from remote mail server after RCPT TO:<root at p2> : host mail.netspace.net.au 
[203.10.110.70]: 450 <root at p2>: Recipient address rejected: Domain not found
2008-05-17 17:23:07 Start queue run: pid=3927
2008-05-17 17:23:07 1JxFvd-0000xS-Th == root at p2 routing defer (-51): retry time not reached
2008-05-17 17:23:07 1Jx8Oz-0003Mh-Jn == root at p2 routing defer (-51): retry time not reached
2008-05-17 17:23:07 1JwtS6-0002gq-D7 == root at p2 routing defer (-51): retry time not reached


I have worked around this by adding the new hostname to debconf question 5
  Please enter a semicolon-separated list of recipient domains for which this machine 
  should consider itself the final destination, apart from the local hostname 
  (andrew-p2.home.lan) and "localhost".  These domains are commonly called "local domains". 
  
  Leaving this list blank will have Exim do no local deliveries.                                               
  ...

Notice that despite being re-configured and rebooted since /etc/hostname and /etc/mailname
were changed, exim4-config still has the old hostname in this question.  (It is correct in
debconf question 3).


Thanks for your work in Debian.

Andrew V.

-- Package-specific info:
Exim version 4.63 #1 built 20-Jan-2007 10:40:39
Copyright (c) University of Cambridge 2006
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
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
Size of off_t: 8
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='p2'
dc_local_interfaces='127.0.0.1'
dc_readhost='netspace.net.au'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.netspace.net.au'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
mailname:p2

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages exim4-config depends on:
ii  adduser                      3.102       Add and remove users and groups
ii  debconf [debconf-2.0]        1.5.11etch1 Debian configuration management sy

exim4-config recommends no packages.

-- debconf information:
  exim4/dc_noalias_regenerate: false
* exim4/dc_smarthost: mail.netspace.net.au
  exim4/dc_relay_domains:
* exim4/dc_relay_nets:
* exim4/mailname: p2
* exim4/dc_localdelivery: Maildir format in home directory
* exim4/dc_local_interfaces: 127.0.0.1
* exim4/dc_minimaldns: false
  exim4/exim3_upgrade: true
* exim4/dc_other_hostnames: p2
* exim4/dc_eximconfig_configtype: mail sent by smarthost; received via SMTP or fetchmail
  exim4/no_config: true
* exim4/hide_mailname: true
* exim4/dc_postmaster: andrew
* exim4/dc_readhost: netspace.net.au
* exim4/use_split_config: false
  exim4/internal/exim4-config.reconfigure: false
  exim4/exim4-config-title:





More information about the Pkg-exim4-maintainers mailing list