Bug#304838: exim4-config: "mail sent by smarthost; no local mail" causes weird behavior wrt local delivery
Andrew Pimlott
Andrew Pimlott <andrew@pimlott.net>, 304838@bugs.debian.org
Fri, 15 Apr 2005 21:14:35 -0700
Package: exim4-config
Version: 4.50-5
Severity: normal
I have just installed a Debian unstable machine and configured exim4 for
"mail sent by smarthost; no local mail". This has two weird effects
(which I don't think are the same as bug 297841): (Throughout this
message, I have replaced my domain with example.com.)
1. Mail to real-andrew is not delivered locally; instead, exim tries to
deliver to real-andrew@example.com. Since root is aliased to
real-andrew, this means that system messages are not delivered. The
debconf questions imply that real- mail should be delivered locally
even with "mail sent by smarthost; no local mail".
2. Mail to andrew@localhost fails with "451 Temporary local problem".
The log message looks bizarre:
2005-04-15 13:12:40 H=localhost [127.0.0.1]:33800 I=[127.0.0.1]:25 U=andrew F=<w@whitehouse.gov> temporarily rejected RCPT <andrew@localhost>: error in redirect data: domain missing or malformed in "andrew@"
I don't know where "andrew@" came from. I think that @localhost
mail should be delivered locally even with "mail sent by smarthost;
no local mail", especially since that's what fetchmail uses.
However, even if you want to reject such mail, the error status and
log message should probably made more clear.
Andrew
-- Package-specific info:
Exim version 4.50 #1 built 03-Apr-2005 07:22:57
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'
#
# This is a Debian specific file
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.example.com'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
mailname:example.com
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages exim4-config depends on:
ii adduser 3.63 Add and remove users and groups
ii debconf [debconf-2.0] 1.4.48 Debian configuration management sy
ii passwd 1:4.0.3-31sarge2 change and administer password and
-- debconf information:
exim4/dc_noalias_regenerate: false
* exim4/dc_smarthost: mail.example.com
exim4/dc_relay_domains:
exim4/dc_relay_nets:
* exim4/mailname: example.com
* exim4/dc_local_interfaces: 127.0.0.1
* exim4/dc_minimaldns: false
exim4/exim3_upgrade: true
* exim4/dc_other_hostnames:
* exim4/dc_eximconfig_configtype: mail sent by smarthost; no local mail
exim4/no_config: true
* exim4/hide_mailname: false
* exim4/dc_postmaster: real-andrew
* exim4/dc_readhost:
* exim4/use_split_config: false
exim4/exim4-config-title: