Bug#613768: exim4 should include $HOST to local domains by default

Jonathan Plews lists at plews.org.uk
Thu Feb 17 09:56:35 UTC 2011


Quoting Vincent Lefevre <vincent at vinc17.net>:

> Package: exim4
> Version: 4.72-6
> Severity: normal
>
> By default, exim4 adds localhost and the FQDN (or the mailname?)
> to local domains, but not $HOST (the nodename).
>
> This is a problem because other packages may expect $HOST to be
> in the local domains. This is the case of monit, which sends mail
> with, by default:
>
>   From: monit@$HOST
>
> Thus such an address doesn't get rewritten when the mail is
> transmitted to a different machine. A consequence is that the mail
> can be blocked because of incorrect domain part. A workaround can
> be to add $HOST manually via 'dpkg-reconfigure exim4-config', but
> the default config should work.
>
> -- Package-specific info:
> Exim version 4.72 #1 built 31-Jan-2011 18:42:28
> Copyright (c) University of Cambridge, 1995 - 2007
> Berkeley DB: Berkeley DB 4.8.30: (April  9, 2010)
> Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
> 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
> GnuTLS compile-time version: 2.8.6
> GnuTLS runtime version: 2.10.4
> 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='xvii.vinc17.org;xvii'
> dc_local_interfaces='127.0.0.1'
> dc_readhost=''
> dc_relay_domains=''
> dc_minimaldns='true'
> dc_relay_nets=''
> dc_smarthost=''
> CFILEMODE='644'
> dc_use_split_config='false'
> dc_hide_mailname='false'
> dc_mailname_in_oh='true'
> dc_localdelivery='maildir_home'
> mailname:xvii.vinc17.org
>
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'),  
> (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
> Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages exim4 depends on:
> ii  debconf [debconf-2.0]         1.5.38     Debian configuration  
> management sy
> ii  exim4-base                    4.72-6     support files for all  
> Exim MTA (v4
> ii  exim4-daemon-light            4.72-6     lightweight Exim MTA (v4) daemon
>
> exim4 recommends no packages.
>
> exim4 suggests no packages.
>
> -- debconf information:
> * exim4/drec:
>
>
>
> --
> Pkg-exim4-maintainers mailing list
> Pkg-exim4-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-maintainers
>
>

Hi,

I think that, unless it explicitly set, the hostname is derived form  
DNS lookups.

you can test this with changes to /etc/hosts, hostname -f and the  
string exim gives on connect will be the same.

x.x.x.x    host   host.domain.tld - will report just 'host'

x.x.x.x    host.domain.tld   host - will report 'host.domain.tld'

so you could either fix this, or maybe set MAIN_HARDCODE_PRIMARY_HOSTNAME?


Regards

-- 
Jonathan Plews

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/attachments/20110217/cab6b790/attachment.pgp>


More information about the Pkg-exim4-maintainers mailing list