Bug#635680: exim4: Fixed string appended when redefining MAIN_HARDCODE_PRIMARY_HOSTNAME

Cyril Bouthors cyb at debian.org
Thu Jul 28 05:11:45 UTC 2011


Package: exim4

I'm unable to dynamically redefine primary_hostname at runtime because the weird
"OSTNAME" string is appended at the end:

# exim -bP primary_hostname
primary_hostname = mail.isvtec.com
# exim -DMAIN_HARDCODE_PRIMARY_HOSTNAME=foo.com -bP primary_hostname
primary_hostname = foo.comOSTNAME
# 

It happens on any stand Debian/Exim configuration.

If I replace MAIN_HARDCODE_PRIMARY_HOSTNAME by RANDOM_STRING in
/var/lib/exim4/config.autogenerated (or exim.conf), it works as expected:

# sed -i -e s/MAIN_HARDCODE_PRIMARY_HOSTNAME/RANDOM_STRING/ /var/lib/exim4/config.autogenerated
# exim -DRANDOM_STRING=foo.com -bP primary_hostname
primary_hostname = foo.com
# 

Would it be possible to fix this macro expansion?

Regards,

-- Package-specific info:
Exim version 4.72 #1 built 12-May-2011 18:51:33
Copyright (c) University of Cambridge, 1995 - 2007
Berkeley DB: Berkeley DB 4.8.30: (April  9, 2010)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS move_frozen_messages Content_Scanning DKIM Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
GnuTLS compile-time version: 2.8.6
GnuTLS runtime version: 2.8.6
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='mail.isvtec.com'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
mailname:mail.isvtec.com

-- System Information:
Debian Release: 6.0.2
  APT prefers oldstable
  APT policy: (700, 'oldstable'), (700, 'stable'), (650, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages exim4 depends on:
ii  debconf [debconf-2.0]    1.5.36.1        Debian configuration management sy
ii  exim4-base               4.72-6+squeeze2 support files for all Exim MTA (v4
ii  exim4-daemon-heavy       4.72-6+squeeze2 Exim MTA (v4) daemon with extended

exim4 recommends no packages.

exim4 suggests no packages.

-- debconf information:
  exim4/drec:
-- 
 ,''`.
: :' :      Cyril Bouthors
`. `'         Debian.org
  `-





More information about the Pkg-exim4-maintainers mailing list