Bug#869871: exim4-config: /etc/mailname is ignored

root vladislav.kurz at webstep.net
Thu Jul 27 09:20:32 UTC 2017


Package: exim4-config
Version: 4.89-2+deb9u1
Severity: normal

Dear Maintainer,

after a fresh install of exim4 on debian stretch, and moving our old
configuration, I found out that mail to unqualified adresses is sent
to user@`hostname -f` instead of user@`cat /etc/mailname`. Just as if
MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN was set.

I have entered the mailname using dpkg-reconfigure exim4-config, and
it is properly set in /etc/mailname and also in
/var/lib/exim4/config.autogenerated:

.ifndef ETC_MAILNAME
ETC_MAILNAME=dopis.cz
.endif

...

.ifndef MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN
.ifndef MAIN_QUALIFY_DOMAIN
qualify_domain = ETC_MAILNAME
.else
qualify_domain = MAIN_QUALIFY_DOMAIN
.endif
.endif

There are no other declarations of
MAIN_PRIMARY_HOSTNAME_AS_QUALIFY_DOMAIN, MAIN_QUALIFY_DOMAIN and
ETC_MAILNAME

I even tried to set MAIN_QUALIFY_DOMAIN, and it did not help either.
Please, look at it and suggest a fix or at least a workaround.

Best Regards
Vladislav Kurz

-- Package-specific info:
Exim version 4.89 #1 built 14-Jun-2017 05:03:07
Copyright (c) University of Cambridge, 1995 - 2017
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2017
Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS move_frozen_messages Content_Scanning DKIM DNSSEC Event OCSP PRDR PROXY SOCKS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa tls
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Configure owner: 0: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'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='internet'
dc_other_hostnames='dopis.cz;diskuze.dopis.cz;news.dopis.cz;skupiny.edb.cz'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains='@mx_secondary;datev.cz'
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='cyrus_delivery'
mailname:dopis.cz
# /etc/default/exim4
EX4DEF_VERSION=''

# 'combined' -	 one daemon running queue and listening on SMTP port
# 'no'       -	 no daemon running the queue
# 'separate' -	 two separate daemons
# 'ppp'      -   only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# Options for the SMTP listener daemon. By default, it is listening on
# port 25 only. To listen on more ports, it is recommended to use
# -oX 25:587:10025 -oP /run/exim4/exim.pid
SMTPLISTENEROPTIONS=''

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages exim4-config depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.61

exim4-config recommends no packages.

exim4-config suggests no packages.

-- Configuration Files:
/etc/email-addresses changed [not included]
/etc/exim4/conf.d/acl/30_exim4-config_check_mail changed [not included]
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt changed [not included]
/etc/exim4/conf.d/acl/40_exim4-config_check_data changed [not included]
/etc/exim4/conf.d/auth/30_exim4-config_examples changed [not included]
/etc/exim4/conf.d/main/02_exim4-config_options changed [not included]
/etc/exim4/conf.d/router/300_exim4-config_real_local changed [not included]
/etc/exim4/conf.d/router/400_exim4-config_system_aliases changed [not included]
/etc/exim4/conf.d/router/500_exim4-config_hubuser [Errno 2] No such file or directory: '/etc/exim4/conf.d/router/500_exim4-config_hubuser'
/etc/exim4/conf.d/router/600_exim4-config_userforward [Errno 2] No such file or directory: '/etc/exim4/conf.d/router/600_exim4-config_userforward'
/etc/exim4/conf.d/router/700_exim4-config_procmail [Errno 2] No such file or directory: '/etc/exim4/conf.d/router/700_exim4-config_procmail'
/etc/exim4/conf.d/router/800_exim4-config_maildrop [Errno 2] No such file or directory: '/etc/exim4/conf.d/router/800_exim4-config_maildrop'
/etc/exim4/conf.d/router/900_exim4-config_local_user changed [not included]
/etc/exim4/conf.d/transport/30_exim4-config_address_pipe changed [not included]
/etc/exim4/exim4.conf.template changed [not included]

-- debconf information:
  exim4/no_config: true
  exim4/dc_postmaster: vladki
  exim4/exim4-config-title:
* exim4/dc_minimaldns: false
* exim4/mailname: dopis.cz
* exim4/dc_local_interfaces:
* exim4/dc_other_hostnames: dopis.cz;diskuze.dopis.cz;news.dopis.cz;skupiny.edb.cz
* exim4/dc_relay_domains: @mx_secondary;datev.cz
* exim4/dc_eximconfig_configtype: internet site; mail is sent and received directly using SMTP
* exim4/use_split_config: true
* exim4/dc_localdelivery: mbox format in /var/mail/
  exim4/dc_smarthost:
  exim4/hide_mailname:
  exim4/dc_readhost:
* exim4/dc_relay_nets:



More information about the Pkg-exim4-maintainers mailing list