Bug#543366: exim4-config: update-exim4.conf smashes case of dc_relay_domains inappropriately

Calum Mackay calum.mackay at cdmnet.org
Mon Aug 24 14:24:58 UTC 2009


Package: exim4-config
Version: 4.69-11
Severity: important

I use this setting to control relaying for domains where I act as
backup MX:

grep relay_domains /etc/exim4/update-exim4.conf.conf
dc_relay_domains='CONFDIR/relay.domains'

I believe this used to work well (I am sure of it), but it has at
some point stopped working, because update-exim4.conf translates it
to lowercase:

diz $ grep ^MAIN_RELAY_TO_DOMAINS= /var/lib/exim4/config.autogenerated
MAIN_RELAY_TO_DOMAINS=confdir/relay.domains

and this fails since exim's macro/var matching is case-sensitive.

This occurs here in the script:

seed_macro "MAIN_RELAY_TO_DOMAINS" "${dc_relay_domains}"

seed_macro() calls preprocess_macro() which runs lowercase() on its input.


Since this macro is used, in the default generated file, solely to create
a domainlist:

MAIN_RELAY_TO_DOMAINS=confdir/relay.domains

domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS

and because domainlist accepts a filename containing a list of domains,
it would seem that update-exim4.conf should not lowercase it.

This would seem to be a serious issue; failure to recognise the list
of relayed domains in the RCPT ACL causes the mail to be bounced "relay
not permitted".

best rergards,
calum.


-- Package-specific info:
Exim version 4.69 #1 built 18-Aug-2009 19:26:08
Copyright (c) University of Cambridge 2006
Berkeley DB: Berkeley DB 4.6.21: (June 10, 2009)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc GnuTLS move_frozen_messages Content_Scanning 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
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.3 (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages exim4-config depends on:
ii  adduser                       3.110      add and remove users and groups
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy

exim4-config recommends no packages.

exim4-config suggests no packages.

-- debconf-show failed





More information about the Pkg-exim4-maintainers mailing list